/* ============================================
   SETTINGWALA PREMIUM DESIGN SYSTEM
   Version: 2.0 - Professional & Unique
   ============================================ */

/* Global Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Main Content Spacing for Fixed Navigation */
main {
  position: relative;
  z-index: 1;
  padding-top: 72px; /* Match navbar height */
}

/* Ensure proper stacking context */
body {
  overflow-x: hidden;
}

:root {
  /* ============================================
     PREMIUM BRAND COLORS
     ============================================ */
  --color-primary: #A055B8;
  --color-primary-light: #C084D1;
  --color-primary-dark: #7A3F8A;
  --color-primary-rgb: 160, 85, 184;
  
  --color-secondary: #1AB068;
  --color-secondary-light: #4EC58A;
  --color-secondary-dark: #138F4F;
  --color-secondary-rgb: 26, 176, 104;
  
  --color-accent: #FF6B9D;
  --color-accent-light: #FF8FB5;
  --color-accent-dark: #E5457A;
  
  --color-error: #DC3545;
  --color-warning: #FFC107;
  --color-info: #17A2B8;
  --color-success: #1AB068;
  
  /* ============================================
     PREMIUM GRADIENTS
     ============================================ */
  --gradient-primary: linear-gradient(135deg, #A055B8 0%, #C084D1 100%);
  --gradient-secondary: linear-gradient(135deg, #1AB068 0%, #4EC58A 100%);
  --gradient-hero: linear-gradient(135deg, rgba(160, 85, 184, 0.95) 0%, rgba(192, 132, 209, 0.95) 50%, rgba(26, 176, 104, 0.85) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
  --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  
  /* ============================================
     LIGHT THEME
     ============================================ */
  --bg-primary: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-surface-variant: #F5F5F7;
  --bg-hover: rgba(160, 85, 184, 0.04);
  
  --text-primary: #1A1A1A;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --text-disabled: #D1D5DB;
  --text-on-primary: #FFFFFF;
  --text-on-secondary: #FFFFFF;
  
  --border-color: #E5E7EB;
  --border-light: #F3F4F6;
  --divider-color: #E5E7EB;
  
  /* ============================================
     PREMIUM SHADOWS
     ============================================ */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);
  --shadow-primary: 0 8px 24px rgba(160, 85, 184, 0.25);
  --shadow-secondary: 0 8px 24px rgba(26, 176, 104, 0.25);
  --shadow-glow: 0 0 40px rgba(160, 85, 184, 0.3);
  
  /* ============================================
     TYPOGRAPHY - PREMIUM SYSTEM FONTS
     ============================================ */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --font-display-large: 64px;
  --font-display-medium: 52px;
  --font-display-small: 40px;
  
  --font-headline-large: 36px;
  --font-headline-medium: 32px;
  --font-headline-small: 28px;
  
  --font-title-large: 24px;
  --font-title-medium: 18px;
  --font-title-small: 16px;
  
  --font-body-large: 16px;
  --font-body-medium: 14px;
  --font-body-small: 12px;
  
  --font-label-large: 14px;
  --font-label-medium: 12px;
  --font-label-small: 11px;
  
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ============================================
     SPACING SYSTEM
     ============================================ */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
  --spacing-3xl: 32px;
  --spacing-4xl: 40px;
  --spacing-5xl: 48px;
  --spacing-6xl: 64px;
  --spacing-7xl: 80px;
  --spacing-8xl: 96px;
  
  /* ============================================
     BORDER RADIUS
     ============================================ */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  /* ============================================
     COMPONENT DIMENSIONS
     ============================================ */
  --button-height: 48px;
  --button-height-small: 40px;
  --button-height-large: 56px;
  --input-height: 52px;
  --appbar-height: 72px;
  --navbar-height: 70px;
  
  /* ============================================
     ANIMATIONS
     ============================================ */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   DARK THEME
   ============================================ */
[data-theme="dark"] {
  --bg-primary: #0F0F0F;
  --bg-surface: #1A1A1A;
  --bg-card: #1E1E1E;
  --bg-surface-variant: #2A2A2A;
  --bg-hover: rgba(160, 85, 184, 0.08);
  
  --text-primary: #FFFFFF;
  --text-secondary: #B4B4B4;
  --text-tertiary: #8A8A8A;
  --text-disabled: #606060;
  
  --border-color: #2A2A2A;
  --border-light: #1E1E1E;
  --divider-color: #2A2A2A;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-body-medium);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

::selection {
  background-color: rgba(var(--color-primary-rgb), 0.2);
  color: var(--text-primary);
}

/* ============================================
   PREMIUM NAVIGATION / APPBAR
   ============================================ */
.appbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--appbar-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(160, 85, 184, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  z-index: 1000;
  transition: all var(--transition-base);
}

[data-theme="dark"] .appbar {
  background: rgba(26, 26, 26, 0.85);
  border-bottom: 1px solid rgba(160, 85, 184, 0.2);
}

.appbar-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--spacing-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.appbar-leading {
  display: flex;
  align-items: center;
  gap: var(--spacing-3xl);
}

.appbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  transition: transform var(--transition-base);
}

.appbar-brand:hover {
  transform: scale(1.02);
}

.appbar-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.appbar-logo:hover {
  box-shadow: var(--shadow-primary);
  transform: translateY(-2px);
}

.appbar-title {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* Premium Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-size: var(--font-body-medium);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.nav-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 0.08;
}

.nav-link-active {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.1) 0%, rgba(192, 132, 209, 0.1) 100%);
  box-shadow: inset 0 0 0 1px rgba(160, 85, 184, 0.2);
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* Premium Action Buttons */
.appbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.appbar-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-secondary);
}

