/* static/css/styles.css - Modern UI System */
:root {
    /* Modern Color Palette */
    --primary-color: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    --secondary-color: #EC4899;
    --secondary-light: #F472B6;
    --secondary-dark: #BE185D;

    --accent-color: #F59E0B;
    --accent-light: #FCD34D;

    --success-color: #10B981;
    --success-light: #6EE7B7;
    --warning-color: #F59E0B;
    --warning-light: #FCD34D;
    --danger-color: #EF4444;
    --danger-light: #FCA5A5;
    --info-color: #3B82F6;
    --info-light: #93C5FD;

    /* Neutral Colors */
    --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;

    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* Global Styles */
body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #F9FAFB 0%, #EEF2FF 100%);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

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

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

p { margin-bottom: var(--spacing-md); }

.text-muted { color: var(--text-secondary) !important; }
.small { font-size: 0.875rem; line-height: 1.5; }

/* Link Enhancement */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.header-banner {
    width: 100%;
    min-height: 280px;
    background:
      radial-gradient(900px 400px at -10% -20%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 40%, transparent 60%),
      radial-gradient(700px 350px at 120% -10%, rgba(3,169,244,0.25) 0%, rgba(3,169,244,0.05) 55%, transparent 70%),
      linear-gradient(135deg, #0d47a1 0%, #1976d2 55%, #0b2a6b 100%);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0 0 40px 0;
    color: var(--text-on-primary);
}




.header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.05));
    z-index: 2;
}

.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    margin: 0;
    padding: 0 15px;
}


.navbar-dark .navbar-nav .nav-link {
    color: var(--text-on-primary);
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.15);
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer {
    background-color: var(--primary-color);
    color: var(--text-on-primary);
    padding: 2.25rem 0;
    margin-top: auto;
}

/* Header text tuning */
.header-content .header-text h1 {
    letter-spacing: 0.5px;
    font-weight: 600;
}
.header-content .header-text p.small {
    opacity: 0.9;
}

/* Footer layout + typography (desktop) */
@media (min-width: 992px) {
  .header-banner { height: 240px; }
  .footer .container { max-width: 1200px; }
  .footer .row > [class^='col-'] {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .footer h6 { font-size: 1.05rem; margin-bottom: .35rem; font-weight: 600; }
  .footer .small { font-size: .95rem; }
}

/* Footer spacing for stacked details on smaller/medium screens */
@media (max-width: 991.98px) {
  .footer .row > [class^='col-'] { margin: .35rem 0; }
}

/* Modern Card Styles */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
}

.card-header {
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(to bottom, white, var(--gray-50));
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.card-header.bg-primary {
    background: var(--primary-gradient) !important;
    color: white;
    border-bottom: none;
}

.card-header.bg-white {
    background: white !important;
    border-bottom: 2px solid var(--gray-100);
}

.card-body {
    padding: var(--spacing-xl);
}

/* Info Card Styles */
.info-card {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
}

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

.success-card {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    border: none;
}

.warning-card {
    background: linear-gradient(135deg, var(--warning-color) 0%, #D97706 100%);
    color: white;
    border: none;
}

/* Helper Callout Boxes */
.callout {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid;
    background: white;
    box-shadow: var(--shadow-sm);
}

.callout-info {
    border-left-color: var(--info-color);
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), white);
}

.callout-success {
    border-left-color: var(--success-color);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), white);
}

.callout-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), white);
}

.callout-danger {
    border-left-color: var(--danger-color);
    background: linear-gradient(to right, rgba(239, 68, 68, 0.05), white);
}

.callout-icon {
    font-size: 1.5rem;
    margin-right: var(--spacing-md);
    opacity: 0.8;
}

.callout-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.callout-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Modern Button Styles */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #DC2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-800);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    padding: 0.5rem;
    line-height: 1;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Modern Form Styles */
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.form-label .required {
    color: var(--danger-color);
}

.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-300);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.form-control:hover:not(:focus), .form-select:hover:not(:focus) {
    border-color: var(--gray-400);
}

.form-control::placeholder {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
    display: flex;
    align-items: start;
    gap: 0.375rem;
}

.form-text i {
    margin-top: 0.125rem;
    color: var(--info-color);
}

/* Input Group with Icons */
.input-group {
    position: relative;
}

.input-group-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    z-index: 10;
}

.input-group .form-control {
    padding-left: 2.75rem;
}

/* Floating Label Style */
.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
}

