/* ===============================
   BASE GLOBAL — PAINEL CACS CLUBE
   =============================== */

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

:root {
    --verde:        #078C36;
    --verde-escuro: #02743D;
    --amarelo:      #F2E205;
    --cinza-bg:     #f5f5f5;
    --cinza-borda:  #e0e0e0;
    --texto:        #1a1a1a;
    --texto-claro:  #555;
    --branco:       #ffffff;
    --sombra:       0 2px 12px rgba(0,0,0,0.08);
}

body {
    font-family: 'Nunito', Arial, sans-serif;
    background: var(--cinza-bg);
    color: var(--texto);
    line-height: 1.6;
}

a {
    color: var(--verde);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===============================
   NAVBAR
   =============================== */

.navbar {
    background: linear-gradient(135deg, var(--verde-escuro), var(--verde));
    color: var(--branco);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--amarelo);
    letter-spacing: .5px;
    flex-shrink: 0;
}

.navbar-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.navbar-nav a {
    color: rgba(255,255,255,0.85);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9rem;
    transition: background .15s, color .15s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    background: rgba(255,255,255,0.15);
    color: var(--branco);
    text-decoration: none;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar-user-name {
    font-size: .88rem;
    color: rgba(255,255,255,0.85);
}

.btn-sair {
    background: rgba(255,255,255,0.12);
    color: var(--branco) !important;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 700;
    transition: background .15s;
    text-decoration: none !important;
}

.btn-sair:hover {
    background: rgba(255,255,255,0.25);
}

/* ===============================
   LAYOUT
   =============================== */

.wrap {
    max-width: 1300px;
    margin: 28px auto;
    padding: 0 24px;
}

.page-title {
    margin-bottom: 24px;
}

.page-title h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--verde-escuro);
}

.page-title p {
    color: var(--texto-claro);
    font-size: .95rem;
}

/* ===============================
   CARDS GRID (DASHBOARD)
   =============================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--branco);
    border-radius: 12px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--sombra);
    border: 1px solid var(--cinza-borda);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon--green {
    background: rgba(7,140,54,0.12);
    color: var(--verde);
}

.stat-icon--yellow {
    background: rgba(242,226,5,0.18);
    color: #8a7e00;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: .8rem;
    color: var(--texto-claro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--texto);
    line-height: 1.2;
}

/* ===============================
   CARD GENÉRICO
   =============================== */

.card {
    background: var(--branco);
    border: 1px solid var(--cinza-borda);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--sombra);
}

.card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--verde-escuro);
    margin-bottom: 4px;
}

/* ===============================
   TABELAS
   =============================== */

.tabela-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

thead th {
    background: var(--verde);
    color: var(--branco);
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
}

tbody tr:nth-child(even) {
    background: #f9f9f9;
}

tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--cinza-borda);
    color: var(--texto);
}

/* ===============================
   BOTÕES
   =============================== */

.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
    border: none;
    transition: opacity .15s, transform .1s;
    text-decoration: none;
}

.btn:hover {
    opacity: .88;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: var(--verde);
    color: var(--branco);
}

.btn-warning {
    background: var(--amarelo);
    color: #333;
}

.btn-danger {
    background: #dc2626;
    color: var(--branco);
}

/* ===============================
   MENSAGENS
   =============================== */

.msg-erro {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.msg-sucesso {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}
