/* ===== PREMIUM ADMIN DASHBOARD STYLES (LIGHT THEME REDESIGN) ===== */

:root {
    --bg-main: #F3F4F6;       /* Soft Gray Canvas */
    --bg-card: #FFFFFF;       /* Pure White Elevated Surface */
    --bg-sidebar: #FFFFFF;    /* Clean White Sidebar */
    --color-bg: #F9FAFB;      /* Light Input Background */
    --border-subtle: #E5E7EB; /* Very Soft Gray Border */
    --text-primary: #111827;  /* Deep Slate (Not pure black) */
    --text-muted: #6B7280;    /* Medium Gray Text */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.admin-body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.hidden { display: none !important; }

/* --- Shared Form Elements --- */
.login-form .form-group {
    text-align: left;
    margin-bottom: 24px;
}

.login-form label {
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.login-form input {
    background: #FFFFFF;
    border-color: var(--border-subtle);
}

.login-form .btn-primary {
    margin-top: 10px;
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB; /* Slightly darker border for inputs */
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
}

/* --- Login Overlay --- */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    backdrop-filter: blur(20px);
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 60px 50px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.login-header .nav-logo {
    justify-content: center;
    margin-bottom: 32px;
    transform: scale(1.2);
}

.login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background: white;
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    animation: modalSlide 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.modal-header {
    padding: 32px;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

/* --- Waiver Verification Hub --- */
.verification-header {
    border: none;
    padding: 32px 32px 20px 32px;
}

.status-badge.live {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

.status-badge.live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.btn-icon-close {
    background: #F3F4F6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-close:hover { background: #E5E7EB; color: var(--text-primary); }

.waiver-progress-hub {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.progress-label { font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.progress-stats { font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }

.progress-bar-container {
    height: 10px;
    background: #E5E7EB;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF5722, #FF9800);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-print-all {
    width: 100%;
    background: white;
    border: 1px solid #E5E7EB;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-print-all:hover { border-color: var(--color-primary); color: var(--color-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.waiver-list-header {
    display: flex;
    justify-content: space-between;
    padding: 0 16px 12px 16px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.waiver-cards-container {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.waiver-cards-container::-webkit-scrollbar { width: 6px; }
.waiver-cards-container::-webkit-scrollbar-track { background: transparent; }
.waiver-cards-container::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 10px; }

.waiver-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #F3F4F6;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.waiver-card-item:hover { border-color: #E5E7EB; box-shadow: 0 4px 12px rgba(0,0,0,0.03); transform: scale(1.01); }

.rider-info h4 { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.rider-info p { font-size: 0.8rem; color: var(--text-muted); }

.rider-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.verified-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-view-sig {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-sig:hover { background: var(--text-primary); color: white; border-color: var(--text-primary); }

/* --- Dashboard Layout --- */
.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 32px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #F9FAFB;
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(255, 87, 34, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    font-weight: 700;
}

/* --- Sidebar Footer & Logout --- */
.sidebar-footer {
    padding: 24px 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-sidebar);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
}

.logout-btn ion-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.15);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

.logout-btn:hover ion-icon {
    transform: translateX(4px);
    color: #EF4444;
}

.logout-btn:active {
    transform: scale(0.98);
}

/* --- Main Content --- */
.main-content {
    padding: 48px;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.header-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 6px;
}

.header-title p { color: var(--text-muted); font-size: 1.05rem; }

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.stat-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 60px; height: 60px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.orange { background: rgba(255, 87, 34, 0.1); color: #FF5722; }
.stat-icon.green { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.stat-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }

.stat-info h3 { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 2px; }
.stat-info p { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* --- Data Section & Grid --- */
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .dashboard-grid-2 { grid-template-columns: 1fr; }
}

.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 24px 32px;
    flex: 1;
}

.card-body.padding-0 {
    padding: 0;
}

/* --- Utilities for Cards --- */
.period-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: #F9FAFB;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    width: auto;
}

.link-action {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.link-action:hover { text-decoration: underline; }

/* --- Manifest List View --- */
.manifest-list {
    list-style: none;
    margin: 0; padding: 0;
}

.manifest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s ease;
}

.manifest-item:last-child { border-bottom: none; }
.manifest-item:hover { background: #F9FAFB; }

.manifest-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.manifest-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.manifest-item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.manifest-item-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.manifest-time {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* --- Tables --- */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: #FFFFFF;
    font-size: 0.95rem;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-select {
    padding: 12px 36px 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: #FFFFFF;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.data-table th {
    padding: 16px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #F9FAFB;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Center specific columns */
.data-table th:nth-child(4), .data-table td:nth-child(4), /* Paxs */
.data-table th:nth-child(7), .data-table td:nth-child(7), /* Status */
.data-table th:nth-child(8), .data-table td:nth-child(8)  /* Actions */ {
    text-align: center;
}

.data-table td {
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.95rem;
    vertical-align: middle;
}

/* Premium Action Buttons */
.btn-action-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 87, 34, 0.1);
    color: var(--color-primary);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-action-edit:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.2);
}

.btn-action-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-action-delete:hover {
    background: #EF4444;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

.data-table tbody tr:hover {
    background: #F9FAFB;
}

/* --- Pagination --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    border-top: 1px solid var(--border-subtle);
    gap: 8px;
}

.page-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: #FFFFFF;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}

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

.page-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(16px);
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 680px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 48px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.modal-header h2 { font-size: 2rem; font-weight: 800; }

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* --- Header Actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile img {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    padding: 2px;
    object-fit: cover;
}

/* --- Table Specifics --- */
.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-initials {
    width: 40px; height: 40px;
    background: #F3F4F6;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.table-user .name { font-weight: 700; font-size: 1.05rem; }
.table-user .sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* --- Utility --- */
.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(135deg, #ff5722, #ff9800);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.25);
    border: none;
    color: white !important;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 87, 34, 0.35);
}

.btn-outline {
    background: transparent;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary) !important;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.badge-warning { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }

/* Status Interactive Selects */
.status-select {
    padding: 8px 30px 8px 16px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    min-width: 125px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    color-scheme: light;
}

.status-select:hover {
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.status-select option {
    background: #FFFFFF;
    color: var(--text-primary);
    padding: 10px;
    font-weight: 600;
}

.status-pending { background-color: rgba(255, 193, 7, 0.1); color: #ffc107; border-color: rgba(255, 193, 7, 0.2); }
.status-confirmed { background-color: rgba(0, 188, 212, 0.1); color: #00bcd4; border-color: rgba(0, 188, 212, 0.2); }
.status-paid { background-color: rgba(76, 175, 80, 0.1); color: #4caf50; border-color: rgba(76, 175, 80, 0.2); }
.status-cancelled { background-color: rgba(244, 67, 54, 0.1); color: #f44336; border-color: rgba(244, 67, 54, 0.2); }
.status-completed { background-color: rgba(158, 158, 158, 0.1); color: #9e9e9e; border-color: rgba(158, 158, 158, 0.2); }

/* --- Premium Action Toolbar --- */
.action-toolbar {
    display: flex;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn ion-icon {
    font-size: 1.2rem;
}

.tool-btn:hover {
    background: #F3F4F6;
    color: var(--text-primary);
}

.tool-btn.print:hover { color: #10B981; background: rgba(16, 185, 129, 0.08); }
.tool-btn.pdf:hover { color: #EF4444; background: rgba(239, 68, 68, 0.08); }
.tool-btn.csv:hover { color: #3B82F6; background: rgba(59, 130, 246, 0.08); }

.tool-btn span {
    display: inline-block;
}

@media (max-width: 768px) {
    .tool-btn span { display: none; }
    .tool-btn { padding: 8px 12px; }
}

@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .dashboard-container { grid-template-columns: 1fr; }
    .sidebar { display: none; }
}

/* =========================================================
   10. PRINT STYLESHEET (DAILY RUN SHEET)
========================================================= */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-manifest, #printable-manifest * {
        visibility: visible;
    }
    #printable-manifest {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: block !important;
        padding: 0;
        color: #000;
        font-family: Arial, sans-serif;
    }
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }
    .print-table th, .print-table td {
        border: 1px solid #000;
        padding: 12px;
        text-align: left;
        font-size: 11pt;
    }
    .print-table th {
        background-color: #f3f3f3 !important;
        font-weight: bold;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    .print-header h1 {
        margin: 0;
        font-size: 24pt;
    }
    .print-checkbox {
        width: 16px;
        height: 16px;
        border: 1px solid #000;
        display: inline-block;
        margin-right: 8px;
        vertical-align: middle;
    }
}

/* --- New Split-View Modal --- */
.waiver-split-modal {
    max-width: 950px !important;
    display: flex !important;
    padding: 0 !important;
    overflow: hidden;
    height: 650px;
    background: white;
}

.waiver-master-panel {
    flex: 1;
    min-width: 380px;
    border-right: 1px solid #F3F4F6;
    display: flex;
    flex-direction: column;
}

.waiver-detail-panel {
    flex: 1.2;
    background: #F9FAFB;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 0;
}

.waiver-progress-hub.mini {
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.detail-placeholder {
    text-align: center;
    color: #9CA3AF;
    padding: 40px;
}

.detail-placeholder ion-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.detail-content {
    padding: 40px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

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

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.detail-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    margin: 0;
}

.signature-frame {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    margin-bottom: 24px;
}

.signature-frame img {
    max-width: 100%;
    height: auto;
    filter: contrast(1.1);
}

.detail-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.btn-icon-close.top-right {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
}

.waiver-card-item.active {
    border-color: var(--color-primary) !important;
    background: rgba(255, 87, 34, 0.03) !important;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.08) !important;
}

.mobile-only { display: none; }

@media (max-width: 900px) {
    .waiver-split-modal { flex-direction: column; height: auto; max-height: 90vh; }
    .waiver-detail-panel { min-height: 300px; }
    .mobile-only { display: flex !important; }
    .top-right { display: none !important; }
}

/* --- Clickable Calendar Days --- */
.calendar-day {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #F3F4F6;
}

.calendar-day:hover {
    background: #FAFBFC;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    z-index: 10;
    border-color: var(--color-primary);
}

.calendar-day::after {
    content: 'View Operations';
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0;
    transition: opacity 0.2s;
    text-transform: uppercase;
}

.calendar-day:hover::after { opacity: 1; }

/* --- Daily Hub Modal Components --- */
.hub-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.hub-stat-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #F3F4F6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.hub-stat-card label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.hub-stat-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.hub-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hub-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hub-slot-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-slot-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.85rem;
}

.hub-slot-bar {
    height: 6px;
    background: #F3F4F6;
    border-radius: 3px;
    overflow: hidden;
}

.hub-slot-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.hub-manifest-container {
    background: white;
    border: 1px solid #F3F4F6;
    border-radius: 16px;
    overflow: hidden;
}

.hub-manifest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.2s;
}

.hub-manifest-row:hover { background: #FAFBFC; }
.hub-manifest-row:last-child { border-bottom: none; }

/* --- Premium Status Indicators --- */
.status-pill-indicator {
    width: 32px;
    height: 12px;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.status-pill-indicator.paid { background: #10B981; }
.status-pill-indicator.deposit { background: #F59E0B; }
.status-pill-indicator.booked { background: #8B5CF6; }

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.legend-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* --- Dynamic Weather Animations & Active Selectors --- */
@keyframes weatherPulse {
    0% { transform: scale(1); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15)); }
    100% { transform: scale(1); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05)); }
}

.btn-trail-pill:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #111827 !important;
}

.btn-trail-pill.active:hover {
    background: inherit !important;
    color: #FFFFFF !important;
}

.text-center {
    text-align: center !important;
}

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

/* --- Modern Multi-Package Grid & Counter (Modal Redesign) --- */
.modal-packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 8px;
    margin-top: 4px;
}

/* Beautiful custom scrollbar for packages grid */
.modal-packages-grid::-webkit-scrollbar {
    width: 6px;
}
.modal-packages-grid::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 99px;
}
.modal-packages-grid::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 99px;
}

.modal-package-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-package-row:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.06);
    transform: translateY(-1px);
}

.modal-package-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-package-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.modal-package-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.modal-package-counter {
    display: flex;
    align-items: center;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 99px;
    padding: 3px;
    gap: 12px;
}

.modal-counter-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #FFFFFF;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.modal-counter-btn:hover {
    background: var(--color-primary);
    color: #FFFFFF;
    transform: scale(1.05);
}

.modal-counter-btn:active {
    transform: scale(0.95);
}

.modal-counter-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 16px;
    text-align: center;
}

.modal-package-row.selected {
    border-color: var(--color-primary);
    background: rgba(255, 87, 34, 0.02);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.04);
}

/* Modal form inputs — ensure visible text */
.modal-form input,
.modal-form textarea,
.modal-form select {
    background: var(--color-bg, #F9FAFB) !important;
    color: var(--text-primary, #111827) !important;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: var(--text-muted, #6B7280) !important;
    opacity: 0.7;
}
