* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; margin: 0; color: #222; background:#f7f7f9; }
.container { max-width: 980px; margin: 24px auto; padding: 0 16px; }
header { background:#1f2937; color:#fff; padding:16px; }
header .container { display:flex; justify-content:space-between; align-items:center; }
nav a { color:#fff; margin-left:12px; text-decoration:none; }

/* Menu responsivo para mobile */
@media (max-width: 768px) {
    header .container { flex-direction: column; gap: 16px; }
    nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
    nav a { margin: 0; padding: 8px 12px; background: rgba(255,255,255,0.1); border-radius: 4px; }
    nav a:hover { background: rgba(255,255,255,0.2); }
}
h1, h2 { margin: 16px 0; }
label { display:block; margin:8px 0 4px; }
select, input[type="text"], input[type="email"], input[type="password"], input[type="url"], button { width:100%; padding:10px; border:1px solid #ccc; border-radius:6px; }
button { background:#2563eb; color:#fff; border:none; cursor:pointer; margin-top:8px; }
button.secondary { background:#6b7280; }
table { width:100%; border-collapse: collapse; background:#fff; }
th, td { border:1px solid #e5e7eb; padding:10px; text-align:left; }
.card { background:#fff; padding:16px; border:1px solid #e5e7eb; border-radius:8px; margin:16px 0; }
.grid { display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.muted { color:#6b7280; }
.success { color:#16a34a; }
.danger { color:#dc2626; }
.toolbar { display:flex; gap:8px; flex-wrap: wrap; }
.toolbar a, .toolbar form button { display:inline-block; padding:8px 10px; border-radius:6px; background:#e5e7eb; color:#111; text-decoration:none; border:1px solid #d1d5db; }
.toolbar a.primary { background:#2563eb; color:#fff; border-color:#1d4ed8; }
.list { list-style:none; padding:0; margin:0; }
.list li { background:#fff; padding:12px; border:1px solid #e5e7eb; border-radius:8px; margin:8px 0; }

/* Tema e componentes da home */
:root { --brand:#b91c1c; --brand-dark:#991b1b; --ink:#111827; --bg:#f7f7f9; }
.hero { background:linear-gradient(135deg, var(--brand), var(--brand-dark)); color:#fff; padding:56px 0; }
.hero .title { font-size: 32px; line-height:1.2; margin:0 0 8px; }
.hero .subtitle { font-size: 18px; opacity:.95; margin:0 0 16px; max-width:780px; }
.hero .actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }
.btn { display:inline-block; padding:12px 16px; border-radius:8px; text-decoration:none; font-weight:600; border:1px solid transparent; }
/* Estilo específico dos CTAs da seção herói */
.hero .btn { border-radius:6px; }
.hero .btn.primary { background:#2563eb; color:#fff; border:1px solid #1d4ed8; }
.hero .btn.primary:hover { background:#1d4ed8; }
.hero .btn.secondary { background:#dc2626; color:#fff; border:1px solid #b91c1c; }
.hero .btn.secondary:hover { background:#b91c1c; }

.section { padding:24px 0; }
.section .section-title { font-size:22px; margin:0 0 8px; color:var(--ink); }
.features { display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { background:#fff; padding:16px; border:1px solid #e5e7eb; border-radius:8px; }

details.faq { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:12px 16px; margin:8px 0; }
details.faq summary { cursor:pointer; font-weight:600; }

footer { background:#111827; color:#e5e7eb; padding:24px 0; margin-top:32px; }
footer .links { display:flex; gap:16px; flex-wrap:wrap; }
footer a { color:#e5e7eb; text-decoration:none; }

/* Modal Styles */
.modal { 
    position: fixed; 
    z-index: 10000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
    display: none;
    overflow: auto;
}
.modal.show { display: block; }
.modal-content { 
    background-color: #fff; 
    margin: 5% auto; 
    padding: 0; 
    border-radius: 8px; 
    width: 90%; 
    max-width: 600px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); 
    position: relative;
    z-index: 10001;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header { padding: 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { margin: 0; color: #1f2937; }
.close { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.close:hover { color: #000; }
.modal-body { padding: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #374151; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.form-actions .btn { padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.form-actions .btn.primary { background: #2563eb; color: #fff; border: none; }
.form-actions .btn.primary:hover { background: #1d4ed8; }
.form-actions .btn.secondary { background: #6b7280 !important; color: #fff !important; border: 1px solid #4b5563 !important; }
.form-actions .btn.secondary:hover { background: #4b5563 !important; color: #fff !important; }

/* Estilos para botões do formulário de busca */
.form-actions { display: flex; gap: 12px; margin-top: 16px; }
.form-actions button { 
    padding: 10px 20px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 500; 
    transition: all 0.2s;
    border: none;
}
.form-actions button[type="submit"] { 
    background: #2563eb; 
    color: #fff; 
    border: none; 
}
.form-actions button[type="submit"]:hover { 
    background: #1d4ed8; 
}
.form-actions button[type="button"] { 
    background: #6b7280; 
    color: #fff; 
    border: 1px solid #4b5563; 
}
.form-actions button[type="button"]:hover { 
    background: #4b5563; 
}

/* Estilos específicos para botão de solicitar grupo */
.btn.secondary {
    background: #6b7280 !important;
    color: #fff !important;
    border: 1px solid #4b5563 !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.btn.secondary:hover {
    background: #4b5563 !important;
    color: #fff !important;
    border-color: #374151 !important;
}

/* Estilos específicos para botão na seção de resultados */
.card .btn.secondary {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 2px solid #b91c1c !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
    margin-top: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4) !important;
}

.card .btn.secondary:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
    border-color: #991b1b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6) !important;
}

/* Estilo específico para botão "Solicitar grupo" */
button[onclick="openRequestModal()"] {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 2px solid #b91c1c !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4) !important;
    transition: all 0.3s !important;
}

button[onclick="openRequestModal()"]:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
    border-color: #991b1b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.6) !important;
}

/* Estilo super destacado para botão solicitar grupo */
#requestBtn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 3px solid #b91c1c !important;
    padding: 18px 35px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin: 20px 0 !important;
    display: inline-block !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
}

#requestBtn:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
    border-color: #991b1b !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.7) !important;
}

#requestBtn:active {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.6) !important;
}

/* Animação de pulsação para chamar atenção */
@keyframes pulse-red {
    0% { box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 6px 20px rgba(220, 38, 38, 0.8), 0 0 0 10px rgba(220, 38, 38, 0.1); }
    100% { box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5); }
}

#requestBtn {
    animation: pulse-red 2s infinite !important;
}

/* Tab Styles - Melhorados */
.tabs { 
    display: flex; 
    border-bottom: 2px solid #e5e7eb; 
    margin-bottom: 20px; 
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    width: 100%;
}
.tab { 
    flex: 1;
    padding: 15px 24px; 
    background: #f1f5f9; 
    border: none; 
    cursor: pointer; 
    font-size: 16px; 
    font-weight: 600; 
    color: #64748b; 
    border-bottom: 3px solid transparent; 
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    width: 50%;
    box-sizing: border-box;
}
.tab:hover { 
    color: #475569; 
    background: #e2e8f0; 
    transform: translateY(-2px);
}
.tab.active { 
    color: #2563eb; 
    border-bottom-color: #2563eb; 
    background: #ffffff; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tab-content { 
    display: none; 
    width: 100%;
}
.tab-content.active { 
    display: block; 
}

/* Status styles */
.status-pending { color: #f59e0b; font-weight: bold; }
.status-approved { color: #10b981; font-weight: bold; }
.status-rejected { color: #ef4444; font-weight: bold; }

/* Modal styles removidos - usando apenas HTML inline */

/* Melhorias na tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}
table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
table tr:hover {
    background: #f8fafc;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}
.pagination a {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}
.pagination a:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsividade geral para mobile */
@media (max-width: 768px) {
    .container { padding: 0 12px; margin: 16px auto; }
    
    .hero .title { font-size: 2rem; }
    .hero .subtitle { font-size: 1rem; }
    .hero .actions { 
        flex-direction: row; 
        align-items: center; 
        justify-content: flex-start; 
        flex-wrap: nowrap; 
        width: 100%;
        gap: 8px;
    }
    .hero .btn { 
        width: auto; 
        max-width: none; 
        margin: 0; 
        min-width: 0; 
        flex: 1 1 48%; 
        padding: 14px 20px;
        text-align: center;
        box-sizing: border-box;
    }
    
    .grid { grid-template-columns: 1fr; }
    
    .card { padding: 12px; margin: 12px 0; }
    
    .modal-content { width: 95%; margin: 10% auto; }
    
    .form-actions { flex-direction: row; justify-content: space-between; }
    .form-actions .btn { width: auto; flex: 1 1 48%; }
    .form-actions button { width: auto; flex: 1 1 48%; }
    
    table { font-size: 14px; }
    th, td { padding: 8px 4px; }
    
    /* Ajustes do modal para mobile */
    .modal-content { 
        width: 95%; 
        margin: 10% auto; 
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .hero .title { font-size: 1.8rem; }
    .hero .subtitle { font-size: 0.9rem; }
    
    .modal-content { width: 98%; margin: 5% auto; }
    .modal-header, .modal-body { padding: 16px; }
    
    .form-group input, .form-group select { padding: 8px; font-size: 16px; }
}

    
    /* Hero responsivo melhorado */
    .hero .title { 
        font-size: 1.8rem; 
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .hero .subtitle { 
        font-size: 1rem; 
        line-height: 1.4;
        margin-bottom: 24px;
    }
    
    .hero .actions { 
        flex-direction: row; 
        align-items: center; 
        justify-content: flex-start;
        gap: 12px;
    }
    
    .hero .btn { 
        width: auto; 
        max-width: none; 
        margin: 0;
        padding: 12px 24px;
        font-size: 16px;
        min-height: 44px;
        min-width: 140px;
    }
    
    /* Features responsivos */
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature {
        text-align: center;
        padding: 20px 16px;
    }
    
    .feature strong {
        font-size: 1.1rem;
        display: block;
        margin-bottom: 8px;
    }
    
    /* FAQ responsivo */
    .faq {
        margin-bottom: 16px;
    }
    
    .faq summary {
        font-size: 16px;
        padding: 12px;
    }
    
    .faq p {
        font-size: 14px;
        padding: 12px;
    }
    
    /* Footer responsivo */
    footer .container {
        text-align: center;
    }
    
    footer .links {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    footer .links a {
        padding: 8px 16px;
        font-size: 16px;
    }
    
    /* Botões de ação responsivos */
    .btn {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 44px; /* Tamanho mínimo para touch */
    }
    
    /* Inputs responsivos */
    input, select, textarea {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 12px;
        min-height: 44px;
    }
    
    /* Labels responsivos */
    label {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* Força layout lado a lado em desktops */
@media (min-width: 769px) {
    .hero .actions { flex-direction: row; align-items: center; gap: 12px; width: 100%; }
    .hero .btn { flex: 1 1 48%; text-align: center; min-width: 0; padding: 14px 20px; }
}

/* Responsividade para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 20px;
    }
    
    .hero .title {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}


