/* ===== MELHORIAS DE VISUALIZAÇÃO ===== */
* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: #f4f7f6;
    color: #333;
}

.wrapper { display: flex; min-height: 100vh; }

/* Menu lateral */
.sidebar {
    width: 240px;
    background: #1f3d24;
    color: white;
    flex-shrink: 0;
}
.sidebar-header {
    padding: 22px 20px;
    text-align: center;
    border-bottom: 1px solid #2d5a27;
}
.sidebar-header h3 { margin: 0; font-size: 18px; letter-spacing: 1px; }
.nav-links { list-style: none; padding: 0; margin: 0; }
.nav-links li a {
    display: block;
    padding: 14px 20px;
    color: #aec6ae;
    text-decoration: none;
    font-size: 15px;
    border-left: 3px solid transparent;
    transition: 0.2s;
}
.nav-links li a:hover,
.nav-links li a.active {
    background: #2d5a27;
    color: white;
    border-left-color: #7cb342;
}

/* Conteúdo principal */
.content { flex: 1; padding: 25px; }
.top-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.top-bar .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.top-bar h2 { margin: 0; font-size: 22px; color: #1f3d24; }

/* Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Botões */
.btn-primary {
    display: inline-block;
    background: #2d5a27;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.btn-primary:hover { background: #1b3a18; }

.btn-secondary {
    display: inline-block;
    background: #4a7c44;
    color: white !important;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-link { color: #2d5a27; text-decoration: underline; font-size: 14px; }

/* Busca */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}
.search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Tabela */
.table-geral { width: 100%; border-collapse: collapse; }
.table-geral th {
    background: #f1f1f1;
    text-align: left;
    padding: 13px;
    font-size: 12px;
    text-transform: uppercase;
    color: #555;
    border-bottom: 2px solid #ddd;
    letter-spacing: 0.5px;
}
.table-geral td {
    padding: 13px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 14px;
}
.table-geral tr:hover { background: #f8fbf8; }

/* Ações */
.actions { display: flex; gap: 8px; justify-content: center; }
.btn-edit, .btn-delete {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}
.btn-edit { background: #e8f5e9; color: #2e7d32; }
.btn-edit:hover { background: #2e7d32; color: white; }
.btn-delete { background: #ffebee; color: #b71c1c; }
.btn-delete:hover { background: #b71c1c; color: white; }

/* Formulários */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: white;
}
.form-group input:focus, .form-group select:focus {
    border-color: #2d5a27;
    outline: none;
    box-shadow: 0 0 0 2px rgba(45,90,39,0.15);
}
.input-with-btn { display: flex; gap: 5px; }
.btn-small {
    background: #424242;
    color: white;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Alertas */
.alert-danger {
    background: #ffebee;
    color: #b71c1c;
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 5px solid #b71c1c;
}
.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 5px solid #2e7d32;
}

/* Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #1f3d24;
}
.login-container {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 380px;
}
.login-container h2 { text-align: center; color: #1f3d24; margin-top: 0; }
.btn-login {
    width: 100%;
    padding: 12px;
    background: #2d5a27;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}
.btn-login:hover { background: #1b3a18; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-confirmada { background: #e8f5e9; color: #2e7d32; }
.badge-pendente { background: #fff8e1; color: #f57f17; }
.badge-cancelada { background: #ffebee; color: #b71c1c; }
.badge-concluida { background: #e3f2fd; color: #1565c0; }