/* ============================================= */
/* ANIMAÇÕES GLOBAIS */
/* ============================================= */

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 2s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* ESTILOS GLOBAIS */
/* ============================================= */

body {
    background-color: white;
    overflow-x: hidden;
}

/* ============================================= */
/* SEÇÃO BANNER DA LISTA DE DEFERIDOS */
/* ============================================= */

.lista-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    background-color: white;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e0e0;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
    box-sizing: border-box;
}

.lista-text {
    flex: 1 1 400px;
    max-width: 600px;
}

.lista-text h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.lista-text p {
    font-size: 1.2rem;
    color: #4a4f63;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-lista {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 15px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-lista:hover {
    transform: scale(1.03);
}

.lista-image {
    flex: 1 1 400px;
    text-align: center;
}

.lista-image img {
    max-width: 100%;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

/* ============================================= */
/* SEÇÃO TABELA DE DEFERIDOS */
/* ============================================= */

.tabela-deferidos {
    max-width: 98%;
    margin: 30px auto;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', sans-serif;
    overflow-x: auto;
    box-sizing: border-box;
}

.tabela-deferidos h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #003366;
    font-size: 1.5rem;
}

/* ============================================= */
/* SEÇÃO DE FILTROS */
/* ============================================= */

.filtros {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filtros select {
    padding: 8px 10px;
    font-size: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    min-width: 140px;
}

/* ============================================= */
/* TABELA DE TRABALHOS */
/* ============================================= */

.tabela-trabalhos {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    font-size: 0.85rem;
}

thead th {
    text-align: left;
    padding: 10px 8px;
    background-color: #f5f5f5;
    color: #444;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    border-bottom: 2px solid #ddd;
}

tbody td {
    padding: 10px 8px;
    border-top: 1px solid #eee;
    font-size: 0.82rem;
    word-wrap: break-word;
    line-height: 1.3;
}

tbody tr:hover {
    background-color: #f9f9f9;
}

/* ============================================= */
/* ESTILOS ESPECÍFICOS DA TABELA */
/* ============================================= */

.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.status.deferido {
    background-color: #d4f4dd;
    color: #219653;
}

.link-portaria, .sem-portaria {
    font-size: 0.8rem;
    white-space: nowrap;
}

a {
    color: #1976D2;
    text-decoration: none;
    font-size: 0.82rem;
}

/* ============================================= */
/* BOTÃO VER MAIS */
/* ============================================= */

.ver-mais {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin: 15px auto;
    display: block;
    transition: background-color 0.3s ease;
    text-align: center;
}

.ver-mais:hover {
    background-color: #19547b;
}

.ver-mais:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* ============================================= */
/* MENSAGEM DE NENHUM RESULTADO */
/* ============================================= */

.nenhum-resultado {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 0.9rem;
}

/* ============================================= */
/* MEDIA QUERIES - RESPONSIVIDADE */
/* ============================================= */

@media (max-width: 1200px) {
    .tabela-deferidos {
        max-width: 99%;
        margin: 20px auto;
        padding: 10px;
    }
}

@media (max-width: 900px) {
    .lista-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
    }

    .lista-image {
        display: none;
    }

    .lista-text h1 {
        font-size: 1.8rem;
    }

    .lista-text p {
        font-size: 0.95rem;
    }

    .btn-lista {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .filtros {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    
    .filtros select {
        width: 100%;
        max-width: 280px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .tabela-deferidos {
        margin: 15px auto;
        padding: 8px;
        border-radius: 8px;
    }
    
    .tabela-deferidos h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    table {
        min-width: 750px;
    }
    
    thead th,
    tbody td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .ver-mais {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lista-text h1 {
        font-size: 1.6rem;
    }
    
    .tabela-deferidos h2 {
        font-size: 1.2rem;
    }
    
    table {
        min-width: 650px;
    }
    
    thead th,
    tbody td {
        padding: 6px 4px;
        font-size: 0.78rem;
    }
}