/* ===== inileadPage.css ===== */
/* Mobile-first menu page */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
}

/* Header adjustments */
.headerLead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
}
.headerLead img {
    max-width: 300px;
    height: auto;
}
.headerLead > div:first-child {
    flex-shrink: 0;
}
.headerLead > div:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85em;
    color: #555;
    flex-wrap: wrap;
}
.headerLead > div:nth-child(2) a {
    color: #EA1717;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid #EA1717;
    border-radius: 6px;
    transition: 0.2s;
}
.headerLead > div:nth-child(2) a:hover {
    background: #EA1717;
    color: #fff;
}

/* Main menu container */
.menuinicial {
    padding: 24px 16px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.alinha_menu_inicial {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Card buttons */
.buttoniniLead {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
}
.buttoniniLead:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.buttoniniLead:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Icon circle for each button */
.buttoniniLead .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.3em;
    flex-shrink: 0;
    color: #fff;
}
.buttoniniLead .btn-text {
    display: flex;
    flex-direction: column;
}
.buttoniniLead .btn-label {
    font-size: 1em;
    font-weight: 700;
    color: #222;
}
.buttoniniLead .btn-sub {
    font-size: 0.78em;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}

/* Individual icon colors */
.buttoniniLead:nth-child(1) .icon-circle { background: #1a237e; }
.buttoniniLead:nth-child(2) .icon-circle { background: #1565c0; }
.buttoniniLead:nth-child(3) .icon-circle { background: #00897b; }
.buttoniniLead:nth-child(4) .icon-circle { background: #e65100; }
.buttoniniLead:nth-child(5) .icon-circle { background: #4caf50; }

/* Footer */
footer {
    padding: 16px;
    text-align: center;
    position: relative;
}

/* WhatsApp fixed */
.wpp-wrapper {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wpp-wrapper img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.wpp-wrapper img:hover {
    transform: scale(1.08);
}
.wpp-wrapper .wpp-link {
    background: #25D366;
    color: #fff;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    transition: 0.2s;
    white-space: nowrap;
}
.wpp-wrapper .wpp-link:hover {
    background: #1da851;
    box-shadow: 0 6px 16px rgba(37,211,102,0.4);
}

/* Tablet+ grid */
@media (min-width: 600px) {
    .menuinicial {
        max-width: 640px;
        padding: 72px 24px 40px;
    }
    .alinha_menu_inicial {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .buttoniniLead {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .buttoniniLead .btn-text {
        align-items: center;
    }
    .buttoniniLead .btn-sub {
        text-align: center;
    }
}

@media (min-width: 900px) {
    .menuinicial {
        max-width: 800px;
    }
    .alinha_menu_inicial {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Reports link (admin only) */
.reports-link {
    display: block;
    text-align: center;
    margin: 0 auto 20px;
    padding: 12px;
    background: #263238;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 2px;
    max-width: 480px;
    transition: 0.2s;
}
.reports-link:hover {
    background: #37474f;
}

/* ===== docsSign.php styles ===== */

/* Title */
.docs-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0 auto 16px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Document table card */
.relatorio {
    padding: 0;
}
.relatorio table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.relatorio th {
    background: #1a237e;
    color: #fff;
    padding: 12px 10px;
    font-size: 0.85em;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}
.relatorio td {
    padding: 10px;
    font-size: 0.85em;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    vertical-align: middle;
    color: #333;
}
.relatorio tr:last-child td {
    border-bottom: none;
}
.relatorio tr:nth-child(even) td {
    background: #fafafa;
}
.relatorio td a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 600;
}
.relatorio td a:hover {
    text-decoration: underline;
}

/* Back link */
.back-link {
    display: inline-block;
    margin: 20px auto 0;
    padding: 12px 28px;
    background: #EA1717;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95em;
    text-align: center;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.back-link:hover {
    background: #c01313;
}

/* No docs message */
.no-docs {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 0.95em;
}

/* Mobile docs table */
@media (max-width: 480px) {
    .relatorio table {
        font-size: 0.85em;
    }
    .relatorio th, .relatorio td {
        padding: 8px 6px;
    }
    .docs-title {
        font-size: 1em;
    }
}

/* ===== cadastroLead.php styles ===== */

.cadastro-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 16px;
}
.cadastro-card h3 {
    font-size: 1em;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eaf6;
    letter-spacing: 0.3px;
}
.cadastro-card .field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}
.cadastro-card .field-group label {
    font-size: 0.78em;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.cadastro-card .field-group input,
.cadastro-card .field-group select,
.cadastro-card .field-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.92em;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
    font-family: inherit;
    transition: 0.2s;
}
.cadastro-card .field-group input:focus,
.cadastro-card .field-group select:focus,
.cadastro-card .field-group textarea:focus {
    outline: none;
    border-color: #1a237e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}
.cadastro-card .field-group input:read-only {
    background: #f0f0f0;
    color: #888;
    cursor: not-allowed;
}
.cadastro-card .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cadastro-submit {
    width: 100%;
    padding: 14px;
    background: #1a237e;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.cadastro-submit:hover {
    background: #283593;
}

@media (max-width: 480px) {
    .cadastro-card .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .cadastro-card {
        padding: 16px;
    }
}

/* ===== Header user area (headerLead.php) ===== */
.header-user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.header-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #e8eaf6;
    color: #1a237e;
    border-radius: 16px;
    font-size: 0.78em;
    font-weight: 700;
}
.header-user-badge::before {
    content: "\1f464";
    font-size: 1em;
}
.header-powered {
    font-size: 0.7em;
    color: #aaa;
    font-style: italic;
}
.header-logout {
    padding: 4px 12px;
    color: #EA1717;
    text-decoration: none;
    border: 1px solid #EA1717;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
    transition: 0.2s;
}
.header-logout:hover {
    background: #EA1717;
    color: #fff;
}

/* ===== Back to menu link (shared) ===== */
.back-menu-link {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 999;
    display: inline-block;
    padding: 6px 14px;
    color: #EA1717;
    text-decoration: none;
    border: 1px solid #EA1717;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    transition: 0.2s;
    background: rgba(255,255,255,0.9);
}
.back-menu-link:hover {
    background: #EA1717;
    color: #fff;
}

/* ===== Upload box (docsSign.php) ===== */
.upload-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 16px;
}
.upload-box h3 {
    margin: 0 0 12px;
    font-size: 1em;
    font-weight: 700;
    color: #1a237e;
}
.upload-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.upload-box input[type="file"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-size: 0.9em;
}
.upload-box button {
    padding: 12px;
    background: #1a237e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.upload-box button:hover {
    background: #283593;
}
.upload-msg {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}
.del-link {
    color: #c62828 !important;
}
.del-link:hover {
    color: #b71c1c !important;
    text-decoration: underline !important;
}

/* ===== meuProcesso.php styles ===== */
.processo-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 16px;
}
.processo-section-title {
    font-size: 0.78em;
    font-weight: 700;
    color: #1a237e;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.processo-highlight {
    font-size: 1.15em;
    font-weight: 700;
    color: #222;
    padding: 14px 16px;
    background: #e8eaf6;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #1a237e;
}
.processo-empty {
    font-size: 0.95em;
    color: #888;
    padding: 14px 16px;
    background: #f5f5f5;
    border-radius: 10px;
    text-align: center;
    font-style: italic;
}
.processo-table {
    width: 100%;
    border-collapse: collapse;
}
.processo-table th {
    background: #1a237e;
    color: #fff;
    padding: 10px;
    font-size: 0.82em;
    font-weight: 700;
    text-align: center;
}
.processo-table td {
    padding: 10px;
    font-size: 0.85em;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

/* ===== LGPD checkbox ===== */
.lgpd {
    margin: 4px 0;
}
.lgpd-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75em;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}
.lgpd-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}
.subifOk {
    margin-top: 0;
}

/* ===== Auth pages (login, signup, forgetPass, codePass) ===== */
.auth-card {
    max-width: 440px;
    margin: 40px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 32px 24px;
}
.auth-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 6px;
    text-align: center;
}
.auth-sub {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.4;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.92em;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.auth-field input:focus {
    border-color: #1a237e;
    outline: none;
}
.auth-btn {
    width: 100%;
    padding: 12px;
    background: #1a237e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.auth-btn:hover {
    background: #283593;
}
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}
.auth-link-btn {
    width: 100%;
    padding: 10px;
    background: none;
    color: #1565c0;
    border: 1px solid #1565c0;
    border-radius: 8px;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.auth-link-btn:hover {
    background: #1565c0;
    color: #fff;
}
