/* File: static/css/base.css - FIXED NAVIGATION VERSION */

/* ==================================================
   CSS VARIABLES AND ROOT STYLES - FRISIVO THEME
   ================================================== */
:root {
  /* Primary Color Palette */
  --rose-quartz: #E6B7C1;
  --soft-mauve: #A18DA3;
  --linen-white: #FAF4F0;
  --charcoal-plum: #3C2A4D;
  --champagne-gold: #F4D6A0;
  
  /* Color Variations */
  --rose-quartz-light: #F0C7D1;
  --rose-quartz-dark: #D8A5B1;
  --soft-mauve-light: #B39DB5;
  --soft-mauve-dark: #8E7A92;
  --charcoal-plum-light: #4A3660;
  --charcoal-plum-dark: #2E1E3B;
  
  /* Status Colors */
  --success-color: #B5D6A7;
  --warning-color: #F4D6A0;
  --error-color: #E7A1A1;
  --info-color: #A8C8E1;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;  
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --header-height: 80px;
  --section-padding: 5rem 0;
  --container-padding: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(60, 42, 77, 0.08);
  --shadow-md: 0 4px 12px rgba(60, 42, 77, 0.12);
  --shadow-lg: 0 8px 24px rgba(60, 42, 77, 0.15);
  --shadow-xl: 0 16px 48px rgba(60, 42, 77, 0.18);
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Grid and Layout - Updated for Wide Layout */
  --max-width: 1600px;
  --content-width: 1440px;
  --container-wide-padding: 2rem;
}

/* ==================================================
   BASE STYLES
   ================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--charcoal-plum);
  background-color: var(--linen-white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--charcoal-plum);
  color: var(--linen-white);
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  transition: var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--rose-quartz);
  outline-offset: 2px;
}

/* ==================================================
   WIDE LAYOUT CONTAINERS
   ================================================== */

/* New wide container that replaces the default Bootstrap container */
.container-wide {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--container-wide-padding);
  padding-right: var(--container-wide-padding);
}

/* Override Bootstrap container classes when using wide layout */
.main-content .container,
.main-content .container-fluid,
.main-content .container-xl,
.main-content .container-lg,
.main-content .container-md,
.main-content .container-sm {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--container-wide-padding);
  padding-right: var(--container-wide-padding);
}

/* Section container for full-width sections with proper content centering */
.section-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-wide-padding);
  padding-right: var(--container-wide-padding);
}

/* Full width section wrapper */
.section-full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Content wrapper within full-width sections */
.section-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--container-wide-padding);
}

/* ==================================================
   TYPOGRAPHY
   ================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--charcoal-plum);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

.text-rose { color: var(--rose-quartz) !important; }
.text-mauve { color: var(--soft-mauve) !important; }
.text-plum { color: var(--charcoal-plum) !important; }
.text-gold { color: var(--champagne-gold) !important; }

/* ==================================================
   ENHANCED NAVIGATION - FIXED VERSION
   ================================================== */
.navbar {
  height: var(--header-height);
  background-color: rgba(250, 244, 240, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(161, 141, 163, 0.1);
  transition: var(--transition-normal);
  padding: 0.5rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(250, 244, 240, 0.98) !important;
}

/* Fix navbar container alignment */
.navbar .container-wide {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Brand Styling */
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal-plum) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
  padding: 0.5rem 0;
  margin-right: 2rem;
  flex-shrink: 0;
}

.navbar-brand:hover {
  color: var(--soft-mauve) !important;
  transform: translateY(-1px);
}

.navbar-brand i {
  color: var(--rose-quartz);
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.brand-text {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* FIXED: Mobile User Avatar and Toggle Container */
.navbar .d-flex.align-items-center.order-lg-3 {
  display: flex !important;
  align-items: center;
  order: 3;
  flex-shrink: 0;
  gap: 0.5rem;
}

/* Navigation container fixes */
.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-nav.me-auto {
  margin-right: auto !important;
  flex-grow: 1;
}

/* FIXED: Right side navigation container */
.navbar-nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
  margin-left: auto;
}

/* Navigation Links */
.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  color: var(--charcoal-plum) !important;
  position: relative;
  margin: 0 0.25rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background-color: rgba(230, 183, 193, 0.1);
  color: var(--soft-mauve) !important;
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  color: white !important;
  box-shadow: var(--shadow-sm);
}

