/* ============================================
   PARTIDO BRASIL SOBERANO - ESTILOS GERAIS
   ============================================ */

/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f9fafb;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container principal para centralizar conteúdo */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Cabeçalho e navegação pública */
.public-header {
    background: #0b3b2c;
    color: white;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.public-header .logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.public-header nav a {
    color: white;
    margin-left: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.public-header nav a:hover {
    opacity: 0.8;
}

/* Rodapé público */
.public-footer {
    background: #0b3b2c;
    color: #cbd5e1;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9rem;
}

/* ============================================
   FORMULÁRIOS (Login, Cadastro)
   ============================================ */

.form-wrapper {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.form-card {
    background: white;
    padding: 40px 35px;
    border-radius: 24px;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.1), 0 5px 10px -4px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
}

.form-card h2 {
    color: #0b3b2c;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.form-card .subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0b3b2c;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0b3b2c;
    box-shadow: 0 0 0 4px rgba(11, 59, 44, 0.08);
}

.form-group input[readonly] {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 40px;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
}

.btn-primary {
    background: #eab308;
    color: #0b3b2c;
    box-shadow: 0 4px 6px -2px rgba(234, 179, 8, 0.2);
}

.btn-primary:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #0b3b2c;
    color: white;
}

.btn-secondary:hover {
    background: #1a5e4a;
}

.btn-outline {
    background: transparent;
    border: 2px solid #0b3b2c;
    color: #0b3b2c;
}

.btn-outline:hover {
    background: #0b3b2c;
    color: white;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    color: #64748b;
}

.form-footer a {
    color: #0b3b2c;
    font-weight: 600;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Alertas / mensagens de erro e sucesso */
.alert {
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 6px solid #22c55e;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 6px solid #ef4444;
}

.alert-error ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.alert-error li {
    margin-bottom: 5px;
}

/* ============================================
   PÁGINA INICIAL (Hero, Seções)
   ============================================ */

.hero {
    background: linear-gradient(135deg, #0b3b2c 0%, #1a5e4a 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #0b3b2c;
    margin-bottom: 40px;
    font-weight: 700;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

/* ============================================
   PAINÉIS (Admin e Filiado)
   ============================================ */

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #0b3b2c;
    color: white;
    padding: 30px 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar .logo {
    padding: 0 25px 30px;
    border-bottom: 1px solid #1e5e4a;
}

.sidebar .logo h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.sidebar .logo small {
    opacity: 0.8;
    font-size: 0.8rem;
}

.sidebar nav a {
    display: block;
    padding: 16px 25px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.sidebar nav a:hover {
    background: #1a5e4a;
    color: white;
    border-left-color: #eab308;
}

.sidebar nav a.active {
    background: #1a5e4a;
    color: white;
    border-left-color: #eab308;
    font-weight: 600;
}

.main-content {
    flex: 1;
    background: #f8fafc;
    padding: 35px 40px;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.top-bar h1 {
    color: #0b3b2c;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Estatísticas (cards) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: white;
    padding: 25px 20px;
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border-left: 6px solid;
    border: 1px solid #e2e8f0;
    border-left-width: 6px;
}

.stat-card.pendente { border-left-color: #eab308; }
.stat-card.aprovado { border-left-color: #22c55e; }
.stat-card.recusado { border-left-color: #ef4444; }
.stat-card.info { border-left-color: #3b82f6; }
.stat-card.financeiro { border-left-color: #8b5cf6; }

.stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: #0b3b2c;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Filtros e ações rápidas */
.filters, .quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 40px;
    background: white;
    color: #0b3b2c;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0b3b2c;
    color: white;
    border-color: #0b3b2c;
}

/* Tabelas */
.table-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    color: #0b3b2c;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-pendente { background: #fef9c3; color: #854d0e; }
.badge-confirmado, .badge-aprovado { background: #dcfce7; color: #166534; }
.badge-recusado { background: #fee2e2; color: #991b1b; }

/* Botões pequenos para tabelas */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 30px;
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
    margin-right: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm:hover {
    background: #cbd5e1;
}

.btn-approve {
    background: #22c55e;
    color: white;
}
.btn-approve:hover { background: #16a34a; }

.btn-reject {
    background: #ef4444;
    color: white;
}
.btn-reject:hover { background: #dc2626; }

/* Modais */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Responsividade */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px 0;
    }
    .main-content {
        padding: 20px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .form-card {
        padding: 30px 20px;
    }
    .top-bar {
        flex-direction: column;
        align-items: start;
        gap: 15px;
    }
}