/* Base Styles - Global Variables, Reset, and Common Components */

@font-face {
  font-family: 'Montserrat';
  src: url('/static/fonts/Montserrat/Montserrat-Medium.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/static/fonts/Montserrat/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/static/fonts/Montserrat/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/static/fonts/Montserrat/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/static/fonts/Poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --brand-primary: #1a444c;
  --brand-accent: #e3ab0f;
  --font-heading: 'Poppins', 'Montserrat', sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* Green Colors */
  --primary-green: #1a444c;
  --secondary-green: #153940;
  --light-green: #f3f4f6;
  --dark-green: #12333a;
  --green-100: #f3f4f6;
  --green-500: #1a444c;
  --green-600: #153940;
  --green-700: #153940;
  --green-800: #12333a;

  /* Blue Colors */
  --blue-50: #f9fafb;
  --blue-100: #f3f4f6;
  --blue-200: #e5e7eb;
  --blue-400: #1a444c;
  --blue-500: var(--primary-green);
  --blue-600: #153940;
  --blue-700: var(--dark-green);
  --blue-800: var(--dark-green);

  /* Red Colors */
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #991b1b;

  /* Yellow Colors */
  --yellow-50: #fefce8;
  --yellow-100: #fef3c7;
  --yellow-500: #fbbf24;
  --yellow-600: #f59e0b;
  --yellow-700: #d97706;
  --yellow-800: #92400e;

  /* Purple Colors */
  --purple-100: #f3f4f6;
  --purple-400: #1a444c;
  --purple-500: #1a444c;
  --purple-600: #153940;
  --purple-700: #12333a;

  /* Orange Colors */
  --orange-500: #1a444c;
  --orange-600: #153940;

  /* Skeleton/Loader Colors */
  --skeleton-gray: #e8edf2;
  --skeleton-gray-light: #edf2f7;
  --success-light: #f3f4f6;

  /* Semantic Design Tokens */
  --btn-primary-bg: #1a444c;
  --btn-primary-hover-bg: #12333a;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-hover-bg: #f3f4f6;
  --btn-secondary-border: #d1d5db;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --page-bg: #faf8f4;
  --section-bg: #f9fafb;
  --accent-gold: #e3ab0f;
  
  /* Gray Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Slate Colors */
  --slate-100: var(--gray-100);
  --slate-200: #e2e8f0;
  --slate-300: var(--gray-300);
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  /* Black */
  --black: #000000;
  
  /* Indigo Colors */
  --indigo-100: #e0e7ff;
  --indigo-500: #6366f1;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body and Container */
body {
  font-family: var(--font-body);
  background: var(--page-bg);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
  padding-top: 8rem;
}

input,
textarea,
select,
button {
  font-family: var(--font-body);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Admin Button - Outside Navbar */
.admin-button {
  position: fixed;
  top: 1.75rem;
  right: 1rem;
  z-index: 101;
  padding: 0.6rem 1.2rem;
  background: var(--btn-primary-bg);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(26, 68, 76, 0.2);
  transition: all 0.3s ease;
  font-size: 1rem;
  white-space: nowrap;
}

.admin-button:hover {
  background: var(--btn-primary-hover-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 68, 76, 0.3);
}

/* Header Styles */
header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 2rem);
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
  transition: all 0.3s ease;
}

header:hover {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.logo-image {
  height: 36px;
  width: auto;
  display: block;
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.title-with-icon .brand-icon,
.title-with-icon .brand-icon-lg {
  width: 1.8em;
  height: 1.8em;
  object-fit: cover;
  border-radius: 999px;
  background: var(--light-green);
  border: 2px solid var(--gray-200);
  padding: 0;
}

.login-card .title-with-icon {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 0.55rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
}

.login-card .title-with-icon span {
  display: inline-block;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.login-card .title-with-icon .brand-icon,
.login-card .title-with-icon .brand-icon-lg {
  width: 1.8em;
  height: 1.8em;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 0;
}

.brand-icon {
  width: 1em;
  height: 1em;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-icon-lg {
  width: 1em;
  height: 1em;
}

.brand-icon-sm {
  width: 1em;
  height: 1em;
}

.inline-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary-green);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Styles */
nav {
  display: flex;
  gap: 0.25rem;
  background: transparent;
  border-radius: 20px;
  padding: 0.25rem;
  align-items: center;
}

/* Auth spacer for desktop - creates space between main nav and auth controls */
.auth-spacer {
  flex: 1;
}

/* User Menu Dropdown */
.user-menu-container {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(26, 68, 76, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(26, 68, 76, 0.16);
}

.user-menu-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 68, 76, 0.24);
  border-color: rgba(26, 68, 76, 0.45);
  background: var(--light-green);
}

.user-avatar {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
}

.user-portal-icon {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

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

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: rgba(26, 68, 76, 0.1);
  color: var(--primary-green);
  transform: translateX(4px);
}

.dropdown-item.admin {
  color: #ef4444;
  font-weight: 600;
}

.dropdown-item.admin:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.5rem 0;
}

.nav-link {
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-green);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 68, 76, 0.2);
}

