:root {
    --primary: #037d73;
    --primary-light: #049a8d;
    --secondary: #2A2D3E;
    --text: #333;
    --text-light: #666;
    --bg: #f5f5f5;
    --card-bg: #fff;
    --highlight-bg: #e8f5f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: var(--secondary);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.header-main i {
    font-size: 2rem;
    color: white;
}

.header-text {
    text-align: left;
}

h1 {
    font-family: 'Poppins', sans-serif;
    color: white;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 3px;
}

.day-selector select {
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    background-color: white;
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
}

.direction-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.direction-toggle button {
    flex: 1;
    padding: 12px;
    border: none;
    background-color: var(--secondary);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.direction-toggle button.active {
    background-color: var(--primary);
}

.direction-toggle button:hover {
    background-color: var(--primary-light);
}

.current-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
    background-color: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.next-train-info {
    background-color: var(--highlight-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid var(--primary);
}

#nextTrainMessage {
    font-weight: 500;
    margin-bottom: 5px;
}

#countdown {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.schedule-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
    margin-bottom: 20px;
}

.schedule-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.train-time {
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    background-color: var(--bg);
    transition: all 0.3s ease;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.train-time .time {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.train-time .station {
    font-size: 0.85rem;
    color: var(--text-light);
}

.train-time.next {
    background-color: var(--primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(3, 125, 115, 0.3);
}

.train-time.next .station {
    color: rgba(255,255,255,0.9);
}

.train-time.past {
    opacity: 0.6;
}

.explore-more {
    text-align: center;
    margin: 25px 0;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(3, 125, 115, 0.3);
}

.explore-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(3, 125, 115, 0.4);
}

footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .header-main i {
        font-size: 1.8rem;
    }
    
    .direction-toggle button {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .schedule-list {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
    
    .train-time {
        padding: 10px 5px;
    }
    
    .explore-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .schedule-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .header-main {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .header-text {
        text-align: center;
    }
}