/* static/css/styles.css */
:root {
    --primary-color: #1a237e;
    --primary-light: #534bae;
    --primary-dark: #000051;
    --secondary-color: #ff5722;
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #2196f3;
}

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.header-banner {
    width: 100%;
    height: 200px;
    background-image: url('/static/images/header.jpeg');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #1a237e; /* Match this to the deep blue in your banner */
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}




.header-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.1));
    z-index: 1;
}

.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: 2rem 0;
    margin-top: auto;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

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

.card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.card-body {
    padding: 1.5rem;
}

/* Button Styles */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #e64a19;
    border-color: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.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;
}

/* Form Styles */
.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(83, 75, 174, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* 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 {
       height: 150px;
   }
   
   .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);
}

/* Tables */
.table-responsive {
   border-radius: 0.5rem;
   box-shadow: 0 2px 10px rgba(0,0,0,0.05);
   background-color: white;
   overflow-x: auto; /* Ensure horizontal scroll on smaller screens */
   overflow-y: hidden;
}

.table {
   margin-bottom: 0;
   width: 100%; /* Make sure the table itself expands */
   min-width: 800px; /* Optional: prevent columns from getting too narrow */
}

.table thead th {
   background-color: #f5f7fa;
   border-top: none;
   border-bottom: 1px solid #e2e8f0;
   font-weight: 600;
   color: #4a5568;
   padding: 0.75rem 1rem;
}

#guestsTable {
        max-width: 900px;
        margin: auto; /* Center the table if needed */
    }

.table tbody td {
   padding: 1rem;
   vertical-align: middle;
   border-top: 1px solid #e2e8f0;
}

.table tbody tr:hover {
   background-color: #f9fafb;
}

/* 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);
}

/* Badges */
.badge-pill {
   padding: 0.4em 0.7em;
   font-weight: 600;
   font-size: 0.75rem;
}

.badge-success {
   background-color: #e8f5e9;
   color: #2e7d32;
}

.badge-danger {
   background-color: #ffebee;
   color: #c62828;
}

.badge-warning {
   background-color: #fff8e1;
   color: #f57f17;
}

.badge-info {
   background-color: #e3f2fd;
   color: #0d47a1;
}

/* 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;
   }
}