.nav-link.active {
  color: var(--white);
  background: var(--btn-primary-bg);
  box-shadow: 0 2px 8px rgba(26, 68, 76, 0.2);
}

/* Primary button nav links (Dashboard/Login/Logout) */
.nav-link.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--white) !important;
  font-weight: 500;
}

/* Specific hover styles for primary button nav links (Dashboard/Logout) */
.nav-link.btn-primary:hover {
  color: var(--white) !important;
  background: var(--btn-primary-hover-bg) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 68, 76, 0.3);
}

/* Admin button nav link - Red to contrast with primary */
.nav-link.btn-admin {
  background: #ef4444;
  color: var(--white) !important;
  font-weight: 500;
}

.nav-link.btn-admin:hover {
  color: var(--white) !important;
  background: #dc2626 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Main Content */
main {
  padding: 0;
}

/* Card Styles */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 8px 0 rgb(0 0 0 / 0.08), 0 1px 3px -1px rgb(0 0 0 / 0.06);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgb(0 0 0 / 0.12);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Typography */
h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-800);
}

h4,
h5,
h6 {
  font-family: var(--font-heading);
}

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  gap: 0.5rem;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-success:hover {
  background: var(--secondary-green);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--gray-700);
  border: 1px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover-bg);
  border-color: var(--gray-400);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-800);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  background: var(--white);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(26, 68, 76, 0.1);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Additional Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(2rem) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Blur Overlay and Login Card - Scoped to Main Content */
.main-content-wrapper {
  position: relative;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
  border-radius: var(--border-radius);
  padding: 12.5vh 0 3rem 0;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 420px;
  max-height: 400px;
  width: 85%;
  text-align: center;
  animation: slideUp 0.4s ease-out;
  position: relative;
  margin: 3rem auto;
}

