/* ===========================
   🎨 پایه
=========================== */
body {
  font-family: 'Vazirmatn', sans-serif;
  min-height: 100vh;
  margin: 0;
  direction: rtl;
  background: #f9fafb;
  color: #0A3D62; /* متن اصلی */
}

/* ===========================
   🎨 فرم‌های لاگین (ادمین + منشی)
=========================== */
.login-card {
  width: 100%;
  max-width: 400px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(10, 61, 98, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #0A3D62; /* آبی تیره */
  margin-bottom: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form input {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  outline: none;
  transition: all 0.2s;
}

.login-form input:focus {
  border-color: #D4AF37; /* طلایی */
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-actions button {
  background: linear-gradient(135deg, #0A3D62, #062b44);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.login-actions button:hover {
  background: linear-gradient(135deg, #062b44, #041d2c);
}

.login-actions a {
  font-size: 0.875rem;
  color: #D4AF37;
  text-decoration: none;
}

.login-actions a:hover {
  text-decoration: underline;
}

.login-error {
  font-size: 0.875rem;
  color: #dc2626;
  margin-top: 0.5rem;
  text-align: center;
}

/* ===========================
   🎨 پنل ادمین
=========================== */
#panelBox {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(10, 61, 98, 0.15);
}

/* هدر */
#panelBox h1 {
  color: #0A3D62;
}

#panelBox button.bg-red-500 {
  transition: 0.2s;
}

#panelBox button.bg-red-500:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* تب‌ها */
.tab-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
  transition: 0.2s;
}

.tab-btn:hover {
  background-color: #ecfdf5;
}

.tab-btn.active {
  background-color: #d1fae5;
  font-weight: bold;
  border-bottom: 2px solid #D4AF37;
  color: #0A3D62;
}

/* کارت‌های داخل تب */
.tab .bg-white {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(10, 61, 98, 0.1);
}

/* جدول‌ها */
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
}

table thead {
  background: #ecfdf5;
  color: #0A3D62;
}

table th, table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: right;
}

table tr:hover {
  background-color: #f0fdf4;
}

/* دکمه‌های عمومی در پنل */
#panelBox button {
  background: linear-gradient(135deg, #0A3D62, #062b44);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: 0.2s;
}

#panelBox button:hover {
  background: linear-gradient(135deg, #062b44, #041d2c);
}

/* ورودی‌های پنل */
#panelBox input, #panelBox textarea, #panelBox select {
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: all 0.2s;
}

#panelBox input:focus,
#panelBox textarea:focus,
#panelBox select:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* ===========================
   🎨 پنل منشی (partner.html)
=========================== */
#tab-form, #tab-list {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 16px rgba(10, 61, 98, 0.1);
  padding: 2rem;
}

#tab-form input, #tab-form textarea,
#tab-list input, #tab-list textarea {
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: all 0.2s;
}

#tab-form input:focus, #tab-form textarea:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* لینک برگشت */
.go-back {
  color: #0A3D62;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding-left: 15px;
  position: relative;
}
.go-back::before,
.go-back::after {
  content: "";
  display: block;
  left: 0;
  position: absolute;
  top: 50%;
  transition: left 0.1s;
}
.go-back::before {
  border-color: #D4AF37;
  border-style: solid;
  border-width: 0 0 2px 2px;
  height: 6px;
  margin-top: -3px;
  width: 6px;
  transform: rotate(45deg);
}
.go-back::after {
  background: #D4AF37;
  height: 2px;
  width: 11px;
}
.go-back:hover::before,
.go-back:hover::after {
  left: -3px;
}

/* ===========================
   📱 ریسپانسیو
=========================== */
@media (max-width: 768px) {
  .login-card {
    margin: 2rem auto;
    padding: 1.5rem;
  }
  .login-title {
    font-size: 1.25rem;
  }
  .login-form input {
    padding: 0.6rem 0.8rem;
  }
  #panelBox {
    padding: 1rem;
  }
  #tab-form, #tab-list {
    padding: 1rem;
  }
  table th, table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    margin: 1rem auto;
    padding: 1rem;
    max-width: 90%;
  }
  .login-title {
    font-size: 1.1rem;
  }
  .login-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .login-actions button {
    width: 100%;
  }
  #panelBox {
    padding: 0.75rem;
  }
  #tab-form, #tab-list {
    padding: 0.75rem;
  }
  table th, table td {
    padding: 0.4rem;
    font-size: 0.8rem;
  }
}
