/**
 * Shuttle Call - Main Styles
 * Professional design based on logo colors
 * 
 * Color Palette:
 * Primary (Turquoise): #1BA5A8
 * Accent (Orange): #F28C38
 * Dark: #2C3E50
 * Light: #ECF0F1
 * White: #FFFFFF
 */

/* ==================== CSS Variables ==================== */
:root {
    /* Merit Hotels Brand Colors */
    --primary-color: #1A2B4A;
    /* Navy - Merit Hotels primary */
    --primary-dark: #0F1A2F;
    /* Darker navy */
    --primary-light: #2A3B5A;
    /* Lighter navy */

    --accent-color: #D4AF37;
    /* Royal Gold - Merit Hotels accent */
    --accent-dark: #B49527;
    /* Darker gold */
    --accent-light: #E4BF47;
    /* Lighter gold */

    --dark-color: #0F1419;
    /* Midnight blue - Merit Hotels dark */
    --light-color: #F8F8F8;
    /* Pearl white - Merit Hotels light */
    --white-color: #FFFFFF;

    /* Semantic Colors - Merit Hotels Compatible */
    --success-color: #2E7D32;
    /* Luxury green */
    --danger-color: #B71C1C;
    /* Deep red */
    --warning-color: #D4AF37;
    /* Use gold for warning */
    --info-color: #1565C0;
    /* Deep blue */

    /* Neutral Colors - High Contrast */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;

    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-dark: #1F2937;

    --border-color: #E5E7EB;
    --border-light: #F3F4F6;

    /* Shadows - Softer & More Natural */
    --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);

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

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;

    /* Typography - Inter Font for Maximum Readability */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 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;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==================== Typography ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    margin-bottom: var(--spacing-md);
    color: #111827;
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

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

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

a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* ==================== Layout ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--spacing-md) * -0.5);
}

.col {
    flex: 1;
    padding: 0 calc(var(--spacing-md) * 0.5);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==================== Header ==================== */
.header {
    background: linear-gradient(135deg, #1A2B4A 0%, #0F1A2F 100%);
    color: var(--text-white);
    padding: var(--spacing-md) 0;
    box-shadow: 0 4px 6px -1px rgba(26, 43, 74, 0.1), 0 2px 4px -1px rgba(26, 43, 74, 0.06);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-white);
    text-decoration: none;
    transition: transform var(--transition-base);
    grid-column: 1;
    justify-self: start;
}

.logo .logo-text {
    display: inline-block;
    margin-left: var(--spacing-sm);
}

.header-title {
    grid-column: 2;
    justify-self: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-white);
    display: none;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 55px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    background: white;
    padding: 0.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    box-shadow: var(--shadow-sm);
}

