:root {
    --primary-color: #af0202;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

button {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #004494;
}

/*Formularios inicio */
.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
/*Formularios fim*/


/* TABELA DE CHAMADOS */
.table-chamados {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    margin-top: 15px;
}

.table-chamados th, .table-chamados td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table-chamados th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.table-chamados tbody tr:hover {
    background-color: #f8fcfb; 
    transition: background-color 0.3s;
}

.btn-acao {
    background-color: #af0202; /* Vermelho que você já usa no cabeçalho */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    font-weight: 500;
}

.btn-acao:hover {
    background-color: #8a0000;
    transform: translateY(-1px);
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    display: inline-block;
    text-align: center;
    min-width: 90px;
}
.status-aberto { background-color: #007bff; } /* Azul */
.status-andamento { background-color: #ffc107; color: #333; } /* Amarelo */
.status-resolvido { background-color: #28a745; } /* Verde */
.status-cancelado { background-color: #dc3545; } /* Vermelho */

/*Tabela Mobile*/
@media (max-width: 768px) {

    .table-chamados thead { display: none; }
    
    .table-chamados, .table-chamados tbody, .table-chamados tr, .table-chamados td {
        display: block;
        width: 100%;
    }

    .table-chamados tr {
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }
    
    .table-chamados td {
        text-align: right;
        padding-left: 45%; 
        position: relative;
    }
    
    .table-chamados td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 40%;
        text-align: left;
        font-weight: 600;
        color: #666;
    }

    .table-chamados td:last-child {
        text-align: center;
        padding-left: 15px;
        background-color: #f9f9f9;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }
    .table-chamados td:last-child::before { display: none; }
    .btn-acao { width: 100%; padding: 12px; font-size: 16px; }
}

/*TABELA DE CHAMADOS FIM*/


/* --- ESTILOS DO MENU DROPDOWN --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.dropbtn:hover { background-color: rgba(255,255,255,0.1); }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a:hover { background-color: #f1f1f1; }
.dropdown:hover .dropdown-content { display: block; }
/* --- ESTILOS DO MENU DROPDOWN -->> FIM <<--- */