/* Dashboard Specific Styles */

/* Hero Carousel */
.hero-carousel {
    max-width: 1400px;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    background: #0A3161;
}
.carousel-track { 
    display: flex; 
    width: 100%; 
    aspect-ratio: 1983 / 793;
    max-height: 560px;
    position: relative; 
}
.carousel-slide { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.carousel-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    display: block;
}
.play-btn-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px; background: rgba(243, 108, 33, 0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; cursor: pointer; box-shadow: 0 0 20px rgba(243, 108, 33, 0.5);
    transition: var(--transition); border: 3px solid white; z-index: 10;
}
.play-btn-overlay:hover { transform: translate(-50%, -50%) scale(1.1); background: var(--primary-blue); border-color: var(--secondary-orange); }
.carousel-dots {
    position: absolute; bottom: 1.5rem; left: 0; right: 0;
    display: flex; justify-content: center; gap: 0.5rem;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition);
}
.dot.active { background: white; transform: scale(1.2); }

/* Main Dashboard Grid */
.dashboard-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
    display: grid;
    grid-template-columns: 350px 1fr 350px;
    gap: 1.5rem;
    align-items: start;
}

/* Route & Fare */
.planner-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; }
.planner-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.input-group { margin-bottom: 1rem; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.3rem; }
select {
    width: 100%; padding: 0.8rem; border-radius: 8px; border: 1px solid var(--border-subtle);
    background: #F9FAFC; font-size: 0.9rem;
}
.swap-btn {
    display: block; margin: -0.8rem auto 0 auto;
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-subtle);
    background: white; color: var(--text-muted); cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative; z-index: 2;
}

.class-selector { margin: 1.5rem 0; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 1rem; }
.radio-label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-weight: 500; }
.radio-custom {
    width: 16px; height: 16px; border: 2px solid var(--text-muted); border-radius: 50%;
    display: inline-block; position: relative;
}
input[type="radio"] { display: none; }
input[type="radio"]:checked + .radio-custom { border-color: var(--primary-blue); }
input[type="radio"]:checked + .radio-custom::after {
    content: ''; position: absolute; top: 3px; left: 3px; right: 3px; bottom: 3px;
    background: var(--primary-blue); border-radius: 50%;
}

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1rem; text-align: center; background: #F9FAFC; padding: 1rem; border-radius: 12px; }
.res-item i { font-size: 1.2rem; margin-bottom: 0.3rem; display: block; }
.res-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.res-item strong { font-size: 1.1rem; }

/* Map Section */
.map-section { position: relative; height: 500px; display: flex; flex-direction: column; }
.map-overlay-btn {
    position: absolute; top: 1rem; right: 1rem; z-index: 1000;
    background: rgba(28,36,51,0.8); color: white; border: none; padding: 0.5rem 1rem;
    border-radius: 20px; font-size: 0.8rem; backdrop-filter: blur(5px); cursor: pointer;
}
.map-container-wrapper { flex: 1; height: 100%; border-radius: var(--radius-lg); overflow: hidden; }

/* Notices */
.notices-content { display: flex; flex-direction: column; gap: 1rem; max-height: 400px; overflow-y: auto; }
.notice-item { padding-bottom: 1rem; border-bottom: 1px solid var(--border-subtle); }
.notice-item:last-child { border-bottom: none; }
.notice-date { font-size: 0.75rem; color: var(--primary-blue); font-weight: 700; display: block; margin-bottom: 0.3rem; }
.notice-item p { font-size: 0.9rem; line-height: 1.4; }

/* App Download Section */
.app-download-section h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.app-download-section p { font-size: 0.85rem; color: var(--text-muted); }
.app-links-wrapper { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.qr-code { width: 80px; height: 80px; padding: 5px; background: white; border: 1px solid var(--border-subtle); border-radius: 8px; }
.app-store-badges { display: flex; flex-direction: column; gap: 0.5rem; }
.app-store-badges img { height: 35px; }

/* More For You */
.more-for-you-section { grid-column: span 2; } 
.more-for-you-section h2 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.icon-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; cursor: pointer; transition: var(--transition); }
.icon-card:hover { transform: translateY(-5px); }
.circle-icon {
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white; margin-bottom: 0.2rem;
}
.bg-teal { background: linear-gradient(135deg, #74EBD5 0%, #9FACE6 100%); box-shadow: 0 4px 15px rgba(116,235,213,0.3); }
.bg-cyan { background: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%); box-shadow: 0 4px 15px rgba(0,201,255,0.3); }
.icon-card span { font-size: 0.8rem; font-weight: 600; line-height: 1.2; }

/* Twitter */
.tweet-placeholder { text-align: center; padding: 2rem; color: var(--text-muted); }

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 320px 1fr;
    }
    .notices-section { grid-column: 1; }
    .more-for-you-section { grid-column: span 1; }
    .icon-grid { grid-template-columns: repeat(4, 1fr); }
    .twitter-section { grid-column: 2; }
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .more-for-you-section { grid-column: span 1; }
    .twitter-section { grid-column: span 1; }
    .icon-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hero-carousel { margin: 0; border-radius: 0; }
    .carousel-track { height: auto; aspect-ratio: 1983 / 793; }
    .dashboard-layout { padding: 1rem; gap: 1rem; }
    .icon-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .circle-icon { width: 50px; height: 50px; font-size: 1.2rem; }
}
