/* Professional Identity Provider Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* IDTA Font Family */
@font-face {
  font-family: 'Neue Haas Unica Pro';
  src: url('./fonts/Linotype - Neue Haas Unica Pro Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Unica Pro';
  src: url('./fonts/Linotype - Neue Haas Unica Pro.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Unica Pro';
  src: url('./fonts/Linotype - Neue Haas Unica Pro Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Unica Pro';
  src: url('./fonts/Linotype - Neue Haas Unica Pro Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Unica Pro';
  src: url('./fonts/Linotype - Neue Haas Unica Pro Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables - IDTA Brand Colors */
:root {
  /* IDTA Primary Colors */
  --idta-blue: #0028CD;
  --idta-blue-light: #1a40d8;
  --idta-blue-dark: #001a8a;
  
  /* IDTA Secondary Colors */
  --idta-orange: #FF500F;
  --idta-orange-light: #ff6b2e;
  --idta-orange-dark: #cc3f0c;
  
  /* IDTA Accent Colors */
  --idta-light-blue: #e6f2ff;
  --idta-lighter-blue: #f0f7ff;
  --idta-light-orange: #fff2ee;
  
  /* Neutral 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;
  
  /* Semantic Colors */
  --success: #10b981;
  --success-light: #34d399;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --error: #ef4444;
  --error-light: #f87171;
  --info: #3b82f6;
  --info-light: #60a5fa;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-hero: linear-gradient(135deg, #ffffff 0%, var(--idta-lighter-blue) 50%, var(--idta-light-blue) 100%);
  
  /* Border Colors */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #9ca3af;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Typography */
  --font-family: 'Neue Haas Unica Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  
  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-4xl); font-weight: 700; }
h2 { font-size: var(--font-size-3xl); font-weight: 600; }
h3 { font-size: var(--font-size-2xl); font-weight: 600; }
h4 { font-size: var(--font-size-xl); font-weight: 600; }
h5 { font-size: var(--font-size-lg); font-weight: 600; }
h6 { font-size: var(--font-size-base); font-weight: 600; }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--idta-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--idta-blue-light);
}

/* Layout Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: var(--space-10) var(--space-6);
  }
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 40, 205, 0.08);
  box-shadow: 0 2px 8px rgba(0, 40, 205, 0.04);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  padding-left: 0 !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--idta-blue) !important;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding-left: 0;
  margin-left: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-item {
  margin: 0;
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  height: 100%;
}

.navbar-nav .nav-link:hover {
  color: var(--idta-blue) !important;
  background-color: var(--idta-light-blue);
}

.navbar-nav .nav-link.active {
  color: var(--idta-blue) !important;
  background-color: var(--idta-light-blue);
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

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

.card-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-8);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.card-body {
  padding: var(--space-8);
}

.card-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  padding: var(--space-4) var(--space-8);
  border: 2px solid var(--idta-blue);
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  color: var(--idta-blue);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  outline: none;
}

.btn .material-icons {
  font-size: 1.1rem;
}

.btn:focus,
.btn:focus-visible,
.btn:active {
  outline: none;
  box-shadow: none;
}

.btn:hover,
.btn:active {
  background-color: #ffffff;
  border-color: var(--idta-orange);
  border-width: 3px;
  color: var(--idta-blue);
  outline: none;
}

.btn:hover .material-icons,
.btn:active .material-icons {
  color: var(--idta-blue);
}

/* Make all button variants use the unified blue/orange style */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-idta-orange,
.btn-accent,
.btn-outline,
a.btn,
button.btn {
  background-color: #ffffff;
  color: var(--idta-blue);
  border-color: var(--idta-blue);
  border-width: 2px;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-idta-orange:hover,
.btn-accent:hover,
.btn-outline:hover,
a.btn:hover,
button.btn:hover,
.btn-primary:active,
.btn-secondary:active,
.btn-success:active,
.btn-idta-orange:active,
.btn-accent:active,
.btn-outline:active,
a.btn:active,
button.btn:active {
  background-color: #ffffff;
  border-color: var(--idta-orange);
  border-width: 3px;
  color: var(--idta-blue);
  outline: none;
  box-shadow: none;
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-success:focus,
.btn-idta-orange:focus,
.btn-accent:focus,
.btn-outline:focus,
a.btn:focus,
button.btn:focus {
  outline: none;
  box-shadow: none;
}

.btn-primary:hover .material-icons,
.btn-secondary:hover .material-icons,
.btn-success:hover .material-icons,
.btn-idta-orange:hover .material-icons,
.btn-accent:hover .material-icons,
.btn-outline:hover .material-icons,
a.btn:hover .material-icons,
button.btn:hover .material-icons {
  color: var(--idta-blue);
}

/* IDTA Accent Backgrounds */
.bg-idta-light-blue {
  background-color: var(--idta-light-blue) !important;
}

.bg-idta-light-orange {
  background-color: var(--idta-light-orange) !important;
}

/* IDTA Text Colors */
.text-idta-blue { color: var(--idta-blue) !important; }
.text-idta-orange { color: var(--idta-orange) !important; }

.btn-lg {
  padding: var(--space-6) var(--space-10);
  font-size: var(--font-size-base);
}

.btn-sm {
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-xs);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  margin-bottom: var(--space-4);
}

.form-control:focus {
  outline: none;
  border-color: var(--idta-blue);
  box-shadow: 0 0 0 3px rgba(0, 40, 205, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Alerts */
.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  margin-bottom: var(--space-6);
  font-weight: 500;
}

.alert-success {
  background-color: #ecfdf5;
  border-color: var(--success);
  color: #065f46;
}

.alert-danger {
  background-color: #fef2f2;
  border-color: var(--error);
  color: #991b1b;
}

.alert-warning {
  background-color: #fffbeb;
  border-color: var(--warning);
  color: #92400e;
}

.alert-info {
  background-color: #eff6ff;
  border-color: var(--info);
  color: #1e40af;
}

/* Dropdown */
.dropdown-menu {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) 0;
  margin-top: var(--space-2);
  min-width: 200px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--idta-blue);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-light);
  margin: var(--space-2) 0;
}

/* Utilities */
.text-primary { color: var(--idta-blue) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-error { color: var(--error) !important; }
.text-info { color: var(--info) !important; }

.bg-primary { background-color: var(--idta-blue) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-white { background-color: var(--bg-primary) !important; }

.border { border: 1px solid var(--border-light) !important; }
.border-top { border-top: 1px solid var(--border-light) !important; }
.border-bottom { border-bottom: 1px solid var(--border-light) !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

.shadow { box-shadow: var(--shadow-sm) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Spacing Utilities */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-3 { margin: var(--space-3) !important; }
.m-4 { margin: var(--space-4) !important; }
.m-5 { margin: var(--space-5) !important; }
.m-6 { margin: var(--space-6) !important; }
.m-8 { margin: var(--space-8) !important; }
.m-10 { margin: var(--space-10) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }
.mt-10 { margin-top: var(--space-10) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }
.mb-10 { margin-bottom: var(--space-10) !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-5 { padding: var(--space-5) !important; }
.p-6 { padding: var(--space-6) !important; }

/* Flexbox Utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.flex-wrap { flex-wrap: wrap !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.font-weight-normal { font-weight: 400 !important; }
.font-weight-medium { font-weight: 500 !important; }
.font-weight-semibold { font-weight: 600 !important; }
.font-weight-bold { font-weight: 700 !important; }

/* Display Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .card-body {
    padding: var(--space-4);
  }
  
  .card-header {
    padding: var(--space-4);
  }
  
  .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
  }
  
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

/* Admin Navigation */
.nav-item[data-admin-only="true"] {
  display: none;
}

/* Material Icons */
.material-icons {
  font-size: 1.2em;
  vertical-align: middle;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Focus Management */
*:focus {
  outline: 2px solid var(--idta-blue);
  outline-offset: 2px;
}

/* Navigation Enhancements */
.navbar {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.navbar .container {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: var(--space-4) !important;
  padding-right: var(--space-12) !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  padding-top: var(--space-4) !important;
  padding-bottom: var(--space-4) !important;
  gap: 0;
}

.navbar-brand {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  text-decoration: none;
  margin-right: 0;
  padding-left: var(--space-6) !important;
  margin-left: 0 !important;
  flex-shrink: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--idta-blue) 0%, var(--idta-blue-dark) 100%);
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 40, 205, 0.2);
}

.idta-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-subtitle {
  font-size: var(--font-size-sm);
  color: var(--idta-blue);
  font-weight: 400;
  letter-spacing: 0.5px;
  align-self: flex-end;
  margin-bottom: 2px;
  margin-left: 0;
  line-height: 1;
}

.navbar-nav .nav-link .material-icons {
  font-size: 1.125rem;
}

.navbar-collapse {
  align-items: center !important;
  justify-content: space-between !important;
  flex-grow: 1;
  gap: 0;
}

/* Desktop: Always show navbar-collapse */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
  }
}

.navbar-spacer {
  display: none;
}

.navbar-nav.me-auto {
  margin-right: 0 !important;
  margin-left: var(--space-4) !important;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 0 auto;
}

.navbar-nav:not(.me-auto) {
  margin-left: auto !important;
  margin-right: var(--space-12) !important;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 0 auto;
}

/* User Menu Styles */
.user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--idta-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.user-status {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* User Card Menu Styles - Matching the design image */
.user-card-menu {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.user-card-menu:hover {
  text-decoration: none;
  color: inherit;
}

.user-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  min-width: 280px;
  transition: box-shadow var(--transition-normal);
}

.user-card-menu:hover .user-card {
  box-shadow: var(--shadow-md);
}

.user-avatar-icon {
  width: 40px;
  height: 40px;
  background: var(--idta-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--white);
}

.user-avatar-icon .material-icons {
  font-size: 24px;
}

.user-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.user-card-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-email {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-separator {
  width: 1px;
  height: 24px;
  background: var(--gray-300);
  flex-shrink: 0;
}

.user-card-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  flex-shrink: 0;
  padding: var(--space-1);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.user-card-menu:hover .user-card-menu-icon {
  background: var(--gray-100);
}

.user-card-menu-icon .material-icons {
  font-size: 20px;
}

.nav-login-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
}

/* Dropdown Enhancements */
.dropdown-menu {
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  padding: var(--space-2);
  min-width: 280px;
}

.dropdown-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-2);
}

.user-details {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-avatar-small {
  width: 48px;
  height: 48px;
  background: var(--idta-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-text {
  flex: 1;
}

.user-name-full {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
}

.user-email {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-1);
}

.dropdown-item.text-danger:hover {
  background: #fef2f2;
  color: var(--error) !important;
}

/* Footer Styles */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8) 0;
  margin-top: var(--space-20);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer-logo {
  width: 60px;
  height: 60px;
  background: var(--idta-blue);
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-title {
  color: white;
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.footer-description {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
}

.footer-heading {
  color: white;
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

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

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-normal);
}

.footer-links a:hover {
  color: var(--idta-orange);
}

.system-status {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.operational {
  background: var(--success);
}

.status-text {
  color: var(--gray-300);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.status-uptime {
  margin-left: var(--space-5);
}

.footer-divider {
  border-color: var(--gray-700);
  margin: var(--space-8) 0;
}

.footer-copyright {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
  margin: 0;
}

.footer-badges {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.security-badge,
.compliance-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  color: var(--gray-300);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.security-badge .material-icons,
.compliance-badge .material-icons {
  font-size: 1rem;
  color: var(--success);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding-top: 0;
}

/* Navigation Admin Items */
.nav-item[data-admin-only="true"] {
  display: none;
}

/* Navbar Toggler */
.navbar-toggler {
  border: none;
  padding: var(--space-2);
  margin-left: auto;
  order: 2;
}

.navbar-toggler:focus {
  box-shadow: none;
}

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

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .dropdown-menu,
  .footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

/* Cross-Browser Compatibility */
/* Flexbox fallbacks for older browsers */
.navbar .container,
.navbar-collapse,
.navbar-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/* Grid fallbacks */
@supports not (display: grid) {
  .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}

/* Smooth scrolling fallback */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Responsive Enhancements - Mobile First Approach */
/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .container {
    padding-left: var(--space-3) !important;
    padding-right: var(--space-3) !important;
  }
  
  .navbar .container {
    padding-left: var(--space-3) !important;
    padding-right: var(--space-3) !important;
  }
  
  .navbar-brand {
    padding-left: 0 !important;
    gap: var(--space-1);
  }
  
  .idta-logo-img {
    height: 28px;
  }
  
  .brand-subtitle {
    font-size: 0.65rem;
    margin-bottom: 1px;
  }
  
  .navbar-nav .nav-link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
  }
  
  .user-menu {
    padding: var(--space-1) var(--space-2);
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
  }
  
  .user-avatar .material-icons {
    font-size: 1rem;
  }
  
  .dropdown-menu {
    min-width: 240px;
    max-width: calc(100vw - var(--space-4));
    margin-right: var(--space-2);
  }
  
  .dropdown-header {
    padding: var(--space-2);
  }
  
  .user-avatar-small {
    width: 36px;
    height: 36px;
  }
  
  .user-avatar-small .material-icons {
    font-size: 1.25rem;
  }
  
  .user-name-full {
    font-size: var(--font-size-xs);
  }
  
  .user-email {
    font-size: 0.7rem;
  }
  
  .dropdown-item {
    padding: var(--space-2);
    font-size: var(--font-size-xs);
  }
  
  .dropdown-item .material-icons {
    font-size: 1rem;
  }
  
  .btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  
  .card-body,
  .panel-body {
    padding: var(--space-3) !important;
  }
  
  .panel-header {
    padding: var(--space-3) !important;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  .idta-logo-img {
    height: 32px;
  }
  
  .brand-subtitle {
    font-size: var(--font-size-xs);
  }
  
  /* Dropdown menu for medium mobile screens - positioned absolutely */
  .dropdown-menu {
    position: absolute !important;
    min-width: 260px;
    max-width: calc(100vw - var(--space-6));
    right: var(--space-3) !important;
    left: auto !important;
    margin-top: var(--space-2);
    transform: translateX(0) !important;
  }
  
  /* But when navbar is collapsed, make it static */
  .navbar-collapse.show .dropdown-menu {
    position: static !important;
    width: 100%;
    max-width: 100%;
    right: auto !important;
    left: auto !important;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .navbar-nav .nav-link {
    padding: var(--space-3) var(--space-3);
  }
  
  .col-lg-8,
  .col-lg-4 {
    margin-bottom: var(--space-6);
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Common Mobile Styles (991px and down) */
@media (max-width: 991.98px) {
  .navbar .container {
    flex-wrap: wrap;
  }
  
  .navbar-brand {
    gap: var(--space-2);
    order: 1;
    padding-left: var(--space-4) !important;
  }
  
  .navbar-toggler {
    order: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    margin-right: var(--space-3);
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 40, 205, 0.25);
  }
  
  .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
  }
  
  .navbar-collapse {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    margin-top: var(--space-3);
    padding-left: var(--space-3);
    padding-right: var(--space-3);
    gap: var(--space-2);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    display: none !important;
  }
  
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    display: flex !important;
  }
  
  .navbar-nav.me-auto {
    width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: var(--space-2);
  }
  
  .navbar-nav:not(.me-auto) {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: flex-end;
    padding-top: var(--space-2);
  }
  
  .navbar-nav .nav-item {
    width: 100%;
  }
  
  .navbar-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: var(--space-3);
    font-size: var(--font-size-sm);
    white-space: normal;
  }
  
  .navbar-nav .nav-link .material-icons {
    font-size: 1.125rem;
    margin-right: var(--space-2);
  }
  
  .navbar-nav .nav-link span:not(.material-icons) {
    display: inline;
  }
  
  /* User menu and dropdown mobile adjustments */
  .navbar-nav:not(.me-auto) .nav-item.dropdown {
    position: relative;
    width: 100%;
  }
  
  .user-menu {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-3);
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
  }
  
  .user-menu .user-avatar {
    flex-shrink: 0;
  }
  
  .user-menu .user-info {
    display: none;
  }
  
  .user-card-menu {
    width: 100%;
  }
  
  .user-card {
    width: 100%;
    min-width: auto;
    padding: var(--space-2) var(--space-3);
  }
  
  .user-avatar-icon {
    width: 36px;
    height: 36px;
  }
  
  .user-avatar-icon .material-icons {
    font-size: 20px;
  }
  
  .user-card-name {
    font-size: var(--font-size-sm);
  }
  
  .user-card-email {
    font-size: var(--font-size-xs);
  }
  
  .user-card-separator {
    height: 20px;
  }
  
  .user-card-menu-icon .material-icons {
    font-size: 18px;
  }
  
  /* For very small screens, make dropdown full width and static */
  .dropdown-menu {
    position: static !important;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin-top: var(--space-2);
    margin-right: 0;
    margin-left: 0;
    transform: none !important;
    z-index: 1050;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
  }
  
  /* Ensure dropdown is positioned correctly when navbar is collapsed */
  .navbar-collapse.show .dropdown-menu {
    position: static !important;
  }
  
  .dropdown-menu-end {
    right: auto;
    left: auto;
  }
  
  .nav-login-btn {
    width: auto;
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
    white-space: nowrap;
  }
  
  .idta-logo-img {
    height: 32px;
  }
  
  .brand-name {
    font-size: var(--font-size-lg);
  }
  
  .brand-subtitle {
    font-size: var(--font-size-xs);
  }
  
  .user-details {
    gap: var(--space-2);
  }
  
  .user-avatar-small {
    width: 40px;
    height: 40px;
  }
  
  .user-avatar-small .material-icons {
    font-size: 1.5rem;
  }
  
  .user-name-full {
    font-size: var(--font-size-sm);
    word-break: break-word;
  }
  
  .user-email {
    font-size: var(--font-size-xs);
    word-break: break-all;
  }
  
  .dropdown-item {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    gap: var(--space-2);
  }
  
  .dropdown-item .material-icons {
    font-size: 1.125rem;
  }
  
  .footer-badges {
    justify-content: center;
    margin-top: var(--space-4);
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-brand {
    justify-content: center;
    text-align: center;
  }
  
  /* Grid adjustments for mobile */
  .row {
    margin-left: calc(var(--space-3) * -1);
    margin-right: calc(var(--space-3) * -1);
  }
  
  .row > * {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
  
  /* Card adjustments */
  .card,
  .dashboard-panel {
    margin-bottom: var(--space-4);
  }
  
  /* Stack columns on mobile */
  .col-lg-8,
  .col-lg-4,
  .col-lg-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar-nav .nav-link {
    padding: var(--space-3) var(--space-3);
    font-size: var(--font-size-sm);
  }
  
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .idta-logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .navbar {
    padding: var(--space-2) 0;
  }
  
  .idta-logo-img {
    height: 28px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .dropdown-menu,
  .footer,
  .navbar-toggler {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card,
  .dashboard-panel {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
} 