.login-card h2 {
  color: var(--brand-primary);
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.login-card .btn {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.login-card .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.login-card .btn-secondary {
  background: rgba(75, 85, 99, 0.1);
  color: var(--gray-700);
  border: 1px solid rgba(75, 85, 99, 0.2);
}

.login-card .btn-secondary:hover {
  background: rgba(75, 85, 99, 0.15);
  border-color: rgba(75, 85, 99, 0.3);
}

.blurred-content {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Liquid Glass Service Status Component */
.liquid-glass-container {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  perspective: 1000px;
}

.service-status.liquid-glass {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.46875rem 0.78125rem;
  background: var(--white);
  border-radius: 15px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.625rem;
  color: var(--gray-700);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-overlay {
  display: none;
}

.liquid-glass-border {
  display: none;
}

/* Hover and Active States */
.service-status.liquid-glass:hover {
  transform: translateY(-1.25px);
  box-shadow: var(--shadow-md);
}

.service-status.liquid-glass:active {
  transform: translateY(-1px);
  transition: all 0.1s ease;
}

/* Service Status Elements */
.service-dot {
  width: 6.25px;
  height: 6.25px;
  background: var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(26, 68, 76, 0.3);
  animation: liquidPulse 3s ease-in-out infinite;
  position: relative;
}

.service-dot::after {
  content: '';
  position: absolute;
  top: -1.25px;
  left: -1.25px;
  right: -1.25px;
  bottom: -1.25px;
  background: radial-gradient(circle, rgba(26, 68, 76, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: liquidGlow 3s ease-in-out infinite;
}

.service-text {
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  letter-spacing: 0.01em;
}

/* Liquid Glass Animations */
@keyframes liquidPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes liquidGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Elastic Transform on Mouse Move */
.service-status.liquid-glass.elastic {
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-top: 6rem;
  }
  
  /* Admin Button Mobile */
  .admin-button {
    top: 1.5rem;
    right: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  header {
    top: 0.5rem;
    width: calc(100% - 1rem);
  }
  
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 1rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 6rem 2rem 2rem;
    border-radius: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--card-border);
  }
  
  nav.active {
    transform: translateY(0);
  }
  
  /* Hide auth spacer on mobile */
  .auth-spacer {
    display: none;
  }
  
  /* User menu mobile styles */
  .user-menu-container {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .user-menu-trigger {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }

  .user-portal-icon {
    width: 32px;
    height: 32px;
  }
  
  .user-menu-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 0.5rem;
  }
  
  .nav-link {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-align: center;
    background: transparent;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background: rgba(26, 68, 76, 0.1);
    color: var(--primary-green);
  }
  
  /* Ensure primary buttons (Dashboard/Login/Logout) are visible and styled properly on mobile */
  .nav-link.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--white) !important;
    font-weight: 600;
    margin-top: 0.5rem;
  }

  .nav-link.btn-primary:hover {
    background: var(--btn-primary-hover-bg);
    color: var(--white) !important;
    transform: translateY(-1px);
  }

  /* Admin button mobile styles */
  .nav-link.btn-admin {
    background: #ef4444;
    color: var(--white) !important;
    font-weight: 600;
    margin-top: 0.5rem;
  }

  .nav-link.btn-admin:hover {
    background: #dc2626;
    color: var(--white) !important;
    transform: translateY(-1px);
  }
  
  .card {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 0 1rem;
    max-width: 100%;
  }

  .logo-image {
    height: 30px;
  }
  
  /* Liquid Glass Service Status Mobile */
  .liquid-glass-container {
    bottom: 0.5rem;
  }
  
  .service-status.liquid-glass {
    padding: 0.375rem 0.625rem;
    font-size: 0.5625rem;
    border-radius: 12.5px;
  }
  
  .service-status.liquid-glass:hover {
    transform: translateY(-0.625px);
  }
  
  .service-dot {
    width: 5px;
    height: 5px;
  }
  
  .service-dot::after {
    top: -0.625px;
    left: -0.625px;
    right: -0.625px;
    bottom: -0.625px;
  }
}

#flash-container {
  position: fixed;
  top: 7rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  pointer-events: none;
}

.flash-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--card-border);
  animation: flashSlideIn 0.3s ease-out;
  pointer-events: auto;
}

.flash-message.hiding {
  animation: flashSlideOut 0.3s ease-out forwards;
}

.flash-message.success {
  border-left: 1px solid var(--accent-gold);
}

.flash-message.error {
  border-left: 4px solid var(--red-500);
}

.flash-message.warning {
  border-left: 4px solid var(--yellow-500);
}

.flash-message.info {
  border-left: 1px solid var(--accent-gold);
}

.flash-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.flash-message.success .flash-icon {
  color: var(--primary-green);
}

.flash-message.error .flash-icon {
  color: var(--red-500);
}

.flash-message.warning .flash-icon {
  color: var(--yellow-600);
}

.flash-message.info .flash-icon {
  color: var(--primary-green);
}

.flash-content {
  flex: 1;
  min-width: 0;
}

.flash-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.flash-text {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.4;
  margin: 0;
}

.flash-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--gray-400);
  transition: color 0.2s ease;
  font-size: 1.25rem;
  line-height: 1;
}

.flash-close:hover {
  color: var(--gray-600);
}

@keyframes flashSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes flashSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.confirm-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.confirm-modal {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  max-width: 400px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.confirm-modal-overlay.active .confirm-modal {
  transform: scale(1) translateY(0);
}

.confirm-modal-content {
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
}

.confirm-modal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.confirm-modal-content p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  justify-content: center;
}

.confirm-modal-actions .btn {
  min-width: 100px;
  padding: 0.75rem 1.5rem;
}

@media (max-width: 768px) {
  #flash-container {
    top: 5rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: none;
  }
  
  .flash-message {
    padding: 0.875rem 1rem;
  }
  
  .confirm-modal {
    width: 95%;
    margin: 1rem;
  }
}
