/* PÁGINA DE HORÁRIOS - DESIGN PREMIUM */



/* CONTAINER DE ROTAS (DASHBOARD) */
.container-rotas {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.rota-header-labels {
    display: grid;
    grid-template-columns: 50px 2.5fr 1fr 1.8fr 1.8fr 0.8fr 1.2fr 1fr;
    gap: 15px;
    padding: 20px 25px;
    background: var(--primary-dark);
    border-radius: 15px 15px 0 0;
    color: var(--pure-white);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--border-color);
}

.rotas-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.rota-item {
    display: grid;
    grid-template-columns: 50px 2.5fr 1fr 1.8fr 1.8fr 0.8fr 1.2fr 1fr;
    gap: 15px;
    align-items: center;
    padding: 22px 25px;
    background: var(--bg-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-color);
}

.rota-item:hover {
    background: var(--bg-light);
    transform: scale(1.01);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--gold);
}

[data-theme="dark"] .rota-item:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.rota-icon { 
    color: var(--gold); 
    font-size: 1.2rem; 
}

.rota-info-linha { 
    color: var(--text-dark); 
    font-weight: 600; 
    font-size: 0.95rem; 
}

.rota-info-frequencia { 
    color: var(--success); 
    font-weight: 800; 
    font-size: 1.1rem; 
    text-align: center; 
}

.rota-local { 
    display: flex; 
    flex-direction: column; 
    gap: 4px;
}

.local-nome { 
    color: var(--text-dark); 
    font-weight: 700; 
    font-size: 0.9rem; 
}

.local-ponto { 
    color: var(--text-gray); 
    font-size: 0.75rem; 
}

.rota-val { 
    color: var(--text-dark); 
    font-weight: 600; 
    text-align: center; 
    font-size: 0.9rem; 
}

.rota-horario-badge {
    background: rgba(12, 122, 67, 0.1);
    color: var(--success);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    border: 1px solid var(--success);
    font-size: 1rem;
}

.no-data { 
    padding: 80px; 
    text-align: center; 
    color: var(--text-gray); 
    background: var(--bg-card); 
    font-size: 1.2rem; 
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 950px) {
    .page-title-centered { font-size: 2.2rem; }
    .rota-header-labels { display: none; }
    .rotas-list { background: transparent; box-shadow: none; gap: 15px; }
    
    .rota-item {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 25px;
        border-radius: 15px;
        border: 1px solid var(--border-color);
    }
    
    .rota-info-linha { 
        grid-column: span 2; 
        font-size: 1.2rem; 
        border-bottom: 1px solid var(--border-color); 
        padding-bottom: 15px; 
        margin-bottom: 5px;
    }

    .rota-icon { display: none; }
}

/* MODAL DE HORÁRIOS */
.horarios-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.horarios-modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.horarios-modal-header {
    padding: 20px 25px;
    background: var(--primary-dark);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.horarios-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.horarios-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.horarios-modal-close:hover { opacity: 1; }

.horarios-modal-body {
    padding: 30px 25px;
}

.horarios-modal-body p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.horario-item-card {
    background: rgba(12, 122, 67, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.horario-item-card:hover {
    background: var(--success);
    color: #fff;
    transform: translateY(-3px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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