@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600&family=Noto+Sans:wght@300;400;500&display=swap');

:root {
    --rosa-claro: #262626;
    --rosa-medio: #D4B56B;
    --rosa-escuro: #C6A75E;
    --nude: #f5e9e2;
    --bege: #fdf9f5;
    --cinza-texto: #4a4a4a;
    --verde-sucesso: #4caf50;
    --azul-info: #2196f3;
    --vermelho-alerta: #f44336;
    --laranja-alerta: #ff9800;
}

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

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: var(--bege);
    color: var(--cinza-texto);
    display: flex;
    min-height: 100vh;
    margin: 0;
}

/* SIDEBAR / MENU */
.sidebar {
    width: 250px;
    background-color: #fff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    z-index: 100;
    left: 0; top: 0;
}

.sidebar a {
    text-decoration: none;
    color: var(--cinza-texto);
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.sidebar a:hover, .sidebar a.active {
    background-color: var(--rosa-claro);
    color: var(--rosa-escuro);
    font-weight: 600;
}

.sidebar a i { width: 20px; text-align: center; }

/* CONTEÚDO PRINCIPAL (Importante!) */
.main-content {
    flex: 1;
    margin-left: 250px; /* Mesma largura da sidebar */
    padding: 30px;
    width: calc(100% - 250px);
    min-height: 100vh;
}

/* COMPONENTES GERAIS */
h1 { font-family: 'Quicksand', sans-serif; color: var(--rosa-escuro); margin-bottom: 20px; }

.card {
    background: white; padding: 25px; border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); margin-bottom: 20px;
}

/* BOTÕES */
.btn {
    padding: 10px 20px; border: none; border-radius: 30px; cursor: pointer;
    font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background-color: var(--rosa-escuro); color: white; transition: 0.3s; font-size: 0.9rem;
}
.btn:hover { background-color: #B8860B; transform: translateY(-2px); opacity: 0.9; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-success { background-color: var(--verde-sucesso); }
.btn-info { background-color: var(--azul-info); }
.btn-warning { background-color: var(--laranja-alerta); color: white; }
.btn-danger { background-color: var(--vermelho-alerta); }
.btn-secondary { background-color: #6c757d; }

/* TABELAS */
table { width: 100%; border-collapse: collapse; margin-top: 15px; background: white; border-radius: 8px; overflow: hidden; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: var(--rosa-claro); color: var(--rosa-escuro); font-weight: 600; }
tr:hover { background-color: #fafafa; }

/* NOTIFICAÇÃO */
.notification-badge {
    width: 45px; height: 45px; background: white; border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--rosa-escuro); font-size: 1.2rem; transition: 0.3s;
}
.notification-badge:hover { transform: scale(1.1); background: var(--rosa-escuro); color: white; }

/* MODAL */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.modal-content { background-color: white; margin: 5% auto; padding: 25px; border-radius: 15px; width: 90%; max-width: 600px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.close { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #999; }

/* FORMULÁRIOS */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; font-family: 'Noto Sans', sans-serif; }
input:focus { outline: none; border-color: var(--rosa-escuro); }

/* GRID DASHBOARD */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
    .sidebar { display: none; } /* Oculta sidebar no mobile por enquanto */
    .main-content { margin-left: 0; width: 100%; padding: 15px; }
}