body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    overflow: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    z-index: -1;
}

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

.container {
    padding: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2em;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 10px;
}

.buses {
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 10px;
    flex-grow: 1;
    overflow-y: auto;
}

.buses h2 {
    margin-top: 0;
    border-bottom: 2px solid #fdbb2d;
    padding-bottom: 10px;
}

.bus-list {
    list-style: none;
    padding: 0;
}

.bus-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
}

.bus-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.bus-details {
    display: flex;
    justify-content: space-between;
    font-size: 1em;
}

.route {
    color: #fdbb2d;
}

.departure {
    color: #00ff00;
}

.stop-group {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    overflow: hidden;
}

.stop-header {
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stop-name {
    font-weight: bold;
    font-size: 1.1em;
}

.walk-time {
    color: #aaa;
    font-size: 0.9em;
}

.stop-buses {
    padding: 10px 15px;
}

.bus-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bus-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.no-buses {
    color: #888;
    font-style: italic;
    margin: 10px 0;
}

#stop-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 1400px) {
    #stop-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    #stop-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #stop-list {
        grid-template-columns: 1fr;
    }
}