.navbar-nav .nav-link i {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-right: 0.25rem;
}

/* Navigation item fixes */
.nav-item {
  position: relative;
}

.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .nav-link {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Dropdown Menus */
.dropdown-menu {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  background: white;
  padding: 0.75rem;
  margin-top: 0.5rem;
  min-width: 280px;
  z-index: 1060;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  color: var(--charcoal-plum);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background-color: rgba(230, 183, 193, 0.1);
  color: var(--soft-mauve);
  transform: translateX(2px);
}

.dropdown-item.active {
  background-color: var(--rose-quartz);
  color: white;
}

.dropdown-item i {
  width: 18px;
  opacity: 0.7;
  margin-right: 0.5rem;
}

.dropdown-header {
  font-weight: 600;
  color: var(--soft-mauve);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(161, 141, 163, 0.1);
}

.dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(161, 141, 163, 0.1);
}

/* FIXED: Language Selector */
.nav-item.dropdown .nav-link.dropdown-toggle {
  color: var(--soft-mauve) !important;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  background: none;
  border: none;
}

.nav-item.dropdown .nav-link.dropdown-toggle:hover {
  color: var(--charcoal-plum) !important;
  background-color: rgba(230, 183, 193, 0.1);
}

/* FIXED: User Menu Styling */
.user-menu, .user-menu-mobile {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  background: none;
  border: none;
  color: var(--charcoal-plum) !important;
  text-decoration: none;
}

.user-menu:hover, .user-menu-mobile:hover {
  background-color: rgba(230, 183, 193, 0.1);
  color: var(--soft-mauve) !important;
}

/* Profile Avatar Styling */
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--rose-quartz);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.profile-avatar:hover {
  border-color: var(--soft-mauve);
  transform: scale(1.05);
}

