/* Estilos específicos para a página de início */

.hero-section {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--hover-primary) 50%, 
        var(--btn-warning-bg) 100%);
    color: var(--text-white);
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: var(--text-white);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    color: var(--text-white);
}

/* Responsividade para a seção hero */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-content {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-card .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--primary-gradient);
    border: none;
}

.feature-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-primary-hover);
}

.about-aet-section {
    padding: 4rem 0;
    margin-top: 3rem;
}

.about-aet-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-aet-card {
    border: none;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: white;
    width: 100%;
}

.nav-tabs {
    border-bottom: 2px solid var(--border-light);
    background: var(--bg-secondary);
    padding: 0 1rem;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 1.25rem 2rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.nav-tabs .nav-link.active {
    background: var(--primary-gradient);
    color: var(--text-white);
    border-bottom: 3px solid var(--primary-color);
}

.nav-tabs .nav-link:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.nav-tabs .nav-link .material-icons {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.tab-content {
    padding: 2.5rem;
    min-height: 450px;
}

.about-aet-image {
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-aet-image:hover {
    transform: scale(1.02);
}

.alert-info {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px var(--shadow-primary);
}

.alert-info .material-icons {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.pdf-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
}

.pdf-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pdf-header h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pdf-header .material-icons {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.pdf-viewer {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.pdf-iframe {
    min-height: 600px;
    border-radius: 15px;
    border: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .pdf-iframe {
        min-height: 400px;
    }
    
    .nav-tabs .nav-link {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .pdf-iframe {
        min-height: 300px;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-tabs .nav-link .material-icons {
        font-size: 1.1rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Melhorias de acessibilidade */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Scroll suave para âncoras */
html {
    scroll-behavior: smooth;
}

/* Estilos para a seção de agendamentos */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.schedule-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.schedule-date, .schedule-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.schedule-date .material-icons, .schedule-time .material-icons {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.schedule-vehicle {
    margin-bottom: 1rem;
}

.vehicle-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.vehicle-info .material-icons {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.vehicle-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 1.5rem;
}

.schedule-status {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.schedule-actions {
    margin-top: auto;
    text-align: center;
}

.schedule-actions .btn {
    /* Removido width: 100% para usar largura padrão dos botões */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.empty-schedules {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-schedules h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-schedules p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Responsividade para agendamentos */
@media (max-width: 768px) {
    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .schedule-card {
        margin-bottom: 1rem;
    }
}

/* ===== TWO COLUMN LAYOUT STYLES ===== */

.two-column-layout {
    display: flex;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.left-column {
    flex: 0 0 280px;
    min-width: 280px;
    align-self: flex-start;
}

.right-column {
    flex: 1;
    min-width: 0;
}

/* ===== VERTICAL FOLDERS STYLES ===== */

.folders-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.folder-card-vertical {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.folder-card-vertical:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}


.folder-icon-container-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.folder-icon-vertical {
    font-size: 2rem;
    line-height: 1;
}

.folder-badge-vertical {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
}

.folder-content-vertical {
    flex: 1;
    min-width: 0;
}

.folder-title-vertical {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.folder-description-vertical {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.folder-stats-vertical {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.process-count-vertical {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

.folder-indicator-vertical {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.attention-icon-vertical {
    color: #ef4444;
    font-size: 1.25rem;
    animation: bounce 1s infinite;
}

.folders-summary-vertical {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.summary-item-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
}

.summary-item-vertical .material-icons {
    color: #64748b;
    font-size: 1.1rem;
}

/* ===== VERTICAL FOLDER SPECIFIC COLORS ===== */

.folder-card-vertical[data-folder="processo_criado"] .folder-icon-vertical {
    color: #3b82f6;
}

.folder-card-vertical[data-folder="em_analise"] .folder-icon-vertical {
    color: #f59e0b;
}


.folder-card-vertical[data-folder="agendar_vistoria"] .folder-icon-vertical {
    color: #8b5cf6;
}

.folder-card-vertical[data-folder="vistoria_agendada"] .folder-icon-vertical {
    color: #06b6d4;
}

.folder-card-vertical[data-folder="vistoria_realizada"] .folder-icon-vertical {
    color: #0d9488;
}

.folder-card-vertical[data-folder="autorizado"] .folder-icon-vertical {
    color: #10b981;
}

.folder-card-vertical[data-folder="finalizado"] .folder-icon-vertical {
    color: #059669;
}

.folder-card-vertical[data-folder="indeferido"] .folder-icon-vertical {
    color: #dc2626;
}

.folder-card-vertical[data-folder="cancelado"] .folder-icon-vertical {
    color: #6b7280;
}

/* Nova pasta: AET a vencer (30 dias) */
.folder-card-vertical[data-folder="aet_a_vencer"] .folder-icon-vertical {
    color: #ef4444;
}

/* ===== FOLDER SELECTION STYLES ===== */

.folder-card-vertical.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.folder-card-vertical.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 12px 12px 0 0;
}

/* ===== FOLDER DISABLED STATE (NO PROCESSES) ===== */

.folder-card-vertical[data-count="0"] {
    opacity: 0.8;
    cursor: not-allowed;
}

.folder-card-vertical[data-count="0"]:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.folder-card-vertical[data-count="0"] .folder-icon-vertical {
    opacity: 0.5;
}

.folder-card-vertical[data-count="0"] .folder-title-vertical {
    color: #94a3b8;
}

.folder-card-vertical[data-count="0"] .folder-description-vertical {
    color: #cbd5e1;
}

/* ===== FOLDER ATTENTION REQUIRED (RED STYLE) ===== */

.folder-card-vertical.attention-required {
    border-color: #ef4444 !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    animation: pulse-attention 2s infinite;
}

.folder-card-vertical.attention-required:hover {
    border-color: #dc2626 !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.2) !important;
}

.folder-card-vertical.attention-required.selected {
    border-color: #ef4444 !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.folder-card-vertical.attention-required.selected::before {
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
}

/* ===== RIGHT COLUMN SECTIONS ===== */

.quick-actions-section {
    margin-bottom: 2rem;
}

.schedules-section {
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.schedules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    justify-content: start;
}

.schedules-footer {
    text-align: center;
}

/* ===== QUICK ACTIONS STYLES ===== */

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quick-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    min-width: 200px;
    justify-content: center;
}

.quick-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.quick-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    color: white;
}

.quick-actions .btn-outline-primary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.quick-actions .btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.quick-actions .btn .material-icons {
    font-size: 1.25rem;
}

/* ===== RESPONSIVE DESIGN FOR TWO COLUMN LAYOUT ===== */

@media (max-width: 1200px) {
    .two-column-layout {
        gap: 1.5rem;
    }
    
    .left-column {
        flex: 0 0 320px;
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .two-column-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .left-column {
        flex: none;
        width: 100%;
        min-width: auto;
    }
    
    .right-column {
        flex: none;
        width: 100%;
    }
    
    .folders-grid-vertical {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .folder-card-vertical {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .folder-icon-container-vertical {
        margin-bottom: 1rem;
    }
    
    .folder-icon-vertical {
        font-size: 2.5rem;
    }
    
    .folder-title-vertical {
        font-size: 1.125rem;
    }
    
    .folder-description-vertical {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .two-column-layout {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .folders-grid-vertical {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .folder-card-vertical {
        padding: 1rem;
    }
    
    .folder-icon-vertical {
        font-size: 2rem;
    }
    
    .folder-title-vertical {
        font-size: 1rem;
    }
    
    .schedules-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .quick-actions .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .two-column-layout {
        padding: 0 0.25rem;
    }
    
    .folder-card-vertical {
        padding: 0.75rem;
    }
    
    .folder-icon-vertical {
        font-size: 1.75rem;
    }
    
    .folder-badge-vertical {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }
    
    .folder-title-vertical {
        font-size: 0.9rem;
    }
    
    .folder-description-vertical {
        font-size: 0.75rem;
    }
    
    .quick-actions .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .quick-actions .btn .material-icons {
        font-size: 1.1rem;
    }
}

/* Responsividade para quick actions */
@media (max-width: 768px) {
    .quick-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .quick-actions .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .quick-actions .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .quick-actions .btn .material-icons {
        font-size: 1.1rem;
    }
}
