@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

body {
  font-family: 'Vazirmatn', sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  overflow: hidden;
}

.bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  z-index: -1;
}

/* فرم ورود شیشه‌ای */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.glass-form {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px;
  width: 320px;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

.glass-form .logo {
  width: 70px;
  margin-bottom: 15px;
}

.glass-form h2 {
  margin: 10px 0 20px;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: none;
  border-radius: 8px;
  outline: none;
}

button {
  background: #ff5722;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #ff784e;
}

.error {
  background: rgba(255, 0, 0, 0.4);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* داشبورد جدول */
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.dashboard {
  padding: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 10px 15px;
  text-align: center;
}

th {
  background: rgba(255,255,255,0.2);
}

tr:nth-child(even) {
  background: rgba(255,255,255,0.05);
}

.logout {
  color: #fff;
  background: rgba(255,0,0,0.6);
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.logout:hover {
  background: rgba(255,0,0,0.8);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}
.switch input { display:none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.3);
  transition: .4s;
  border-radius: 25px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 19px; width: 19px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #4CAF50;
}
input:checked + .slider:before {
  transform: translateX(24px);
}

button.save-btn, button.delete-btn {
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 3px;
  padding: 5px 8px;
  transition: 0.3s;
}
button.save-btn:hover { background: rgba(0,200,255,0.5); }
button.delete-btn:hover { background: rgba(255,50,50,0.5); }

.editable {
  outline: none;
  background: rgba(255,255,255,0.05);
}
.editable:focus {
  background: rgba(255,255,255,0.15);
}