.appbar-icon-btn:hover {
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.appbar-icon {
  width: var(--appbar-icon-size);
  height: var(--appbar-icon-size);
  color: var(--color-primary);
}

/* Premium Profile Button */
.profile-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-md);
  padding-right: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.08) 0%, rgba(192, 132, 209, 0.08) 100%);
  border: 1px solid rgba(160, 85, 184, 0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.profile-btn:hover {
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.12) 0%, rgba(192, 132, 209, 0.12) 100%);
  border-color: rgba(160, 85, 184, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid rgba(160, 85, 184, 0.3);
  transition: all var(--transition-base);
}

.profile-btn:hover .profile-avatar {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(160, 85, 184, 0.1);
}

.profile-name {
  font-size: var(--font-body-medium);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

/* Premium Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--spacing-md));
  right: 0;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 9999;
  animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dropdown-header {
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.05) 0%, rgba(192, 132, 209, 0.05) 100%);
  border-bottom: 1px solid var(--border-color);
}

.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.dropdown-user-details h4 {
  font-size: var(--font-body-large);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.dropdown-user-details p {
  font-size: var(--font-body-small);
  color: var(--text-secondary);
}

.dropdown-body {
  padding: var(--spacing-sm);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-size: var(--font-body-medium);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.08) 0%, rgba(192, 132, 209, 0.08) 100%);
  color: var(--color-primary);
  transform: translateX(4px);
}

.dropdown-item i {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.dropdown-item:hover i {
  color: var(--color-primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--divider-color);
  margin: var(--spacing-sm) var(--spacing-lg);
}

.dropdown-item-danger {
  color: var(--color-error);
}

.dropdown-item-danger:hover {
  background: rgba(220, 53, 69, 0.08);
  color: var(--color-error);
}

.dropdown-item-danger i {
  color: var(--color-error);
}

/* Mobile Hamburger */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.hamburger-btn:hover {
  background: rgba(var(--color-primary-rgb), 0.1);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--appbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.mobile-menu-content {
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: calc(100vh - var(--appbar-height));
  overflow-y: auto;
}

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

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-size: var(--font-body-large);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
  margin-bottom: var(--spacing-sm);
}

.mobile-nav-link:hover {
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.08) 0%, rgba(192, 132, 209, 0.08) 100%);
  transform: translateX(8px);
}

