* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: #f5f5f0;
    color: #2d2d2d;
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 0;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    border-bottom: 3px solid #D4872E;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-brand:hover {
    color: #D4872E;
    transition: 0.3s;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-menu li a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-menu li a:hover {
    color: #fff;
    background: rgba(212, 135, 46, 0.15);
}

.btn-logout {
    background: #B8631A !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: 600 !important;
}

.btn-logout:hover {
    background: #D4872E !important;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 70vh;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 25px 20px;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #e0ddd5;
    margin-top: 40px;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    border: 2px solid #2d2d2d;
    background: white;
    color: #2d2d2d;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn:hover {
    background: #2d2d2d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #B8631A, #D4872E);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D4872E, #E5A04A);
    border-color: transparent;
}

.btn-small {
    padding: 5px 14px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #B8631A;
    color: #B8631A;
    text-decoration: none;
    display: inline-block;
    margin: 2px;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-small:hover {
    background: #B8631A;
    color: white;
}

.btn-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-danger:hover {
    background: #dc3545;
    color: white;
}

/* ===== FORMULÁRIO ===== */
.form {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    max-width: 700px;
    border: 1px solid #e8e5dd;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2d2d2d;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fafaf8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #D4872E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 135, 46, 0.1);
    background: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form hr {
    margin: 25px 0;
    border: none;
    border-top: 1px solid #eee;
}

/* ===== TABELAS ===== */
.tabela {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-top: 20px;
    border-collapse: collapse;
    border: 1px solid #e8e5dd;
}

.tabela th {
    background: #1a1a1a;
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.tabela td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0eeea;
    color: #333;
    font-size: 14px;
}

.tabela tr:hover td {
    background: #fdf8f2;
}

.tabela tr:last-child td {
    border-bottom: none;
}

/* ===== TAGS / GRADUAÇÕES ===== */
.tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.graduacao-branca { background: #f5f5f0; color: #333; border: 1px solid #ccc; }
.graduacao-azul { background: #1a56db; color: white; }
.graduacao-roxa { background: #7c3aed; color: white; }
.graduacao-marrom { background: #6d4c3a; color: white; }
.graduacao-preta { background: #1a1a1a; color: white; }
.graduacao-coral { background: linear-gradient(135deg, #dc2626 50%, #1a1a1a 50%); color: white; }
.graduacao-vermelha { background: #b91c1c; color: white; }

/* ===== FILTROS ===== */
.filtros {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    align-items: center;
}

.filtros input,
.filtros select {
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.filtros input { min-width: 250px; }

.filtros input:focus,
.filtros select:focus {
    border-color: #D4872E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 135, 46, 0.1);
}

/* ===== ALERTAS ===== */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}

.alert-erro {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
}

.alert-sucesso {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
}

/* ===== DASHBOARD ===== */
.dashboard h1 {
    margin-bottom: 30px;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.card {
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #e8e5dd;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #B8631A, #D4872E, #E5A04A);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: #D4872E;
}

.card-number {
    font-size: 52px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.card-label {
    font-size: 16px;
    color: #888;
    margin: 12px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.card-link {
    display: inline-block;
    margin-top: 8px;
    color: #B8631A;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.card-link:hover {
    color: #D4872E;
}

/* ===== TÍTULOS ===== */
h1 {
    margin-bottom: 24px;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
}

h2 {
    color: #1a1a1a;
    margin-bottom: 16px;
    font-size: 22px;
}

.mb-20 { margin-bottom: 20px; }

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 12px 20px;
        gap: 10px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-row,
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .filtros input {
        min-width: 100%;
    }

    .tabela {
        font-size: 13px;
    }

    .tabela th,
    .tabela td {
        padding: 10px 12px;
    }
}


/* ===== DASHBOARD ===== */
.dashboard h1 {
    font-size: 26px;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: 0.2s;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card-number {
    font-size: 36px;
    font-weight: 800;
    color: #D4872E;
    line-height: 1;
    margin-bottom: 5px;
}

.card-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    color: #D4872E;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.card-link:hover {
    color: #B8631A;
    text-decoration: underline;
}