.profile-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--rose-quartz);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.profile-avatar-placeholder:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* User Dropdown Styling */
.user-dropdown {
  min-width: 320px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  background: white;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.user-dropdown .dropdown-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  color: white;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  text-align: left;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

.user-dropdown .dropdown-header .fw-bold {
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.user-dropdown .dropdown-header small {
  opacity: 0.9;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.badge i {
  margin-right: 0.25rem;
  font-size: 0.7rem;
}

/* Logout Button Special Styling */
.dropdown-item.text-danger {
  color: var(--error-color) !important;
}

.dropdown-item.text-danger:hover {
  background-color: rgba(231, 161, 161, 0.1) !important;
  color: var(--error-color) !important;
}

/* FIXED: Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.auth-buttons .btn {
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.auth-buttons .btn-outline-primary {
  background: transparent;
  color: var(--soft-mauve);
  border: 2px solid var(--soft-mauve);
}

.auth-buttons .btn-outline-primary:hover {
  background: var(--soft-mauve);
  color: white;
  border-color: var(--soft-mauve);
}

.auth-buttons .btn-primary {
  background: var(--soft-mauve);
  color: white;
  border: 2px solid var(--soft-mauve);
}

.auth-buttons .btn-primary:hover {
  background: var(--soft-mauve-dark);
  border-color: var(--soft-mauve-dark);
  color: white;
}

/* Mobile Navigation Toggle */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(230, 183, 193, 0.1);
  order: 3;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 183, 193, 0.25);
}

.navbar-toggler-icon {
  width: 1.2em;
  height: 1.2em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2860, 42, 77, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================================================
   RESPONSIVE NAVIGATION FIXES
   ================================================== */

/* Desktop layout fixes */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  
  .navbar .d-flex.align-items-center.order-lg-3 {
    order: 3 !important;
    flex-shrink: 0;
  }
  
  /* Ensure proper spacing between nav items on desktop */
  .navbar-nav-right {
    margin-left: 1rem;
  }
  
  .navbar-nav-right .nav-item {
    margin-left: 0.5rem;
  }
  
  .navbar-nav-right .auth-buttons {
    margin-left: 0.5rem;
  }
}

/* Mobile specific adjustments */
@media (max-width: 991.98px) {
  /* Reset navbar layout for mobile */
  .navbar .container-wide {
    flex-wrap: wrap;
    position: relative;
  }
  
  /* Brand takes left side */
  .navbar-brand {
    order: 1;
    margin-right: auto;
  }
  
  /* Mobile user avatar and toggle on right */
  .navbar .d-flex.align-items-center.order-lg-3 {
    order: 2;
    flex-shrink: 0;
  }
  
  /* Collapse takes full width below */
  .navbar-collapse {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin-top: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(161, 141, 163, 0.1);
  }
  
  /* Mobile navigation adjustments */
  .navbar-nav {
    flex-direction: column;
    margin-bottom: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem;
    margin: 0.25rem 0;
    border-radius: var(--radius-md);
    width: 100%;
  }
  
  .navbar-nav-right {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-left: 0;
  }
  
  .auth-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .auth-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    margin: 0.5rem 0 0 1rem;
    background: rgba(250, 244, 240, 0.5);
    min-width: auto;
  }
  
  .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* Mobile user dropdown positioning fix */
  .d-lg-none .dropdown-menu {
    position: absolute !important;
    right: 0;
    left: auto;
    margin-top: 0.5rem;
    background: white;
    box-shadow: var(--shadow-lg);
    min-width: 280px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 70px;
    --container-wide-padding: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .navbar-brand i {
    font-size: 1.3rem;
  }
  
  .profile-avatar,
  .profile-avatar-placeholder {
    width: 28px;
    height: 28px;
  }
  
  .profile-avatar-placeholder {
    font-size: 0.8rem;
  }
  
  .navbar-collapse {
    padding: 1rem;
  }
  
  .dropdown-menu {
    min-width: 250px;
  }
  
  .user-dropdown {
    min-width: 260px;
  }
  
  .user-dropdown .dropdown-header {
    padding: 1rem;
  }
  
  .dropdown-item {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
  }
  
  .container-wide {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ==================================================
   BUTTONS
   ================================================== */
.btn {
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  border: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--soft-mauve);
  color: white;
  padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
  background: var(--soft-mauve-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background: var(--linen-white);
  color: var(--charcoal-plum);
  border: 2px solid var(--soft-mauve);
  padding: 0.75rem 1.5rem;
}

.btn-secondary:hover {
  background: var(--soft-mauve);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  background: transparent;
  color: var(--soft-mauve);
  border: 2px solid var(--soft-mauve);
  padding: 0.75rem 1.5rem;
}

.btn-outline-primary:hover {
  background: var(--soft-mauve);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

/* Button loading state */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ==================================================
   CARDS
   ================================================== */
.card {
  border: none;
  border-radius: var(--radius-xl);
  transition: var(--transition-normal);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  background: linear-gradient(135deg, var(--linen-white), white);
  border-bottom: 1px solid rgba(161, 141, 163, 0.1);
  font-weight: 600;
  color: var(--charcoal-plum);
  padding: 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background: var(--linen-white);
  border-top: 1px solid rgba(161, 141, 163, 0.1);
  padding: 1rem 1.5rem;
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Special Card Types */
.card-gradient {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  color: white;
}

.card-featured {
  border: 2px solid var(--champagne-gold);
  position: relative;
}

.card-featured::before {
  content: "Featured";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--champagne-gold);
  color: var(--charcoal-plum);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

/* ==================================================
   FORMS
   ================================================== */
.form-control, .form-select {
  border: 2px solid rgba(161, 141, 163, 0.2);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  transition: all var(--transition-fast);
  font-size: 1rem;
  background: white;
}

.form-control:focus, .form-select:focus {
  border-color: var(--rose-quartz);
  box-shadow: 0 0 0 0.2rem rgba(230, 183, 193, 0.25);
  outline: none;
  background: white;
}

.form-label {
  font-weight: 600;
  color: var(--charcoal-plum);
  margin-bottom: 0.5rem;
  font-size: 0.925rem;
}

.form-text {
  color: var(--soft-mauve);
  font-size: 0.875rem;
}

.form-check-input:checked {
  background-color: var(--rose-quartz);
  border-color: var(--rose-quartz);
}

.invalid-feedback {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.is-invalid .form-control {
  border-color: var(--error-color);
}

.is-valid .form-control {
  border-color: var(--success-color);
}

/* ==================================================
   ALERTS AND MESSAGES
   ================================================== */
.message-container {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 1rem 0;
}

.alert {
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.alert .d-flex {
  display: flex;
  align-items: center;
}

.alert-success {
  background: rgba(181, 214, 167, 0.9);
  color: #2d5a27;
  border-left: 4px solid var(--success-color);
}

.alert-warning {
  background: rgba(244, 214, 160, 0.9);
  color: #8b6914;
  border-left: 4px solid var(--warning-color);
}

.alert-error, .alert-danger {
  background: rgba(231, 161, 161, 0.9);
  color: #a91b1b;
  border-left: 4px solid var(--error-color);
}

.alert-info {
  background: rgba(168, 200, 225, 0.9);
  color: #1e3a5f;
  border-left: 4px solid var(--info-color);
}

/* ==================================================
   MAIN CONTENT
   ================================================== */
.main-content {
  min-height: calc(100vh - var(--header-height) - 400px);
  padding-top: 0;
}

/* Legacy container support - maintain compatibility while using wide layout */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--container-wide-padding);
  padding-right: var(--container-wide-padding);
}

.container-fluid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-wide-padding);
  padding-right: var(--container-wide-padding);
}

/* ==================================================
   FOOTER
   ================================================== */
.site-footer {
  background: var(--charcoal-plum);
  color: var(--linen-white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--linen-white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-title i {
  color: var(--rose-quartz);
  margin-right: 0.5rem;
}

.footer-description {
  color: rgba(250, 244, 240, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(230, 183, 193, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-quartz);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--rose-quartz);
  color: white;
  transform: translateY(-2px);
}

.footer-heading {
  font-weight: 600;
  color: var(--linen-white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(250, 244, 240, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: var(--rose-quartz);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(230, 183, 193, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
}

.copyright-text,
.made-with-love {
  margin: 0;
  color: rgba(250, 244, 240, 0.7);
  font-size: 0.875rem;
}

.made-with-love i {
  color: var(--rose-quartz);
  margin: 0 0.25rem;
}

/* ==================================================
   SCROLL TO TOP BUTTON
   ================================================== */
.scroll-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  color: white;
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  cursor: pointer;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ==================================================
   UTILITIES
   ================================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--rose-quartz), var(--soft-mauve));
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--linen-white), white);
}

.bg-gradient-gold {
  background: linear-gradient(135deg, var(--champagne-gold), #f0c674);
}

.shadow-custom {
  box-shadow: var(--shadow-xl);
}

/* Status badges */
.badge-primary {
  background: var(--rose-quartz);
  color: white;
}

.badge-secondary {
  background: var(--soft-mauve);
  color: white;
}

.badge-success {
  background: var(--success-color);
  color: white;
}

.badge-warning {
  background: var(--warning-color);
  color: var(--charcoal-plum);
}

.badge-error {
  background: var(--error-color);
  color: white;
}

/* Loading states */
.loading-spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(161, 141, 163, 0.3);
  border-radius: 50%;
  border-top-color: var(--rose-quartz);
  animation: spin 1s ease-in-out infinite;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==================================================
   ACCESSIBILITY ENHANCEMENTS
   ================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus indicators for keyboard navigation */
*:focus {
  outline: 2px solid var(--rose-quartz);
  outline-offset: 2px;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(230, 183, 193, 0.5);
}

/* Screen reader only content */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--linen-white);
}

::-webkit-scrollbar-thumb {
  background: var(--soft-mauve);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--soft-mauve-dark);
}

/* Selection styling */
::selection {
  background: var(--rose-quartz);
  color: white;
}

::-moz-selection {
  background: var(--rose-quartz);
  color: white;
}

/* Custom modal animations */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Pulse animation for icons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.modal.show .fas.fa-check-circle,
.modal.show .fas.fa-exclamation-triangle {
    animation: pulse 1s ease-in-out;
}

/* ==================================================
   CRITICAL NAVIGATION FIXES
   ================================================== */

/* Ensure navbar items don't overlap */
.navbar .container-wide {
  min-height: var(--header-height);
  align-items: center;
}

/* Fix for collapsing behavior */
@media (max-width: 991.98px) {
  .navbar-collapse.collapse:not(.show) {
    display: none;
  }
  
  .navbar-collapse.show {
    display: block !important;
  }
}

/* Ensure dropdown menus have proper z-index */
.dropdown-menu {
  z-index: 1060 !important;
}

/* Fix navbar brand spacing */
.navbar-brand {
  white-space: nowrap;
}

/* Ensure mobile toggle is always visible */
.navbar-toggler {
  display: block;
}

@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

.notifications-dropdown {
    border: none !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.notification-counter {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.notification-text {
    font-size: 13px;
    line-height: 1.3;
}

.notification-time {
    font-size: 11px;
    color: #6c757d;
}