/* Minimal Modern Design System */
:root {
    --primary: #019245;
    --primary-light: #e8f5e9;
    --primary-dark: #017a38;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --background: #ffffff;
    --surface: #fafafa;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-sm: 4px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--surface);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

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

.input-group-text { height: 50px; }

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

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; margin: 0; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.text-muted {
    color: var(--text-light) !important;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Header */
header {
    text-align: center;
    margin: 3rem 0 2rem;
}

header img {
    max-height: 70px;
    margin-bottom: 1.5rem;
}

/* Cards */
.card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

/*.card-body {
    padding: 1.5rem;
}*/

.card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Forms */
.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: var(--background);
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1, 146, 69, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    /*line-height: 1;*/
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 146, 69, 0.1);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    /*transform: translateY(-1px);*/
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    /*border-color: var(--primary);*/
}

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

.btn-success {
    background: #019246;
    color: white;
    border-color: #019246;
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.leaflet-bottom { display: none; }

/* Button Groups */
.btn-group {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.btn-group .btn {
    flex: 1;
    border-radius: 0;
    border: none;
    margin: 0;
}

.btn-check:checked + .btn {
    background: var(--primary);
    color: white;
}

/* Unsure Button */
.unsure-btn {
    background: #fff3cd;
    color: #856404;
    border: 1px dashed #ffc107;
}

.unsure-btn:hover {
    background: #ffeaa7;
    border-color: #ffc107;
}

/* Section Titles */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

/* Improved Table Styles */
.table-responsive {
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    /*overflow: hidden;*/
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 0.875rem;
}

.table th {
    background: var(--surface);
    padding: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    line-height: 1.4;
}

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

.table tbody tr:hover {
    background: var(--primary-light);
}

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

/* Compact table variant for dense data */
.table-compact th {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
}

.table-compact td {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.bg-primary { background: var(--primary) !important; color: white !important; }
.bg-success { background: rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important; color: white !important; }
.bg-warning { background: #f59e0b !important; color: white !important; }
.bg-secondary { background: #6b7280 !important; color: white !important; }
.bg-info { background: #3b82f6 !important; color: white !important; }

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border-left: 4px solid;
    background: var(--surface);
    margin-bottom: 1rem;
}

.alert-success {
    border-left-color: #10b981;
    background: #ecfdf5;
}

.alert-warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.alert-danger {
    border-left-color: #ef4444;
    background: #fef2f2;
}

/* Price Summary */
.price-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.price-summary h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Loading Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Navigation */
.navbar-admin {
    background: var(--primary);
    border-bottom: 1px solid var(--primary-dark);
    padding: 0.75rem 0;
}

.navbar-admin .navbar-brand {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-admin .navbar-brand img {
    height: 30px;
}

.navbar-admin .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    margin: 0 0.125rem;
    transition: all 0.2s ease;
}

.navbar-admin .nav-link:hover,
.navbar-admin .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.navbar-admin .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}

.navbar-admin .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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-user {
    display: flex;
    align-items: center;
}

.user-info {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-badge {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    font-size: 0.75rem;
}

/* Action buttons container */
.table-actions {
    display: flex;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

/* Travel bands specific styles */

.band-structure {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.band-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.band-item:last-child {
    border-bottom: none;
}

.band-name {
    font-weight: 500;
    color: var(--text-primary);
}

.band-range {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.band-surcharge {
    font-weight: 600;
    color: var(--primary);
}

/* Notes list improvements */
.notes-list {
    list-style: none;
    padding: 0;
}

.notes-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.notes-list li:last-child {
    border-bottom: none;
}

.notes-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Utilities */
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }
.ms-auto { margin-left: auto; }
.gap-2 { gap: 0.5rem; }

.row { 
    display: flex; 
    flex-wrap: wrap; 
    margin: 0 -0.75rem; 
}

.col { flex: 1; padding: 0 0.75rem; }
.col-auto { flex: 0 0 auto; padding: 0 0.75rem; }
.col-12 { flex: 0 0 100%; padding: 0 0.75rem; }
.col-md-6 { flex: 0 0 50%; padding: 0 0.75rem; }
.col-md-3 { flex: 0 0 25%; padding: 0 0.75rem; }
.col-md-9 { flex: 0 0 75%; padding: 0 0.75rem; }
.col-lg-6 { flex: 0 0 50%; padding: 0 0.75rem; }



/* Modern Login Page Styles */
.login-page {
    background: linear-gradient(135deg, var(--surface) 0%, #f8fafc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(232, 245, 233, 0.3) 100%);
    opacity: 0.6;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -80px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.login-content {
    animation: slideUp 0.6s ease-out;
}

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

/* Brand Section */
.brand-section {
    margin-bottom: 3rem !important;
}

.brand-logo {
    margin-bottom: 1.5rem;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: brightness(0.9);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.admin-login-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-login-corner .btn {
    font-size: 0.8rem;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.admin-login-corner .btn:hover {
    opacity: 1;
}

/* Login Card */
.login-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.login-card .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 2.5rem 2rem 2rem;
}

.login-card .card-title { color: #fff; }

.card-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    /*color: white;*/
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.login-card .card-body {
    padding: 2.5rem 2rem;
}

/* Form Styles */
.login-form {
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.icon-left {
    margin-right: 0.75rem;
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.login-card .form-control {
    border: 2px solid var(--border-light);
    background: var(--surface);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    height: 56px;
}

.login-card .form-control:focus {
    border-color: var(--primary);
    background: var(--background);
    box-shadow: 0 0 0 4px rgba(1, 146, 69, 0.1);
    transform: translateY(-1px);
}

.login-card .form-control::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Button Styles */
.btn-login {
    border: none;
    color: white;
    padding: 1.125rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

/*.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}*/

.btn-login:hover {
    /*transform: translateY(-2px);*/
    box-shadow: 0 10px 30px rgba(1, 146, 69, 0.3);
}

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

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-login:hover .btn-icon {
    transform: translateX(3px);
}

/* Alert Styles */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger i {
    color: #721c24;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    color: #dc2626;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Footer */
.login-card .card-footer {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 2rem;
    border-radius: 0 0 var(--radius) var(--radius);
}

.footer-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Focus States */
.input-group.focused .form-control {
    border-color: var(--primary);
    background: var(--background);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-page {
        padding: 1rem;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
    }
    
    .login-card .card-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .login-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .shape-1,
    .shape-2,
    .shape-3 {
        display: none; /* Hide background shapes on mobile for better performance */
    }
}

@media (max-width: 480px) {
    .login-card .card-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .login-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .brand-title {
        font-size: 1.75rem;
    }
    
    .btn-login {
        height: 56px;
        font-size: 1rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bg-shape,
    .login-card,
    .btn-login,
    .form-control {
        animation: none;
        transition: none;
    }
    
    .btn-login:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-page {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .login-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .login-card .form-control {
        background: #334155;
        border-color: #475569;
        color: white;
    }
    
    .login-card .form-control:focus {
        background: #475569;
    }
    
    .card-footer {
        background: #334155;
        border-color: #475569;
    }
}


/* Modern Desktop-Focused Bottom Navigation */
.side-nav {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.side-nav:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/*.nav-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}*/

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    min-width: 80px;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.1rem;
    margin-bottom: 0.375rem;
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.nav-item:hover i {
    transform: scale(1.1);
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
    /*border-color: var(--primary);*/
    box-shadow: 0 2px 8px rgba(1, 146, 69, 0.2);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-item.active i {
    transform: scale(1.1);
}

/* Add subtle separator between nav items */
/*.nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.25rem;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background: var(--border-light);
}*/

/* Remove separator from last item */
.nav-item:last-child::after {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .side-nav {
        bottom: 1rem;
        padding: 0.875rem 1.25rem;
        max-width: 95%;
    }
    
    .nav-item {
        min-width: 70px;
        padding: 0.625rem 0.875rem;
    }
    
    .nav-item i {
        font-size: 1rem;
    }
    
    .nav-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .side-nav {
        bottom: 0.5rem;
        padding: 0.75rem 1rem;
        border-radius: var(--radius) var(--radius) 0 0;
        left: 0.5rem;
        right: 0.5rem;
        transform: none;
        max-width: calc(100% - 1rem);
    }
    
    .side-nav:hover {
        transform: none;
    }
    
    .nav-container {
        gap: 0.25rem;
        justify-content: space-between;
    }
    
    .nav-item {
        min-width: auto;
        flex: 1;
        padding: 0.5rem 0.25rem;
    }
    
    .nav-item i {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .nav-label {
        font-size: 0.7rem;
    }
    
    /* Hide separators on mobile */
    .nav-item::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .side-nav {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-item {
        padding: 0.375rem 0.125rem;
    }
    
    .nav-label {
        font-size: 0.65rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .side-nav {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Animation for page transitions */
.nav-item {
    animation: slideUp 0.3s ease-out;
}

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

/* Stagger animation for nav items */
.nav-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item:nth-child(4) { animation-delay: 0.2s; }
.nav-item:nth-child(5) { animation-delay: 0.25s; }
.nav-item:nth-child(6) { animation-delay: 0.3s; }
.nav-item:nth-child(7) { animation-delay: 0.35s; }

/* Focus states for accessibility */
.nav-item:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading state */
.nav-item.loading {
    pointer-events: none;
    opacity: 0.7;
}

.nav-item.loading i {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Navigation Badges */
.nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 0.15rem 0.35rem;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    border: 2px solid var(--background);
    animation: pulse 2s infinite;
}

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

/* Ensure badges are visible on active states */
.nav-item.active .nav-badge {
    border-color: var(--primary-light);
}

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

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 0.75rem;
    }
    
/*    .card-body {
        padding: 1rem;
    }*/
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 0.125rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0;
    }
    
    .d-flex.flex-wrap {
        flex-direction: column;
    }
    
    .gap-2 > * {
        margin-bottom: 0.5rem;
    }
    
    .price-summary h3 {
        font-size: 2.5rem;
    }
    
    .col-md-6, .col-md-3, .col-md-9, .col-lg-6 {
        flex: 0 0 100%;
        margin-bottom: 1rem;
    }
    
    .navbar-user {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .btn, .unsure-btn, .navbar-admin, .page-header {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}