.mobile-nav-link i {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
}

.mobile-nav-link:hover i {
  color: var(--color-primary);
}

.mobile-nav-link-active {
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.12) 0%, rgba(192, 132, 209, 0.12) 100%);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.mobile-nav-link-active i {
  color: var(--color-primary);
}

/* ============================================
   PREMIUM BUTTONS
   ============================================ */
.btn-elevated {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-3xl);
  height: var(--button-height);
  background: var(--gradient-primary);
  color: var(--text-on-primary);
  font-size: var(--font-body-medium);
  font-weight: var(--font-weight-semibold);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-primary);
  overflow: hidden;
}

.btn-elevated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shimmer);
  transition: left 0.6s ease;
}

.btn-elevated:hover::before {
  left: 100%;
}

.btn-elevated:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.btn-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-3xl);
  height: var(--button-height);
  background: transparent;
  color: var(--color-primary);
  font-size: var(--font-body-medium);
  font-weight: var(--font-weight-semibold);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-outlined:hover {
  background: var(--gradient-primary);
  color: var(--text-on-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-lg);
  height: var(--button-height);
  background: transparent;
  color: var(--color-primary);
  font-size: var(--font-body-medium);
  font-weight: var(--font-weight-semibold);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-text:hover {
  background: rgba(var(--color-primary-rgb), 0.08);
}

/* Button with gradient purple background for forms */
.btn-gradient-purple {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: var(--gradient-primary);
  color: #FFFFFF !important;
  font-weight: var(--font-weight-semibold);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-primary);
  overflow: hidden;
}

.btn-gradient-purple * {
  color: #FFFFFF !important;
}

.btn-gradient-purple::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shimmer);
  transition: left 0.6s ease;
}

.btn-gradient-purple:hover::before {
  left: 100%;
}

.btn-gradient-purple:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-gradient-purple:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-gradient-purple:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Button with gradient green background */
.btn-gradient-green {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  background: var(--gradient-secondary);
  color: #FFFFFF !important;
  font-weight: var(--font-weight-semibold);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-secondary);
  overflow: hidden;
}

.btn-gradient-green * {
  color: #FFFFFF !important;
}

.btn-gradient-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-shimmer);
  transition: left 0.6s ease;
}

.btn-gradient-green:hover::before {
  left: 100%;
}

.btn-gradient-green:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(26, 176, 104, 0.3);
}

.btn-gradient-green:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-gradient-green:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   PREMIUM CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.card-premium {
  position: relative;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(160, 85, 184, 0.2);
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.card-premium:hover {
  box-shadow: var(--shadow-primary);
}

/* ============================================
   PREMIUM INPUTS
   ============================================ */
.input-field {
  width: 100%;
  height: var(--input-height);
  padding: 0 var(--spacing-lg);
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--font-body-medium);
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.input-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1);
}

