
/* RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f3f4f6;
}

/* LAYOUT */
.container {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 230px;
    height: 100vh;
    background: #1f2937;
    color: white;
    padding: 20px;
    position: fixed;
}

.sidebar h2 {
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: #ccc;
    margin: 10px 0;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
}

.sidebar a:hover {
    background: #374151;
    color: white;
}

/* MAIN */
.main {
    margin-left: 250px;
    padding: 20px;
    width: 100%;
}

/* TÍTULOS */
h1 {
    margin-bottom: 20px;
}

h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #374151;
}

/* FORMULÁRIO */
form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* GRID DO FORM */
form .row {
    display: flex;
    gap: 10px;
}

form .row input,
form .row select {
    flex: 1;
}

/* INPUTS */
form input,
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

/* FOCO */
form input:focus,
form select:focus {
    border-color: #2563eb;
    outline: none;
}

/* BOTÃO */
form button {
    width: 100%;
    padding: 14px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

form button:hover {
    background: #1d4ed8;
}

/* CARDS (DASHBOARD) */
.cards {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
}

/* GRID GRÁFICOS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.chart-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* RESPONSIVO 🔥 */
@media (max-width: 768px) {

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main {
        margin-left: 0;
    }

    form {
        padding: 15px;
    }

    form .row {
        flex-direction: column;
    }

    .cards {
        flex-direction: column;
    }
}

/* ========================= */
/* TABELAS PROFISSIONAIS */
/* ========================= */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.table th, .table td {
    padding: 12px;
    text-align: left;
}

.table th {
    background: #f9fafb;
    color: #374151;
}

.table tr {
    border-bottom: 1px solid #e5e7eb;
}

.table tr:hover {
    background: #f3f4f6;
}

/* BOTÕES */
.btn {
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.btn-edit {
    background: #2563eb;
    color: white;
}

.btn-delete {
    background: #dc2626;
    color: white;
}

.btn-add {
    background: #16a34a;
    color: white;
    padding: 10px 15px;
    display: inline-block;
    margin-bottom: 15px;
}

/* FORM GRID */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* BOTÃO */
form button {
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.submenu {
margin-top: 5px;
margin-left: 15px;
display: none;
}

.sidebar li:hover .submenu {
display: block;
}

.submenu li {
font-size: 14px;
}