/* ===== FONTES ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Dosis:wght@400;500;600;700&display=swap');

/* ===== VARIÁVEIS ===== */
:root {
    --brand-blue: #323ACC;
    --brand-blue-hero: #323ACC;
    --brand-yellow: #FFFF00;
    --brand-orange: #FFAA00;
    --ink-900: #181B57;
    --ink-700: #2D2E32;
    --ink-100: #fff;
    --bg-light: #F7F8FF;
    --max: 1200px;
    --radius: 14px;
    --shadow: 0 6px 26px rgba(0,0,0,.08);
}

/* ===== RESET E BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--ink-700);
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Dosis', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--brand-blue);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

    a:hover {
        color: var(--brand-blue-hero);
        text-decoration: underline;
    }

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background: var(--brand-blue-hero) !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    padding: 12px 0 !important;
    position: sticky;
    top: 0;
    z-index: 50;
    font-family: 'Dosis', sans-serif;
}

    header > div {
        display: flex;
        gap: 16px;
        align-items: center;
        flex-wrap: wrap;
        max-width: var(--max);
        margin: 0 auto;
        padding: 0 20px;
        color: #fff;
    }

    header strong {
        color: var(--brand-yellow);
        font-size: 1.2rem;
    }

    header a {
        color: var(--brand-yellow);
        font-weight: 500;
        padding: 6px 10px;
        border-radius: 4px;
        transition: all 0.2s;
    }

        header a:hover {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            text-decoration: none;
        }

    header span {
        color: rgba(255, 255, 255, 0.9);
        font-weight: bold;
        margin-left: 24px;
        opacity: 0.9;
    }

/* Logo YT.OutboundLab sem hover */
.header-logo {
    color: var(--brand-yellow);
    text-decoration: none;
    transition: none;
}

    .header-logo:hover {
        color: var(--brand-yellow);
        text-decoration: none;
        background: none;
    }

/* ===== FORMULÁRIOS ===== */
form {
    margin-bottom: 2rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--brand-blue);
    font-family: 'Dosis', sans-serif;
}

input, select, textarea {
    border: 1px solid #ddd;
    border-radius: var(--radius);
    padding: 0.75rem;
    width: 100%;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: inherit;
    transition: border 0.2s, box-shadow 0.2s;
    color: #000;
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--brand-blue);
        box-shadow: 0 0 0 3px rgba(50,58,204,0.1);
    }

    small, input::placeholder, select::placeholder, textarea::placeholder {
        color: #000;
        opacity: 0.7;
    }

    input[type="file"] {
        color: #000;
    }

        input[type="file"]::-webkit-file-upload-button {
            color: #000;
        }

/* Grid para formulários */
.form-grid {
    display: grid;
    gap: 1rem;
    max-width: 720px;
}

/* ===== BOTÕES ===== */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    background: var(--brand-yellow);
    color: var(--brand-blue-hero);
    border-color: var(--brand-yellow);
    height: auto;
    min-height: 48px;
}

    button:hover, .btn:hover {
        background: #fdfd6b;
        transform: translateY(-2px);
        text-decoration: none;
    }

    .btn.ghost {
        border: 2px solid var(--brand-blue);
        background: transparent;
        color: var(--brand-blue);
    }

        .btn.ghost:hover {
            background: rgba(50, 58, 204, 0.08);
            color: var(--brand-blue);
            transform: translateY(-2px);
        }

    .btn.secondary {
        background: white;
        color: var(--brand-blue);
        border: 2px solid var(--brand-blue);
    }

        .btn.secondary:hover {
            background: var(--bg-light);
        }

/* Botão pequeno */
.btn-sm {
    padding: 8px 16px !important;
    font-size: 14px !important;
    min-height: 40px;
}

/* Link-style button para ações secundárias */
.btn-link {
    background: transparent;
    border: none;
    color: var(--brand-blue);
    text-decoration: underline;
    padding: 0;
    min-height: auto;
    height: auto;
    font-weight: 500;
    font-size: 15px;
    display: inline;
    border-radius: 0;
    box-shadow: none;
}

    .btn-link:hover {
        background: transparent;
        transform: none;
        color: var(--brand-blue-hero);
        text-decoration: underline;
    }

/* Container para botões de ação - AGORA EM COLUNA */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0 32px 0;
}

/* Container para os botões principais (primeira linha) */
.primary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Container para os links (segunda linha) */
.secondary-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ===== TABELAS ===== */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-family: 'DM Sans', sans-serif;
    min-width: 1200px;
}

    .table thead {
        background: var(--brand-blue);
    }

        .table thead th {
            font-family: 'Dosis', sans-serif;
            font-weight: 600;
            color: var(--brand-yellow);
            text-align: left;
            padding: 1.25rem 1rem;
            font-size: clamp(1rem, 1.2vw, 1.1rem);
            border-bottom: 3px solid var(--brand-yellow);
            white-space: nowrap;
        }

    .table tbody tr {
        border-bottom: 1px solid rgba(0,0,0,0.08);
        transition: background 0.2s;
    }

        .table tbody tr:hover {
            background-color: rgba(50,58,204,0.04);
        }

    .table tbody td, .table tbody th {
        padding: 1.25rem 1rem;
        color: var(--ink-700);
        font-size: clamp(0.9rem, 1vw, 1rem);
        line-height: 1.5;
        text-align: left;
        white-space: nowrap;
    }

        .table tbody td:last-child {
            white-space: normal;
        }

    .table tbody th {
        font-family: 'Dosis', sans-serif;
        font-weight: 600;
        color: var(--brand-blue);
        background: rgba(247,248,255,0.5);
    }

    .table td strong {
        color: var(--brand-blue);
    }

/* ===== MENSAGENS / ALERTAS ===== */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    border-left: 4px solid;
    background: white;
    box-shadow: var(--shadow);
}

.alert-info {
    border-left-color: var(--brand-blue);
    background: var(--bg-light);
}

.alert-success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.alert-error, .alert-danger {
    border-left-color: #b00020;
    background: #fff0f0;
}

.message-box {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: var(--radius);
    background: #fafafa;
    color: #000;
}

/* ===== UTILITÁRIOS ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* ===== COMPONENTES ===== */
.highlight-box {
    background: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem; /* Aumentado de 1.5rem para 2rem */
}

.stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.stat-item {
    font-size: 1.1rem;
}

.stat-value {
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 1.3rem;
}

/* Espaçamento adicional para página de Outreach */
.outreach-section {
    margin-bottom: 3rem;
}

    .outreach-section h3 {
        margin-bottom: 1.5rem;
    }

    .outreach-section .action-buttons {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .outreach-section hr {
        margin: 2.5rem 0;
        border: none;
        border-top: 2px solid #eee;
    }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header > div {
        padding: 0 15px;
        gap: 10px;
    }

    header span {
        margin-left: 0;
        width: 100%;
    }

    .table-container {
        margin: 1rem -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }

    .table {
        min-width: 1000px;
    }

    button, .btn {
        width: 100%;
    }

    .action-buttons {
        gap: 16px;
    }

    .primary-actions {
        flex-direction: column;
        gap: 10px;
    }

    .secondary-actions {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .btn-link {
        width: auto;
        display: inline-block;
    }

    .outreach-section {
        margin-bottom: 2rem;
    }

        .outreach-section hr {
            margin: 2rem 0;
        }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}