.input-field:hover {
  border-color: rgba(var(--color-primary-rgb), 0.3);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-2xl);
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-6 { gap: var(--spacing-2xl); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-medium { font-weight: var(--font-weight-medium); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.transition { transition: all var(--transition-base); }
.cursor-pointer { cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
  .md\:hidden { display: none; }
  .hamburger-btn { display: flex; }
  
  .appbar {
    height: 64px;
  }
  
  .appbar-container {
    padding: 0 var(--spacing-lg);
  }
  
  .appbar-title {
    font-size: 20px;
  }
  
  .nav-links {
    display: none;
  }
}

@media (min-width: 769px) {
  .md\:flex { display: flex; }
  .md\:block { display: block; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(30px) scale(0.95); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

@keyframes scroll {
  0% { transform: translateY(0); opacity: 0; }
  40% { opacity: 1; }
  80% { transform: translateY(20px); opacity: 0; }
  100% { opacity: 0; }
}

@keyframes progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 15s ease infinite;
}

.animate-gradient-x {
  background-size: 200% auto;
  animation: gradient-x 3s linear infinite;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

.animation-delay-1 {
  animation-delay: 0.2s;
  opacity: 0;
}

.animation-delay-2 {
  animation-delay: 0.4s;
  opacity: 0;
}

.animation-delay-3 {
  animation-delay: 0.6s;
  opacity: 0;
}

.animation-delay-4 {
  animation-delay: 0.8s;
  opacity: 0;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-scroll {
  animation: scroll 2s ease-in-out infinite;
}

.animate-progress {
  animation: progress 2s ease-out forwards;
}

/* ============================================
   PREMIUM EFFECTS
   ============================================ */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="dark"] .glass-effect {
  background: rgba(26, 26, 26, 0.7);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="dark"] .glass-card {
  background: rgba(255, 255, 255, 0.05);
}

.glow-effect {
  box-shadow: var(--shadow-glow);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid Pattern Background */
.bg-grid-pattern {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface-variant);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* ============================================
   PREMIUM GLASSMORPHIC NAVIGATION BAR
   ============================================ */

/* Main Navigation Bar */
.premium-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(160, 85, 184, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .premium-navbar {
  background: rgba(26, 26, 26, 0.8);
  border-bottom-color: rgba(160, 85, 184, 0.2);
}

.premium-navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo & Brand */
.premium-navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.premium-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.premium-logo-link:hover {
  transform: translateY(-2px);
}

.premium-logo-wrapper {
  height: 48px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.premium-logo-link:hover .premium-logo-wrapper {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 20px rgba(160, 85, 184, 0.4));
}

.premium-logo-image {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.premium-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #A055B8 0%, #C084D1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.premium-brand-badge {
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, #A055B8 0%, #C084D1 100%);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(160, 85, 184, 0.3);
}

/* Navigation Links */
.premium-nav-links {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .premium-nav-links {
    display: flex;
  }
}

.premium-nav-link-wrapper {
  position: relative;
}

.premium-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.premium-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.08) 0%, rgba(192, 132, 209, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.premium-nav-link:hover::before {
  opacity: 1;
}

.premium-nav-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.premium-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.premium-nav-link:hover .premium-nav-icon {
  transform: scale(1.1);
}

.premium-nav-link-active {
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.12) 0%, rgba(192, 132, 209, 0.12) 100%);
  box-shadow: 0 2px 8px rgba(160, 85, 184, 0.15);
}

.premium-nav-link-active::before {
  opacity: 0;
}

.premium-nav-link-admin {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 87, 87, 0.1) 100%);
}

.premium-nav-link-admin:hover {
  color: #ff6b6b;
}

.premium-nav-pulse {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #1AB068;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(26, 176, 104, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 176, 104, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(26, 176, 104, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 176, 104, 0);
  }
}

/* Navbar Actions */
.premium-navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.premium-action-wrapper {
  position: relative;
}

.premium-action-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.premium-action-btn:hover {
  background: rgba(160, 85, 184, 0.08);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.premium-action-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5757 100%);
  color: white;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Profile Dropdown */
.premium-profile-dropdown {
  position: relative;
}

.premium-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.premium-profile-btn:hover {
  background: rgba(160, 85, 184, 0.08);
  transform: translateY(-2px);
}

.premium-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(160, 85, 184, 0.2);
  transition: all 0.3s ease;
}

.premium-profile-btn:hover .premium-profile-avatar {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(160, 85, 184, 0.3);
}

.premium-profile-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #A055B8 0%, #C084D1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.premium-profile-btn:hover .premium-profile-avatar-fallback {
  box-shadow: 0 4px 12px rgba(160, 85, 184, 0.3);
  transform: scale(1.05);
}

.premium-profile-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  display: none;
}

@media (min-width: 768px) {
  .premium-profile-name {
    display: block;
  }
}

.premium-profile-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.premium-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  min-width: 280px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(160, 85, 184, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  z-index: 1001;
}

[data-theme="dark"] .premium-dropdown-menu {
  background: rgba(26, 26, 26, 0.95);
  border-color: rgba(160, 85, 184, 0.2);
}

