/*  auth.css */

/* ==================== AUTHENTICATION PAGES STYLES ==================== */

/* Auth Body Background - CHANGED TO WHITE */
.auth-body {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==================== UNIVERSAL BUTTON LOADING STATES ==================== */
button.loading,
.btn-submit.loading,
.btn-save.loading,
.btn-secondary.loading,
.btn-auth.loading,
.btn-primary.loading,
.btn-outline.loading,
.btn-hero-primary.loading,
.btn-hero-secondary.loading,
a[class*="btn-"].loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
  cursor: not-allowed !important;
  min-width: 120px;
}

/* Prevent text selection while loading */
.loading {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Spinner animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spinner.fa-spin {
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

/* Pulse effect for loading buttons */
button.loading,
a[class*="btn-"].loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.65;
  }
}

/* Ensure loading buttons maintain their size */
.loading {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Loading text styling */
.loading-text {
  display: inline-block;
  margin-left: 4px;
}

/* Mobile responsive loading state */
@media (max-width: 640px) {
  .loading {
    font-size: 0.9rem;
  }

  .loading-text {
    display: none; /* Hide text on mobile, show only spinner */
  }

  .fa-spinner.fa-spin {
    margin-right: 0;
  }
}

/* ==================== AUTH NAVBAR ==================== */
.auth-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e5e7eb;
}

.auth-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--secondary-color);
  gap: 16px;
}

/* Auth Logo */
.auth-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.auth-logo:hover {
  opacity: 0.8;
}

.auth-brand .brand-text {
  display: flex;
  flex-direction: column;
}

.auth-brand .brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.3;
  font-family: "Poppins", sans-serif;
}

.auth-nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.auth-nav-links {
  display: flex;
  gap: 2rem;
}

.auth-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.auth-nav-link:hover {
  background: #f3f4f6;
  color: var(--primary-color);
}

.auth-nav-link i {
  font-size: 1.1rem;
}

/* Auth Section */
.auth-section {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  background: #f9fafb;
}

.auth-section.with-navbar {
  min-height: 100vh;
  padding: 110px 20px 50px;
  background: #f9fafb;
}