/* Merit Hotels branding */
.merit-branding {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.merit-branding strong {
    color: #D4AF37;
    font-weight: 600;
}

/* ==================== Navigation ==================== */
.nav {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: var(--font-size-2xl);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
    grid-column: 3;
    justify-self: end;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, #1A2B4A 0%, #2A3B5A 100%);
    color: var(--text-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0F1A2F 0%, #1A2B4A 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(26, 43, 74, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, #D4AF37 0%, #E4BF47 100%);
    color: #1A2B4A;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #B49527 0%, #D4AF37 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: var(--text-white);
}

.btn-danger {
    background: linear-gradient(135deg, #B71C1C 0%, #E53935 100%);
    color: var(--text-white);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--text-primary);
}

.btn-outline-primary {
    background-color: transparent;
    color: #1A2B4A;
    border-color: #1A2B4A;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #1A2B4A 0%, #2A3B5A 100%);
    color: var(--text-white);
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ==================== Cards ==================== */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

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

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

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

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(26, 43, 74, 0.08);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #C0C0C0;
    border-left: 4px solid #D4AF37;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26, 43, 74, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: #1A2B4A;
    box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.1);
}

.form-control:disabled {
    background-color: var(--bg-secondary);
    opacity: 0.6;
    cursor: not-allowed;
}

.form-control.error {
    border-color: #B71C1C;
}

.form-text {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.form-error {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: #B71C1C;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* ==================== Tables ==================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    background: var(--bg-primary);
    border-collapse: collapse;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: linear-gradient(135deg, #1A2B4A 0%, #2A3B5A 100%);
    color: var(--text-white);
}

.table th,
.table td {
    padding: var(--spacing-md);
    text-align: left;
}

.table th {
    color: var(--text-white);
    font-weight: 600;
}

.table td {
    color: var(--text-primary);
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background-color var(--transition-fast);
    background-color: var(--bg-white);
}

.table tbody tr:hover {
    background-color: var(--bg-secondary);
}

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

/* ==================== Badges (Modern Tailwind Style) ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 0.375rem;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(96, 165, 250);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.badge-accent {
    background: rgba(251, 146, 60, 0.1);
    color: rgb(251, 146, 60);
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.2);
}

.badge-success {
    background: rgba(74, 222, 128, 0.1);
    color: rgb(74, 222, 128);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.badge-danger {
    background: rgba(248, 113, 113, 0.1);
    color: rgb(248, 113, 113);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: rgba(250, 204, 21, 0.1);
    color: rgb(234, 179, 8);
    box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(96, 165, 250);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.badge-secondary {
    background: rgba(156, 163, 175, 0.1);
    color: rgb(156, 163, 175);
    box-shadow: inset 0 0 0 1px rgba(156, 163, 175, 0.2);
}

.badge-purple {
    background: rgba(192, 132, 252, 0.1);
    color: rgb(192, 132, 252);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.3);
}

.badge-pink {
    background: rgba(244, 114, 182, 0.1);
    color: rgb(244, 114, 182);
    box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.2);
}

/* ==================== Alerts ==================== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--info-color);
    color: var(--info-color);
}

/* ==================== Loading Spinner (Modern Double Ring) ==================== */
.spinner {
    position: relative;
    width: 80px;
    height: 80px;
    display: inline-block;
}

.spinner::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #1BA5A8;
    border-right-color: #D4AF37;
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
}

.spinner::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-bottom-color: #1BA5A8;
    border-left-color: #D4AF37;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite reverse;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

/* ==================== Utility Classes ==================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-muted {
    color: var(--text-secondary);
}

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

.bg-accent {
    background-color: var(--accent-color);
}

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

.bg-light {
    background-color: var(--bg-secondary);
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.m-0 {
    margin: 0;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.p-0 {
    padding: 0;
}

.pt-1 {
    padding-top: var(--spacing-sm);
}

.pb-1 {
    padding-bottom: var(--spacing-sm);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .header {
        padding: var(--spacing-sm) 0;
    }

    .logo-image {
        height: 45px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .header {
        padding: var(--spacing-sm) 0;
    }

    .header-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: var(--spacing-sm);
        align-items: center;
    }

    .logo {
        font-size: var(--font-size-xl);
        gap: var(--spacing-sm);
        grid-column: 1;
        justify-self: start;
    }

    .logo .logo-text {
        display: none;
    }

    .header-title {
        grid-column: 2;
        justify-self: center;
        font-size: var(--font-size-2xl);
        display: block;
        text-align: center;
        font-weight: var(--font-weight-bold);
        width: 100%;
        position: absolute;
        left: 0;
        right: 0;
        pointer-events: none;
    }

    .logo-image {
        height: 42px;
        padding: 0.3rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-lg);
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: var(--spacing-md);
        top: 50%;
        transform: translateY(-50%);
    }

    /* Hide nav by default on mobile */
    .nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        width: 100%;
        min-height: 200px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 2rem 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 1rem;
        z-index: var(--z-dropdown);
        animation: slideDown 0.3s ease-out;
    }

    /* Show nav when active */
    .nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        text-align: left;
        border-radius: var(--radius-md);
        font-size: var(--font-size-lg);
        font-weight: var(--font-weight-medium);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-link i {
        width: 28px;
        display: inline-block;
        font-size: var(--font-size-lg);
        margin-right: var(--spacing-sm);
    }

    .btn {
        width: 100%;
    }

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

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table th,
    .table td {
        white-space: nowrap;
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .header-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: var(--spacing-xs);
    }

    .logo {
        font-size: var(--font-size-lg);
        grid-column: 1;
        justify-self: start;
    }

    .logo .logo-text {
        display: none;
    }

    .header-title {
        font-size: var(--font-size-xl);
        grid-column: 2;
        justify-self: center;
        display: block;
        text-align: center;
        font-weight: var(--font-weight-bold);
        width: 100%;
        position: absolute;
        left: 0;
        right: 0;
        pointer-events: none;
    }

    .logo-image {
        height: 45px;
        padding: 0.35rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== Modern Spinner Loader ==================== */
.buggy-loader {
    position: relative;
    width: 80px;
    height: 80px;
    display: inline-block;
}

.buggy-loader::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #1BA5A8;
    border-right-color: #D4AF37;
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
}

.buggy-loader::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-bottom-color: #1BA5A8;
    border-left-color: #D4AF37;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite reverse;
}

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

/* Loading overlay with buggy loader */
.buggy-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.buggy-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.buggy-loading-overlay .loading-text {
    color: var(--white-color);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .no-print {
        display: none !important;
    }
}
/* ===
=========================================
   BADGE STYLES - Colorful Status Indicators
   ============================================ */

/* Base badge style */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Available / Online - Luxury Green */
.badge-available {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.badge-available:hover {
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.5);
    transform: translateY(-1px);
}

/* Busy - Royal Gold */
.badge-busy {
    background: linear-gradient(135deg, #D4AF37 0%, #E4BF47 100%);
    color: #1A2B4A;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.badge-busy:hover {
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

/* Offline - Cool Gray */
.badge-offline {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.badge-offline:hover {
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
    transform: translateY(-1px);
}

/* Pending - Gold */
.badge-PENDING {
    background: linear-gradient(135deg, #D4AF37 0%, #E4BF47 100%);
    color: #1A2B4A;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.badge-PENDING:hover {
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

/* Accepted - Navy Blue */
.badge-accepted {
    background: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
}

.badge-accepted:hover {
    box-shadow: 0 6px 16px rgba(21, 101, 192, 0.5);
    transform: translateY(-1px);
}

/* Completed - Luxury Green */
.badge-completed {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.badge-completed:hover {
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.5);
    transform: translateY(-1px);
}

/* Cancelled - Deep Red */
.badge-cancelled {
    background: linear-gradient(135deg, #B71C1C 0%, #E53935 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.4);
}

.badge-cancelled:hover {
    box-shadow: 0 6px 16px rgba(183, 28, 28, 0.5);
    transform: translateY(-1px);
}

/* Pulse animation for active statuses */
.badge-available::before,
.badge-busy::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    left: 8px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ==================== Toast Notifications ==================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-out;
    pointer-events: auto;
    border-left: 4px solid var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

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

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

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

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

@media (max-width: 768px) {
    .toast-container {
        top: 70px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}
