:root {
    --primary: #4B0082; /* Luas Purple */
    --red-line: #E31837;
    --green-line: #00A550;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 80px;
}

/* Header */
.app-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.logo i {
    font-size: 1.5rem;
}

nav button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

nav button.active {
    color: var(--white);
    font-weight: 600;
}

nav button:hover {
    color: var(--white);
}

/* Hero */
.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border-radius: 0 0 1rem 1rem;
    box-shadow: var(--shadow);
}

.hero-section h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
}

.hero-section p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Main Content */
main {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.view-section {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.view-section.hidden {
    display: none;
}

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

/* Line Cards */
.line-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.line-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.line-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.red-line .line-icon {
    background-color: var(--red-line);
}

.green-line .line-icon {
    background-color: var(--green-line);
}

.line-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
}

.line-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.line-card i.fa-chevron-right {
    margin-left: auto;
    color: var(--text-light);
}

/* Stops List */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.back-btn {
    background: var(--white);
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stops-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stop-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stop-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.stop-info .times {
    font-size: 0.875rem;
    color: var(--green-line);
    font-weight: 600;
}

.fav-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.2s;
}

.fav-btn.active {
    color: #fbbf24; /* Gold */
}

.fav-btn:hover {
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
}

.toast.hidden {
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
}

/* Loading */
.loading-spinner {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

/* Responsive */
@media (max-width: 480px) {
    .hero-section h2 {
        font-size: 1.5rem;
    }
}