.auth-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.auth-container-single {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* ==================== SINGLE COLUMN LAYOUT FOR REGISTER ==================== */
.auth-container.single-column {
  grid-template-columns: 1fr;
  max-width: 600px;
}

/* Hide auth-info section */
.auth-info.hidden {
  display: none;
}

/* Auth Card - ENHANCED SHADOW FOR WHITE BACKGROUND */
.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-icon {
  font-size: 48px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  display: inline-block;
}

.auth-header h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.auth-header p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Auth Form */
.auth-form {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1rem;
  transition: var(--transition);
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 14px 14px 14px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  transition: var(--transition);
  background: var(--white);
  font-family: "Inter", sans-serif;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-wrapper input:focus ~ i,
.input-wrapper select:focus ~ i {
  color: var(--primary-color);
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.forgot-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Auth Footer (within card) */
.auth-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e0e0e0;
}

.auth-footer p {
  color: var(--text-light);
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ==================== AUTH FOOTER SECTION (Page Footer) ==================== */
.auth-footer-section {
  background: #ffffff;
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

.auth-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.auth-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.auth-footer-content p {
  color: var(--text-light);
  margin: 0;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.auth-footer-links a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.auth-footer-links a:hover {
  color: var(--primary-color);
}

.auth-footer-links span {
  color: var(--text-light);
}

/* Auth Info Panel - ENHANCED FOR WHITE BACKGROUND */
.auth-info {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  animation: slideUp 0.5s ease 0.2s backwards;
}

.auth-info h3 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.benefits-list li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.benefits-list i {
  color: var(--success-color);
  font-size: 1.2rem;
}

.info-note {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  border-left: 4px solid var(--primary-color);
}

.info-note i {
  color: var(--primary-color);
  margin-right: 8px;
}

/* Address Autocomplete */
.address-suggestions {
  max-height: 200px;
  overflow-y: auto;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  margin-top: 5px;
  display: none;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.address-suggestions.active {
  display: block;
}

.address-suggestion {
  padding: 12px 15px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid #f0f0f0;
}

.address-suggestion:last-child {
  border-bottom: none;
}

.address-suggestion:hover {
  background: var(--primary-light);
  color: var(--white);
  padding-left: 20px;
}

.address-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  animation: fadeIn 0.3s ease;
  border: 1px solid #e5e7eb;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.alert-success {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #16a34a;
  border: 1px solid #86efac;
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
  border: 1px solid #fcd34d;
}

.alert-info {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

/* Success Message */
.success-message {
  padding: 20px;
  text-align: center;
}

.success-message p {
  margin: 10px 0;
  color: var(--text-dark);
  line-height: 1.6;
}

.success-message .alert {
  text-align: left;
  margin: 20px 0;
}

/* Auth Actions */
.auth-actions {
  margin-top: 30px;
}

.auth-actions .btn-submit {
  text-decoration: none;
}

/* Password Requirements */
.password-requirements {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.password-requirements p {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.password-requirements ul {
  list-style: none;
  padding: 0;
}

.password-requirements li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.password-requirements li.valid {
  color: var(--success-color);
}

.password-requirements i {
  font-size: 12px;
  color: var(--success-color);
}

/* ==================== PROFILE SECTION ==================== */
.profile-section {
  padding: 110px 20px 50px;
  background: #f9fafb;
  min-height: 100vh;
}

.profile-section .container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Profile Header - MATCHES DASHBOARD STYLE */
.profile-header {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.profile-header-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 10px 0;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-header-text h1 i {
  font-size: 2.2rem;
}

.profile-header-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.profile-header-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.profile-action-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #2563eb;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.profile-action-btn:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.profile-action-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.profile-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Profile Content */
.profile-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  animation: fadeInUp 0.5s ease backwards;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Sidebar */
.profile-sidebar {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  text-align: center;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #e0e7ff;
}

.profile-avatar i {
  font-size: 4rem;
  color: #2563eb;
}

.profile-sidebar h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.profile-sidebar p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 15px 0;
  word-break: break-word;
}

.profile-sidebar .badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-premium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.badge-free {
  background: #e5e7eb;
  color: #6b7280;
}

/* Profile Main */
.profile-main {
  background: white;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.profile-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-form h3:not(:first-child) {
  margin-top: 35px;
}

.profile-form h3 i {
  color: #2563eb;
}

/* Form Groups */
.profile-form .form-group {
  margin-bottom: 20px;
}

.profile-form .form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.profile-form .form-group .required {
  color: #dc2626;
}

.profile-form .form-group input,
.profile-form .form-group select,
.profile-form .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.profile-form .form-group input:focus,
.profile-form .form-group select:focus,
.profile-form .form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.profile-form .form-group input:disabled,
.profile-form .form-group input[readonly] {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.profile-form small {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #6b7280;
}

.field-hint {
  color: #9ca3af;
  font-style: italic;
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  animation: slideDown 0.3s ease;
}

.alert i {
  font-size: 1.2rem;
  margin-top: 2px;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-error ul {
  margin: 0;
  padding-left: 20px;
}

/* Responsive Design for Profile */
@media (max-width: 1024px) {
  .profile-content {
    grid-template-columns: 250px 1fr;
  }
}

@media (max-width: 768px) {
  .profile-section {
    padding: 100px 15px 30px;
  }

  .profile-header {
    padding: 30px 20px;
  }

  .profile-header-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-header-text h1 {
    font-size: 2rem;
    justify-content: center;
  }

  .profile-header-actions {
    width: 100%;
    flex-direction: column;
  }

  .profile-action-btn {
    width: 100%;
    justify-content: center;
  }

  .profile-content {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-save {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .profile-header {
    padding: 25px 15px;
    border-radius: 15px;
  }

  .profile-header-text h1 {
    font-size: 1.6rem;
  }

  .profile-header-text h1 i {
    font-size: 1.5rem;
  }

  .profile-header-text p {
    font-size: 0.95rem;
  }

  .profile-main {
    padding: 25px 20px;
  }

  .profile-form h3 {
    font-size: 1.1rem;
  }

  .btn-save,
  .btn-secondary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.btn-save,
.btn-secondary {
  padding: 12px 30px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  border: none;
}

.btn-save {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #f3f4f6;
  color: var(--text-dark);
  text-decoration: none;
}

.btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

/* ==================== USER DROPDOWN IN NAVBAR ==================== */
.user-dropdown {
  position: relative;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.user-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.user-toggle i:first-child {
  font-size: 1.2rem;
}

.user-toggle i:last-child {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.user-dropdown.active .user-toggle i:last-child {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  min-width: 200px;
  z-index: 1000;
  overflow: hidden;
}

.user-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
}

.user-menu-item:hover {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary-color)
  );
  color: var(--white);
  padding-left: 25px;
}

.user-menu-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.user-menu-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 5px 0;
}

/* ==================== AUTH NAV RIGHT SECTION ==================== */
.auth-nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ==================== AUTH BUTTONS ==================== */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.btn-login {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-login:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-register {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: var(--white);
  border: 2px solid transparent;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-auth i {
  font-size: 1rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .auth-info {
    display: none;
  }

  .profile-content {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    margin-bottom: 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .auth-nav-links {
    display: none;
  }

  .auth-section {
    padding: 40px 20px;
  }

  .auth-card {
    padding: 30px;
  }

  .user-dropdown {
    position: static;
  }

  .user-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .user-menu.active {
    transform: translateY(0);
  }

  .auth-nav-right {
    gap: 1rem;
  }

  .auth-nav-links {
    gap: 1rem;
    display: flex;
  }

  /* Hide text, show only icons for nav links */
  .auth-nav-link .nav-text {
    display: none;
  }

  .auth-nav-link {
    padding: 0.6rem;
    min-width: 40px;
    justify-content: center;
  }

  .auth-nav-link i {
    font-size: 1.2rem;
  }

  /* Keep button text visible on tablet */
  .auth-buttons {
    gap: 0.8rem;
  }
}

/* Mobile - Icon only for everything */
@media (max-width: 640px) {
  .auth-section {
    padding: 40px 15px 30px;
  }

  .auth-section.with-navbar {
    padding: 100px 15px 30px;
  }

  .auth-nav-container {
    padding: 0 15px;
  }
  .auth-brand {
    gap: 12px; /* Smaller gap on mobile */
  }

  .auth-brand .brand-tagline {
    display: none;
  }

  .auth-brand .brand-name {
    font-size: 1.2rem;
  }

  .auth-brand i {
    font-size: 1.5rem;
  }

  .auth-nav-right {
    gap: 0.5rem;
  }

  .auth-nav-links {
    gap: 0.5rem;
  }

  .auth-nav-link {
    padding: 0.5rem;
    min-width: 36px;
  }

  .auth-nav-link i {
    font-size: 1.1rem;
  }

  /* Hide button text, show only icons */
  .btn-auth .btn-text {
    display: none;
  }

  .btn-auth {
    padding: 0.6rem;
    min-width: 40px;
    justify-content: center;
  }

  .btn-auth i {
    font-size: 1.1rem;
    margin: 0;
  }

  .auth-buttons {
    gap: 0.5rem;
  }

  .auth-navbar {
    padding: 0.8rem 0;
  }

  .auth-card {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .auth-header h2 {
    font-size: 1.6rem;
  }

  .btn-submit {
    padding: 12px;
    font-size: 15px;
  }

  .form-options {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .auth-footer-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-header h1 {
    font-size: 2rem;
  }

  .profile-main {
    padding: 25px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-save,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .auth-nav-links a:nth-child(2),
  .auth-nav-links a:nth-child(3) {
    display: none;
  }

  /* Keep only home icon on very small screens */
  .auth-nav-links a:first-child {
    display: flex;
  }

  .btn-auth {
    padding: 0.5rem;
    min-width: 36px;
  }

  .btn-auth i {
    font-size: 1rem;
  }
}

/* ==================== TOOLTIPS FOR ICON-ONLY BUTTONS ==================== */
@media (max-width: 968px) {
  /* Tooltip for nav links */
  .auth-nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
  }

  .auth-nav-link:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  /* Tooltip for auth buttons (only on mobile when text is hidden) */
  .btn-auth::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
  }

  .btn-auth:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }

  /* Add small arrow to tooltip */
  .btn-auth::before,
  .auth-nav-link::before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--secondary-color);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
  }

  .btn-auth:hover::before,
  .auth-nav-link:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

/* ==================== ACCESSIBILITY - FOCUS STATES ==================== */
.btn-auth:focus,
.auth-nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ==================== SMOOTH TRANSITIONS ==================== */
.btn-text,
.nav-text {
  transition: opacity 0.3s ease;
}

/* ==================== LOADING STATES ==================== */
.btn-submit.loading,
.btn-save.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-submit.loading::after,
.btn-save.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== BUTTON TEXT SPACING ==================== */
.btn-fetch-text {
  margin-left: 6px;
}

/* Hide button text on mobile */
@media (max-width: 640px) {
  .btn-fetch-text {
    display: none;
  }
}

/* ==================== FORM VALIDATION STATES ==================== */
.form-group.error input,
.form-group.error select {
  border-color: var(--danger-color);
}

.form-group.error .error-message {
  display: block;
  color: var(--danger-color);
  font-size: 0.85rem;
  margin-top: 5px;
}

.form-group.success input,
.form-group.success select {
  border-color: var(--success-color);
}

/* ==================== TRANSITIONS & ANIMATIONS ==================== */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================== CUSTOM SCROLLBAR ==================== */
.address-suggestions::-webkit-scrollbar {
  width: 6px;
}

.address-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.address-suggestions::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.address-suggestions::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ==================== RIPPLE EFFECT ==================== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.toast {
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(400px);
  animation: slideInToast 0.3s ease forwards;
  border-left: 4px solid;
  min-width: 300px;
  max-width: 400px;
}

.toast.removing {
  animation: slideOutToast 0.3s ease forwards;
}

@keyframes slideInToast {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToast {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.toast-message {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.toast-close:hover {
  background: #f0f0f0;
  color: #666;
}

/* Toast Types */
.toast.success {
  border-left-color: var(--success-color);
}

.toast.success .toast-icon {
  color: var(--success-color);
}

.toast.error {
  border-left-color: #dc2626;
}

.toast.error .toast-icon {
  color: #dc2626;
}

.toast.warning {
  border-left-color: #d97706;
}

.toast.warning .toast-icon {
  color: #d97706;
}

.toast.info {
  border-left-color: #0369a1;
}

.toast.info .toast-icon {
  color: #0369a1;
}

.toast-notification i:first-child {
  font-size: 20px;
}

.toast-notification span {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

/* Toast Types */
.toast-success {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  color: #065f46;
}

.toast-success i:first-child {
  color: #10b981;
}

.toast-error {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

.toast-error i:first-child {
  color: #ef4444;
}

.toast-warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}

.toast-warning i:first-child {
  color: #f59e0b;
}

.toast-info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

.toast-info i:first-child {
  color: #3b82f6;
}

/* Toast Progress Bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .toast-container {
    top: 80px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* ==================== REGISTRATION SUCCESS PAGE ==================== */
.success-card {
  max-width: 650px;
}

.success-icon-wrapper {
  margin-bottom: 20px;
}

.success-icon-large {
  font-size: 80px !important;
  color: #16a34a;
  background: none !important;
  -webkit-text-fill-color: #16a34a !important;
  animation: successPulse 1s ease;
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.success-content {
  padding: 10px 0;
}

.welcome-message {
  text-align: center;
  margin-bottom: 30px;
}

.message-primary {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.message-secondary {
  font-size: 1rem;
  color: var(--text-light);
}

/* Info Boxes */
.info-box {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  border: 1px solid #e2e8f0;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-box.email-info {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid #2563eb;
}

.info-box.security-info {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left: 4px solid #f59e0b;
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.email-info .info-icon {
  color: #2563eb;
}

.security-info .info-icon {
  color: #f59e0b;
}

.info-content {
  flex: 1;
}

.info-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.info-content p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.5;
}

.email-highlight {
  font-weight: 700;
  color: #2563eb;
  font-size: 1rem !important;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  display: inline-block;
  margin: 8px 0;
}

.info-note {
  font-size: 0.85rem !important;
  color: #64748b !important;
  font-style: italic;
}

/* Next Steps Section */
.next-steps {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  border: 1px solid #bbf7d0;
}

.next-steps h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-steps h3::before {
  content: "";
  width: 4px;
  height: 24px;
  background: #16a34a;
  border-radius: 2px;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps-list li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-bottom: 1px solid #bbf7d0;
}

.steps-list li:last-child {
  border-bottom: none;
}

.steps-list li i {
  color: #16a34a;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #e5e7eb;
}

.btn-primary {
  flex: 1;
  text-decoration: none;
}

.btn-outline {
  flex: 1;
  padding: 14px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .success-card {
    padding: 25px 20px;
  }

  .success-icon-large {
    font-size: 60px !important;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .info-box {
    flex-direction: column;
    padding: 16px;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .info-content h3 {
    font-size: 1rem;
  }

  .email-highlight {
    font-size: 0.9rem !important;
    word-break: break-all;
  }

  .action-buttons {
    flex-direction: column;
  }

  .steps-list li {
    font-size: 0.9rem;
    padding: 10px 0;
  }

  .next-steps {
    padding: 16px;
  }

  .message-primary {
    font-size: 1rem;
  }

  .message-secondary {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .success-icon-large {
    font-size: 50px !important;
  }

  .auth-header h2 {
    font-size: 1.3rem;
  }

  .auth-header p {
    font-size: 0.95rem;
  }

  .info-box {
    padding: 14px;
  }

  .next-steps h3 {
    font-size: 1rem;
  }

  .steps-list li {
    font-size: 0.85rem;
  }
}

/* Animation delays for staggered effect */
.info-box:nth-child(1) {
  animation-delay: 0.1s;
}

.info-box:nth-child(2) {
  animation-delay: 0.2s;
}

.next-steps {
  animation: fadeInUp 0.5s ease 0.3s backwards;
}

.action-buttons {
  animation: fadeInUp 0.5s ease 0.4s backwards;
}

/* ==================== LOADING BUTTON FIXES ==================== */

/* Universal loading state - simplified and reliable */
button.loading,
.btn-submit.loading,
.btn-save.loading,
.btn-secondary.loading,
.btn-auth.loading,
.btn-primary.loading,
.btn-outline.loading,
.btn-hero-primary.loading,
.btn-hero-secondary.loading {
  position: relative;
  pointer-events: none !important;
  opacity: 0.7;
  cursor: not-allowed !important;
}

/* Disable all hover effects during loading */
button.loading:hover,
.btn-submit.loading:hover,
.btn-save.loading:hover,
.btn-secondary.loading:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Spinner animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spinner.fa-spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Ensure buttons with data-no-loading don't get loading state */
button[data-no-loading],
.btn-submit[data-no-loading],
a[data-no-loading] {
  /* These will be handled by JavaScript to prevent loading */
}

/* ==================== MODAL STYLES ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none; /* Hidden by default */
  align-items: center !important; /* Force center alignment */
  justify-content: center !important; /* Force center alignment */
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex !important; /* Show as flex when active */
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto; /* Additional centering */
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 20px;
}

.modal-close {
  background: #f3f4f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
  flex-shrink: 0;
}

.modal-close:hover {
  background: #e5e7eb;
  color: var(--primary-color);
  transform: rotate(90deg);
}

.modal-close i {
  font-size: 1.2rem;
}

.modal-actions {
  margin-top: 25px;
}

.modal-actions .btn-submit,
.modal-actions .btn-secondary {
  width: 100%;
}

/* Custom Scrollbar for Modal */
.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Tablet Responsive */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 15px;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-container {
    max-height: 85vh;
  }

  .modal-content {
    padding: 30px 25px;
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 15px;
    align-items: center !important; /* Keep centered */
    justify-content: center !important; /* Keep centered */
  }

  .modal-container {
    max-height: 90vh;
    max-width: 100%;
  }

  .modal-content {
    border-radius: 15px !important;
    padding: 25px 20px;
  }

  .modal-header h2 {
    font-size: 1.3rem !important;
  }

  .modal-close {
    width: 32px;
    height: 32px;
  }

  .modal-actions {
    margin-top: 20px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .modal-overlay {
    padding: 10px;
    align-items: center !important;
    justify-content: center !important;
  }

  .modal-container {
    max-height: 92vh;
  }

  .modal-content {
    padding: 20px 15px !important;
  }

  .modal-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .modal-header h2 {
    font-size: 1.2rem !important;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
}

/* Animation classes */
.modal-fade-in {
  animation: modalFadeIn 0.3s ease forwards;
}

.modal-fade-out {
  animation: modalFadeOut 0.3s ease forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.modal-slide-in {
  animation: modalSlideIn 0.3s ease forwards;
}

.modal-slide-out {
  animation: modalSlideOut 0.3s ease forwards;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes modalSlideOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.9);
    opacity: 0;
  }
}
