:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #8b5cf6; /* Violet */
    --accent-glow: 0 0 20px rgba(139, 92, 246, 0.5);
    --success: #10b981;
    --danger: #ef4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header h1 {
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #c4b5fd, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.card:hover {
    background: #253347;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #c4b5fd);
}

.direction-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.time-display {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.details {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge.line {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.badge.delay {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.badge.delay.on-time {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

/* Header Switch Styles */
.header-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0.3rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.switch-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.switch-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Removed FAB styles */

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upcoming-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    color: var(--text-secondary);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.upcoming-item .tram-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.upcoming-item .duration {
    font-size: 0.8rem;
    opacity: 0.7;
}

.tiny {
    font-size: 0.7rem;
    opacity: 0.5;
}

.upcoming-item .time {
    color: var(--text-primary);
    font-weight: 600;
}

/* Badge Styles for List */
.badge-delay-red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-delay-green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Show More Button */
.btn-show-more {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn-show-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
