* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    min-height: 100vh;
    padding: 20px;
}

.container-principal {
    max-width: 1400px;
    margin: 0 auto;
}

.cabecalho-pagina {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
}

.cabecalho-pagina h1 {
    color: #025a10;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitulo {
    color: #666;
    font-size: 16px;
}

.barra-ferramentas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.grupo-filtros {
    display: flex;
    gap: 15px;
    flex: 1;
    flex-wrap: wrap;
}

.filtro-select,
.campo-busca {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background: white;
}

.filtro-select {
    min-width: 180px;
}

.campo-busca {
    flex: 1;
    min-width: 250px;
}

.filtro-select:focus,
.campo-busca:focus {
    outline: none;
    border-color: #025a10;
    box-shadow: 0 0 0 2px rgba(2, 90, 16, 0.1);
}

.btn-nova-demanda {
    padding: 10px 25px;
    background: linear-gradient(135deg, #025a10 0%, #028f1a 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-nova-demanda:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 90, 16, 0.4);
}

.estatisticas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card-estatistica {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card-estatistica .numero {
    font-size: 36px;
    font-weight: bold;
    color: #025a10;
    margin-bottom: 8px;
}

.card-estatistica .numero.critica {
    color: #d32f2f;
}

.card-estatistica .numero.alta {
    color: #f57c00;
}

.card-estatistica .label {
    color: #666;
    font-size: 14px;
}

.container-tabela {
    background: #d6fccd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tabela-demandas {
    width: 100%;
    border-collapse: collapse;
}

.tabela-demandas thead {
    background: linear-gradient(135deg, #025a10 0%, #028f1a 100%);
    color: white;
}

.tabela-demandas th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.tabela-demandas td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.tabela-demandas tbody tr {
    transition: background-color 0.2s;
}

.tabela-demandas tbody tr:hover {
    background-color: #f8f8f8;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-prioridade-baixa {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-prioridade-media {
    background: #fff3e0;
    color: #f57c00;
}

.badge-prioridade-alta {
    background: #fbe9e7;
    color: #d84315;
}

.badge-prioridade-critica {
    background: #ffebee;
    color: #c62828;
}

.badge-esforco {
    background: #f3e5f5;
    color: #7b1fa2;
}

.btn-acao {
    padding: 6px 12px;
    margin: 0 4px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-visualizar {
    background: #025a10;
    color: white;
}

.btn-visualizar:hover {
    background: #028f1a;
}

.btn-excluir {
    background: #f44336;
    color: white;
}

.btn-excluir:hover {
    background: #d32f2f;
}

.mensagem-vazia {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.mensagem-vazia p {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-primario {
    padding: 12px 30px;
    background: linear-gradient(135deg, #025a10 0%, #028f1a 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 90, 16, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-conteudo {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fechar {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.fechar:hover {
    color: #333;
}

.modal-conteudo h2 {
    color: #025a10;
    margin-bottom: 25px;
    font-size: 24px;
}

.campo-detalhe {
    margin-bottom: 20px;
}

.campo-detalhe strong {
    display: block;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.campo-detalhe p {
    color: #666;
    line-height: 1.6;
}

.detalhes-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .barra-ferramentas {
        flex-direction: column;
        align-items: stretch;
    }

    .grupo-filtros {
        flex-direction: column;
    }

    .filtro-select,
    .campo-busca {
        width: 100%;
    }

    .container-tabela {
        overflow-x: auto;
    }

    .tabela-demandas {
        min-width: 800px;
    }

    .detalhes-inline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cabecalho-pagina h1 {
        font-size: 24px;
    }

    .estatisticas {
        grid-template-columns: 1fr;
    }
}

.voltar-btn {
    display: inline-block;
    background: #025a10;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid white;
    margin-top: 2rem;
}

.voltar-btn:hover {
    background: transparent;
    color: #025a10;
    border-color: #025a10;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}