.form-floating > label {
    padding: 1rem;
    color: var(--gray-500);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Form Validation Styles */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310B981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.25rem) center;
    background-size: calc(0.75em + 0.5rem) calc(0.75em + 0.5rem);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23EF4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23EF4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.25rem) center;
    background-size: calc(0.75em + 0.5rem) calc(0.75em + 0.5rem);
}

.invalid-feedback, .valid-feedback {
    font-size: 0.8125rem;
    margin-top: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.invalid-feedback {
    color: var(--danger-color);
}

.valid-feedback {
    color: var(--success-color);
}

/* Status Indicators */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Guest Card */
.guest-card {
    transition: all 0.3s ease;
}

.guest-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.guest-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Help System */
.help-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.help-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.help-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.help-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.help-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Print optimizations */
@media print {
    .navbar, .footer, .btn, .help-trigger {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        background-color: white !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
   .card-body {
       padding: 1.25rem;
   }
   
   .header-banner {
       min-height: 260px;
       padding-bottom: 32px;
   }
   
   .container {
       padding-left: 1rem;
       padding-right: 1rem;
   }
   
   .status-badge {
       padding: 0.25rem 0.5rem;
       font-size: 0.7rem;
   }
   
   .help-trigger {
       bottom: 1rem;
       right: 1rem;
       width: 3rem;
       height: 3rem;
       font-size: 1.25rem;
   }
}

/* Dashboard Stats Cards */
.stats-card {
   position: relative;
   overflow: hidden;
   border-radius: 0.5rem;
   background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
   color: white;
   padding: 1.5rem;
   box-shadow: 0 4px 10px rgba(0,0,0,0.1);
   transition: all 0.3s ease;
}

.stats-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.stats-card .stats-icon {
   position: absolute;
   top: 0.75rem;
   right: 0.75rem;
   font-size: 1.5rem;
   opacity: 0.7;
}

.stats-card .stats-number {
   font-size: 2.5rem;
   font-weight: 700;
   margin-bottom: 0.5rem;
}

.stats-card .stats-title {
   font-size: 1rem;
   font-weight: 500;
   opacity: 0.9;
   margin-bottom: 0;
}

.stats-card.primary {
   background: linear-gradient(135deg, #1a237e, #534bae);
}

.stats-card.success {
   background: linear-gradient(135deg, #2e7d32, #4caf50);
}

.stats-card.warning {
   background: linear-gradient(135deg, #e65100, #ff9800);
}

.stats-card.info {
   background: linear-gradient(135deg, #01579b, #03a9f4);
}

/* Modern Table Styles */
.table-responsive {
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-md);
   background-color: white;
   overflow-x: auto;
   overflow-y: hidden;
   border: 1px solid var(--gray-200);
}

.table {
   margin-bottom: 0;
   width: 100%;
   min-width: 800px;
}

.table thead th {
   background: linear-gradient(to bottom, var(--gray-50), white);
   border-top: none;
   border-bottom: 2px solid var(--gray-200);
   font-weight: 700;
   color: var(--text-primary);
   padding: 1rem 1.25rem;
   font-size: 0.875rem;
   text-transform: uppercase;
   letter-spacing: 0.05em;
}

#guestsTable {
    max-width: 900px;
    margin: auto;
}

.table tbody td {
   padding: 1.125rem 1.25rem;
   vertical-align: middle;
   border-top: 1px solid var(--gray-200);
   color: var(--text-primary);
   font-size: 0.9375rem;
}

.table tbody tr {
   transition: all 0.2s ease;
}

.table tbody tr:hover {
   background-color: var(--gray-50);
   transform: scale(1.005);
   box-shadow: var(--shadow-sm);
}

.table tbody tr:last-child td {
   border-bottom: none;
}

/* Action Buttons */
.action-buttons {
   display: flex;
   gap: 0.5rem;
}

.action-button {
   padding: 0.6rem;
   border-radius: 0.35rem;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   transition: all 0.2s ease;
   color: white;
}

.action-button:hover {
   transform: translateY(-2px);
}

.action-button.view {
   background-color: var(--info-color);
}

.action-button.edit {
   background-color: var(--warning-color);
}

.action-button.delete {
   background-color: var(--danger-color);
}

/* Tabs */
.nav-tabs {
   border-bottom: 2px solid #e2e8f0;
   margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
   border: none;
   color: #4a5568;
   padding: 0.75rem 1.25rem;
   font-weight: 500;
   position: relative;
}

.nav-tabs .nav-link:hover {
   border: none;
   color: var(--primary-color);
   background-color: rgba(83, 75, 174, 0.05);
}

.nav-tabs .nav-link.active {
   color: var(--primary-color);
   border: none;
   font-weight: 600;
}

.nav-tabs .nav-link.active::after {
   content: '';
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 100%;
   height: 2px;
   background-color: var(--primary-color);
}

/* Modern Badges */
.badge {
   padding: 0.375rem 0.875rem;
   font-weight: 600;
   font-size: 0.8125rem;
   border-radius: var(--radius-md);
   letter-spacing: 0.02em;
   display: inline-flex;
   align-items: center;
   gap: 0.375rem;
}

.badge-pill {
   border-radius: 50rem;
}

.badge-success {
   background-color: rgba(16, 185, 129, 0.1);
   color: var(--success-color);
   border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-danger {
   background-color: rgba(239, 68, 68, 0.1);
   color: var(--danger-color);
   border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-warning {
   background-color: rgba(245, 158, 11, 0.1);
   color: var(--warning-color);
   border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-info {
   background-color: rgba(59, 130, 246, 0.1);
   color: var(--info-color);
   border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-primary {
   background-color: rgba(79, 70, 229, 0.1);
   color: var(--primary-color);
   border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-secondary {
   background-color: rgba(107, 114, 128, 0.1);
   color: var(--gray-700);
   border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Modern Alert Styles */
.alert {
   border-radius: var(--radius-lg);
   padding: var(--spacing-lg);
   border: none;
   box-shadow: var(--shadow-sm);
   display: flex;
   align-items: start;
   gap: var(--spacing-md);
   margin-bottom: var(--spacing-lg);
}

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

.alert-success {
   background: linear-gradient(to right, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
   color: #065F46;
   border-left: 4px solid var(--success-color);
}

.alert-danger {
   background: linear-gradient(to right, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
   color: #991B1B;
   border-left: 4px solid var(--danger-color);
}

.alert-warning {
   background: linear-gradient(to right, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
   color: #92400E;
   border-left: 4px solid var(--warning-color);
}

.alert-info {
   background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
   color: #1E40AF;
   border-left: 4px solid var(--info-color);
}

/* Loading Spinner */
.spinner-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(255, 255, 255, 0.8);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 9999;
}

.spinner-border {
   width: 3rem;
   height: 3rem;
   border-width: 0.25em;
}

/* Placeholder for empty states */
.empty-state {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 3rem 1rem;
   text-align: center;
}

.empty-state-icon {
   font-size: 3rem;
   color: #cbd5e0;
   margin-bottom: 1rem;
}

.empty-state-title {
   font-size: 1.25rem;
   color: #4a5568;
   margin-bottom: 0.5rem;
}

.empty-state-description {
   color: #718096;
   max-width: 300px;
   margin-bottom: 1.5rem;
}

/* QR and Barcode */
.qr-container {
   background-color: white;
   padding: 1rem;
   border-radius: 0.5rem;
   display: inline-block;
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Form Wizard */
.form-wizard .steps {
   display: flex;
   justify-content: space-between;
   margin-bottom: 2rem;
   position: relative;
}

.form-wizard .steps::before {
   content: '';
   position: absolute;
   top: 1.25rem;
   left: 0;
   width: 100%;
   height: 2px;
   background-color: #e2e8f0;
   z-index: 1;
}

.form-wizard .step {
   position: relative;
   z-index: 2;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.form-wizard .step-number {
   width: 2.5rem;
   height: 2.5rem;
   border-radius: 50%;
   background-color: white;
   border: 2px solid #e2e8f0;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 600;
   margin-bottom: 0.5rem;
   transition: all 0.3s ease;
}

.form-wizard .step.active .step-number {
   background-color: var(--primary-color);
   border-color: var(--primary-color);
   color: white;
}

.form-wizard .step.completed .step-number {
   background-color: var(--success-color);
   border-color: var(--success-color);
   color: white;
}

.form-wizard .step-label {
   font-size: 0.875rem;
   font-weight: 500;
   color: #4a5568;
}

.form-wizard .step.active .step-label {
   color: var(--primary-color);
   font-weight: 600;
}

.form-wizard .step.completed .step-label {
   color: var(--success-color);
}

/* Badge Design */
.badge-preview {
   max-width: 400px;
   margin: 0 auto;
   border-radius: 0.5rem;
   overflow: hidden;
   box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Timeline */
.timeline {
   position: relative;
   padding-left: 2rem;
}

.timeline::before {
   content: '';
   position: absolute;
   top: 0;
   left: 7px;
   height: 100%;
   width: 2px;
   background-color: #e2e8f0;
}

.timeline-item {
   position: relative;
   padding-bottom: 1.5rem;
}

.timeline-item:last-child {
   padding-bottom: 0;
}

.timeline-item::before {
   content: '';
   position: absolute;
   left: -2rem;
   top: 0.25rem;
   width: 1rem;
   height: 1rem;
   border-radius: 50%;
   background-color: var(--primary-color);
   z-index: 1;
}

.timeline-date {
   font-size: 0.875rem;
   color: #718096;
   margin-bottom: 0.25rem;
}

.timeline-content {
   background-color: white;
   border-radius: 0.5rem;
   padding: 1rem;
   box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

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

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

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

.pulse {
   animation: pulse 2s infinite;
}

@keyframes pulse {
   0% { transform: scale(1); }
   50% { transform: scale(1.05); }
   100% { transform: scale(1); }
}

/* Toast Notifications */
.toast-container {
   position: fixed;
   top: 1rem;
   right: 1rem;
   z-index: 1050;
}

.toast {
   width: 350px;
   background-color: white;
   border-radius: 0.5rem;
   box-shadow: 0 4px 10px rgba(0,0,0,0.1);
   overflow: hidden;
   margin-bottom: 0.75rem;
}

.toast-header {
   padding: 0.5rem 1rem;
   background-color: #f8fafc;
   border-bottom: 1px solid #e2e8f0;
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.toast-body {
   padding: 1rem;
}

/* Print specific styles for badges */
@media print {
   @page {
       size: 3.5in 2.25in;
       margin: 0;
   }
   
   .badge-print-container {
       width: 3.5in;
       height: 2.25in;
       overflow: hidden;
       page-break-after: always;
   }
   
   .badge-print-container img {
       width: 100%;
       height: 100%;
       object-fit: contain;
   }
}
.header-canvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:1;
    pointer-events:none;
    opacity:.6;
}

.glass-card{
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    backdrop-filter: blur(10px) saturate(130%);
    border-radius: 16px;
}

.header-parallax{ perspective: 800px; }
.header-text{ transform: translateZ(0); transition: transform .12s ease-out; }
.header-text.parallax-tilt{
    transform: translate3d(var(--tx,0), var(--ty,0), 0)
               rotateY(var(--ry,0)) rotateX(var(--rx,0));
}

/* Hero content + shapes */
.header-content { position: relative; height: 100%; z-index: 3; }

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-shape { position: absolute; display: block; }

.hero-shape.circle {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
               rgba(255,255,255,0.35),
               rgba(255,255,255,0.08) 60%, transparent 61%);
  filter: blur(0.5px);
}

.circle-lg { width: 420px; height: 420px; left: -120px; top: -120px; opacity: .35; }
.circle-sm { width: 220px; height: 220px; left: 260px; top: 30px; opacity: .2; }

.hero-shape.ring {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.22);
  opacity: .65;
  transform: rotate(12deg);
}

.ring-1 { width: 160px; height: 160px; right: 18%; top: 16%; }
.ring-2 { width: 90px; height: 90px; right: 8%; top: 48%; transform: rotate(-8deg); }

/* Bottom wave */
.header-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 2;
  pointer-events: none;
}

/* Minor utility for muted text */
.opacity-90 { opacity: .9; }

/* Right-side info column */
.header-info { z-index: 3; }
.info-card {
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  align-items: center;
  padding: .5rem .625rem !important; /* compact height */
}
.info-icon {
  width: 28px; height: 28px; /* smaller icon box */
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.header-info .info-icon { margin-right: .5rem !important; }
.info-icon i { font-size: .9rem; }

/* tighter text in info boxes */
.header-info .small { font-size: .9rem; line-height: 1.2; }
.header-info .fw-semibold.small { font-size: .82rem; letter-spacing: .04em; }

/* one-line info layout */
.info-line { display: flex; align-items: center; gap: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.info-label { font-weight: 700; opacity: .95; }
.info-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

.btn.btn-light { color: #0d47a1; }

/* Responsive tweaks for hero */
@media (max-width: 768px) {
  .circle-lg { width: 320px; height: 320px; left: -100px; top: -140px; }
  .circle-sm { width: 180px; height: 180px; left: 200px; top: 35px; }
  .ring-1 { right: 14%; top: 18%; }
  .ring-2 { right: 6%; top: 52%; }
}