.premium-dropdown-header {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.premium-dropdown-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.premium-dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(160, 85, 184, 0.2);
}

.premium-dropdown-avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #A055B8 0%, #C084D1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.premium-dropdown-user-info {
  flex: 1;
  min-width: 0;
}

.premium-dropdown-user-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-dropdown-user-email {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-dropdown-divider {
  height: 1px;
  background: rgba(160, 85, 184, 0.1);
  margin: 0.5rem 0;
}

.premium-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.premium-dropdown-item:hover {
  background: rgba(160, 85, 184, 0.08);
  transform: translateX(4px);
}

.premium-dropdown-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.premium-dropdown-item:hover .premium-dropdown-icon {
  color: var(--color-primary);
  transform: scale(1.1);
}

.premium-dropdown-item-active {
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.12) 0%, rgba(192, 132, 209, 0.12) 100%);
  color: var(--color-primary);
}

.premium-dropdown-item-active .premium-dropdown-icon {
  color: var(--color-primary);
}

.premium-dropdown-item-danger {
  color: #ff6b6b;
}

.premium-dropdown-item-danger:hover {
  background: rgba(255, 107, 107, 0.08);
}

.premium-dropdown-item-danger .premium-dropdown-icon {
  color: #ff6b6b;
}

/* Login Button */
.premium-login-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #A055B8 0%, #C084D1 100%);
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(160, 85, 184, 0.3);
  transition: all 0.3s ease;
}

.premium-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(160, 85, 184, 0.4);
}

/* Hamburger Menu */
.premium-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.premium-hamburger:hover {
  background: rgba(160, 85, 184, 0.08);
  color: var(--color-primary);
}

@media (min-width: 1024px) {
  .premium-hamburger {
    display: none;
  }
}

/* Mobile Menu */
.premium-mobile-menu {
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-left: 1px solid rgba(160, 85, 184, 0.1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 999;
  overflow-y: auto;
}

[data-theme="dark"] .premium-mobile-menu {
  background: rgba(26, 26, 26, 0.95);
  border-left-color: rgba(160, 85, 184, 0.2);
}

.premium-mobile-menu-content {
  padding: 1.5rem;
}

.premium-mobile-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.08) 0%, rgba(192, 132, 209, 0.08) 100%);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.premium-mobile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(160, 85, 184, 0.3);
}

.premium-mobile-avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #A055B8 0%, #C084D1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.premium-mobile-user-info {
  flex: 1;
  min-width: 0;
}

.premium-mobile-user-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-mobile-user-email {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-mobile-divider {
  height: 1px;
  background: rgba(160, 85, 184, 0.1);
  margin: 1rem 0;
}

.premium-mobile-item-wrapper {
  position: relative;
}

.premium-mobile-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 0.375rem;
}

.premium-mobile-item:hover {
  background: rgba(160, 85, 184, 0.08);
  transform: translateX(4px);
}

.premium-mobile-item-active {
  background: linear-gradient(135deg, rgba(160, 85, 184, 0.12) 0%, rgba(192, 132, 209, 0.12) 100%);
  color: var(--color-primary);
  font-weight: 600;
}

.premium-mobile-pulse {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: #1AB068;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(26, 176, 104, 0.7);
  animation: pulse-ring 2s infinite;
}

.premium-mobile-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5757 100%);
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.premium-mobile-logout {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 87, 87, 0.1) 100%);
  color: #ff6b6b;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.premium-mobile-logout:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 87, 87, 0.15) 100%);
  transform: translateX(4px);
}

/* Navigation Badges */
.premium-nav-badge,
.premium-mobile-badge {
  animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
  .premium-navbar-container {
    height: 64px;
    padding: 0 1rem;
  }
  
  .premium-brand-text {
    font-size: 1.125rem;
  }
  
  .premium-brand-badge {
    display: none;
  }
}

@media (max-width: 640px) {
  .premium-mobile-menu {
    max-width: 100%;
  }
}
