:root {
    --orange-main: #FE5F2F;
    --orange-secondary: #FFA832;
    --cyan-support: #64CCC5;
    --dark: #1F2933;
    --light: #F4F7FA;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
}

a {
    text-decoration: none;
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.06em;
    font-size: 2rem;
    line-height: 1;
    color: var(--orange-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
}

.logo-white {
    color: var(--white);
}

.text-orange {
    color: var(--orange-main);
}

.btn-orange {
    background: linear-gradient(135deg, var(--orange-main), var(--orange-secondary));
    color: var(--white);
    border: none;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(254, 95, 47, 0.25);
}

.btn-orange:hover {
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(254, 95, 47, 0.35);
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.hero-section {
    min-height: 72vh;
    background:
        linear-gradient(120deg, rgba(31, 41, 51, 0.88), rgba(254, 95, 47, 0.62)),
        url("../img/irecursos.png");
    background-size: cover;
    background-position: center;
    background-color: var(--dark);
}

.min-vh-hero {
    min-height: 72vh;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    padding: 2rem 2.2rem;
    border-radius: 24px;
    max-width: 620px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    margin-bottom: 60px;
}

.hero-card h1 {
    font-weight: 850;
    font-size: clamp(2.1rem, 4vw, 4rem);
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
}

.hero-card p {
    font-size: 1.35rem;
    color: #46515f;
    margin-bottom: 2rem;
}

.professional-card {
    border: none;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(31, 41, 51, 0.08);
}

.footer-dark {
    background: var(--dark);
    color: var(--white);
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    background: #25D366;
    color: white;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    font-weight: 700;
}

.whatsapp-float:hover {
    color: white;
    transform: translateY(-2px);
}

.login-page {
    min-height: calc(100vh - 60px);
    display: grid;
    place-items: center;
    padding: 2rem;
    background:
        linear-gradient(120deg, rgba(31, 41, 51, 0.88), rgba(254, 95, 47, 0.62));
    background-size: cover;
    background-position: center;
    background-color: var(--dark);
}

.login-card {
    width: min(100%, 440px);
    background: white;
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(31, 41, 51, 0.12);
}

.login-card h1 {
    font-size: 1.65rem;
    font-weight: 800;
}

.login-card h2 {
    font-size: 1.35rem;
    font-weight: 750;
}

.login-footer {
    height: 60px;
    display: grid;
    place-items: center;
    background: var(--dark);
    color: white;
    text-align: center;
    font-size: 0.9rem;
}

.private-header {
    position: sticky;
    top: 0;
    z-index: 30;
}

.menu-bar {
    background: var(--dark);
}

.menu-bar .nav-link {
    color: white;
    font-weight: 600;
    padding: 0.85rem 1rem;
}

.menu-bar .nav-link:hover {
    color: var(--orange-secondary);
}

.icon-link {
    color: var(--dark);
    font-size: 1.1rem;
}

.page-title {
    font-weight: 850;
    letter-spacing: -0.04em;
    margin-bottom: 1.4rem;
}

.stat-card {
    border: none;
    border-radius: 24px;
    color: white;
    background: linear-gradient(135deg, var(--dark), #334155);
    box-shadow: 0 16px 40px rgba(31, 41, 51, 0.14);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 850;
}

.stat-label {
    opacity: 0.86;
    text-transform: capitalize;
}

.private-footer {
    background: white;
    color: #667085;
    border-top: 1px solid #e6eaf0;
}

.table {
    vertical-align: middle;
}

.table thead th {
    background: #f8fafc;
    color: #344054;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: #d9e0e8;
    padding: 0.7rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--orange-main);
    box-shadow: 0 0 0 0.2rem rgba(254, 95, 47, 0.12);
}

.code-ok {
    border-color: #16a34a !important;
    background: #f0fdf4;
}

.code-error {
    border-color: #dc2626 !important;
    background: #fef2f2;
}

.code-warning {
    border-color: #f59e0b !important;
    background: #fffbeb;
}

.tree-level {
    border-left: 2px solid #e5e7eb;
    padding-left: 1rem;
    margin: 0.8rem 0;
}

.tree-node {
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 0.4rem;
}

.tree-resource {
    padding: 0.45rem 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 0.35rem 0;
}

.badge {
    border-radius: 999px;
    padding: 0.45em 0.7em;
}

@media (max-width: 768px) {
    .hero-card {
        padding: 2rem;
        border-radius: 22px;
    }

    .private-header .container-fluid,
    .public-header .container {
        align-items: flex-start !important;
    }

    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    .login-card {
        padding: 1.5rem;
    }
}