/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Estilos do formulário */
.form-container {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Campo somente leitura com visual de select/input */
.form-control-readonly {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f8f9fa;
    color: #495057;
    cursor: default;
}

.btn {
    display: inline-block;
    background: #006633;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: #005228;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-danger {
    background: #f44336;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Estilos do menu hamburger */
.hamburger-menu {
    position: fixed;
    top: 10px; /* Posicionado dentro da área do header */
    left: 0;
    z-index: 1000;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 15px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #e56707; /* Laranja igual ao texto do header */
    border-radius: 10px;
    transition: all 0.3s linear;
}

.sidebar {
    position: fixed;
    top: 80px;
    left: -250px;
    width: 250px;
    height: calc(100% - 80px);
    background: #006633;
    padding-top: 20px;
    transition: all 0.3s;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    transition: all 0.2s;
}

.sidebar ul li a:hover {
    color: #f0f0f0;
    padding-left: 5px;
}

/* Estilos da tabela */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f8f8;
    font-weight: bold;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Estilos para mensagens de alerta */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.alert-danger {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Estilos para o dashboard */
.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.card {
    flex: 1 1 300px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.card-value {
    font-size: 22px;
    font-weight: 600;
    color: #006633;
}

/* Estatísticas compactas para cards */
.stats-row {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 8px 0 14px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 13px;
    color: #555;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.badge-success { background-color: #2e7d32; color: #fff; }
.badge-warning { background-color: #ff8f00; color: #fff; }

#adminClearModal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.5); z-index: 10000; }
#adminClearModal.open { display: flex; }
#adminClearModal .box { background: #fff; padding: 20px; border-radius: 6px; max-width: 420px; width: 90%; box-shadow: 0 10px 25px rgba(0,0,0,.2); }
#adminClearModal .box h3 { margin-bottom: 10px; font-size: 16px; color: #333; }
#adminClearModal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* Responsividade */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    .dashboard-cards {
        flex-direction: column;
    }
    
    .form-container {
        max-width: 100%;
    }
}
