:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    background-image: radial-gradient(circle at top right, #1e3a8a 0%, transparent 40%),
                      radial-gradient(circle at bottom left, #064e3b 0%, transparent 40%);
    color: var(--text-main);
    min-height: 100vh;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

header h1 span {
    color: var(--primary);
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.glass {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hidden {
    display: none !important;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge {
    background: var(--primary);
    color: white;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
}

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

.input-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn {
    width: 100%;
    padding: 1.1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: auto;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 14px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.4s ease;
}

/* Infinite Loading Animation for Booking */
.progress-bar.infinite {
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981, #3b82f6);
    background-size: 200% 100%;
    animation: gradientShift 2s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-size: 1rem;
}

#progress-text {
    color: var(--text-muted);
}

/* Data Container */
.data-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.data-container::-webkit-scrollbar {
    width: 8px;
}

.data-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.data-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.day-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.day-header {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.8rem;
}

.route-table {
    width: 100%;
    border-collapse: collapse;
}

.route-table th, .route-table td {
    padding: 0.8rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap;
}

.route-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-table td {
    font-size: 0.95rem;
    vertical-align: middle;
}

.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
}

body { background: transparent !important; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    .card { padding: 1rem; border-radius: 12px; }
    
    /* Table to Card layout */
    .route-table {
        display: block;
        width: 100%;
        border: none;
    }
    .route-table thead {
        display: none;
    }
    .route-table tbody {
        display: block;
        width: 100%;
    }
    .route-table tr {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        background: rgba(0,0,0,0.2);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 8px;
        padding: 0.5rem;
    }
    .route-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        font-size: 0.9rem;
        text-align: right;
        white-space: normal;
    }
    .route-table td:last-child {
        border-bottom: none;
    }
    .route-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        margin-right: 1rem;
        text-align: left;
    }
    
    .modal-content { padding: 1.5rem; border-radius: 12px; }
    .input-group label { font-size: 0.85rem; }
    .btn { padding: 0.9rem; font-size: 1rem; }
    .day-card { padding: 0.8rem; border-radius: 8px; background: transparent; border: none; }
    .data-container { max-height: none; padding-right: 0; }
}
