/* /templates/modern/css/marbus.css */

.marbus-schedule-component {
    --marbus-sunflower: #ffc107;
    --marbus-wheat: #e0ac69;
    --marbus-green: #28a745;
    --marbus-sky-dark: #007bff;
    --marbus-text: #333;
    --marbus-bg: #fff;
    --marbus-border: #dee2e6;
    max-width: 900px;
    margin: 1rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--marbus-text);
}

.marbus-schedule-component h1 {
    color: var(--marbus-text);
    font-weight: 300;
    text-align: center;
    border-bottom: 2px solid var(--marbus-sunflower);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.marbus-schedule-component h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333333;
    margin-top: 1.5rem;
    border-bottom: 1px solid var(--marbus-border);
    padding-bottom: 0.5rem;
}

.marbus-schedule-component h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--marbus-text);
    margin-bottom: 0.75rem;
}

.marbus-schedule-component .marbus-day-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.marbus-schedule-component .marbus-day-switcher input[type="radio"] {
    display: none;
}

.marbus-schedule-component .marbus-day-switcher input[type="radio"]:checked + label {
    background-color: #ffc107;
    color: #fff;
    
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.marbus-schedule-component .marbus-day-switcher label {
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--marbus-border);
    margin: 0;
    transition: all 0.2s ease;
    font-weight: 500;
}

.marbus-schedule-component .marbus-day-switcher label:first-of-type {
    border-radius: 20px 0 0 20px;
    border-right: 1px solid var(--marbus-border);
}

.marbus-schedule-component .marbus-day-switcher label:last-of-type {
    border-radius: 0 20px 20px 0;
    border-left: 1px solid var(--marbus-border);
}

.marbus-schedule-component .marbus-day-switcher label:hover:not(:checked) {
    background-color: #f8f9fa;
}

.marbus-schedule-component .marbus-columns-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.marbus-schedule-component .marbus-schedule-column {
    flex: 1;
    background: var(--marbus-bg);
    border: 1px solid var(--marbus-border);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.marbus-schedule-component .marbus-schedule-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    height: 400px;
    overflow-y: auto;
    border-top: 1px solid var(--marbus-border);
    padding-top: 0.5rem;
}

.marbus-schedule-component .marbus-schedule-list .marbus-time-item {
    font-size: 1.1rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marbus-schedule-component .marbus-schedule-list .marbus-time-item:nth-child(odd) {
    background-color: #fdfdfd;
}

.marbus-schedule-component .marbus-schedule-list .next-bus {
    font-weight: 700;
    background-color: var(--marbus-sunflower) !important;
    color: #333;
    position: relative;
    top: 0;
}

.marbus-schedule-component .marbus-schedule-list .countdown-timer {
    background-color: var(--marbus-green);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    animation: pulse 2s infinite;
}

.marbus-schedule-component .marbus-schedule-list .no-buses-message,
.marbus-schedule-component .marbus-schedule-list .loading-placeholder {
    color: #888;
    font-style: italic;
    text-align: center;
    padding-top: 1rem;
}

.marbus-schedule-component .route-off-message {
    text-align: center;
    font-weight: 500;
    color: #777;
    padding: 2rem;
    background: #f9f9f9;
    border: 1px solid var(--marbus-border);
    border-radius: 8px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@media (max-width: 768px) {
    .marbus-schedule-component .marbus-columns-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    .marbus-schedule-component .marbus-schedule-list {
        height: 300px;
    }
    .marbus-schedule-component .marbus-day-switcher label {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}