:root {
    --bg-deep: #031536;
    --bg-mid: #082a58;
    --cyan: #26d7ff;
    --cyan-soft: #87f2ff;
    --ink: #d9efff;
    --white: #ffffff;
    --card: rgba(7, 28, 58, 0.7);
    --border: rgba(137, 237, 255, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(2, 11, 31, 0.92) 0%, rgba(6, 32, 73, 0.88) 45%, rgba(3, 21, 54, 0.9) 100%),
        url('/assets/styles/images/logo-devloid.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.3px;
}

.navbar {
    position: relative;
    z-index: 20;
    padding: 1rem 0;
}

.nav-link {
    color: #d4e9ff;
}

.nav-link:hover {
    color: var(--cyan-soft);
}

.brand-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 14px;
}

.brand-logo-large {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(38, 215, 255, 0.4);
}

.brand-text {
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.3px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--white);
}

.brand-text {
    font-weight: 700;
    color: var(--white);
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(35px);
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -80px;
    background: rgba(38, 215, 255, 0.2);
}

.orb-2 {
    width: 260px;
    height: 260px;
    bottom: -100px;
    left: -80px;
    background: rgba(31, 99, 205, 0.35);
}

.hero-section,
.section-space,
footer,
.auth-body main,
.dashboard-body main {
    position: relative;
    z-index: 10;
}

.hero-section {
    padding: 4rem 0 5.5rem;
}

.badge-brand {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: var(--cyan-soft);
    letter-spacing: 1.6px;
}

.hero-section h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--white);
}

.hero-copy {
    max-width: 620px;
    color: #c1d9f4;
    margin: 1.2rem 0 1.8rem;
    font-size: 1.05rem;
}

.glass-card,
.service-card,
.auth-card,
.panel-card,
.kpi-card,
.metric-card,
.contact-box {
    border: 1px solid var(--border);
    background: linear-gradient(155deg, rgba(13, 44, 84, 0.78), rgba(5, 22, 48, 0.8));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.glass-card {
    padding: 1.6rem;
    border-radius: 20px;
}

.glass-card h3 {
    color: var(--white);
    font-size: 1.3rem;
}

.glass-card ul li {
    padding: 0.45rem 0;
    color: #cce3ff;
}

.section-space {
    padding: 5rem 0;
}

.section-alt {
    background: linear-gradient(120deg, rgba(2, 16, 40, 0.72), rgba(5, 37, 82, 0.5));
}

.section-kicker {
    color: var(--cyan-soft);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.section-head h2,
#diferenciais h2,
.contact-box h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 0.65rem;
}

.service-card {
    border-radius: 18px;
    padding: 1.4rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(38, 215, 255, 0.5);
}

.service-card h4 {
    color: var(--white);
    font-size: 1.1rem;
}

.metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card {
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
}

.metric-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--cyan-soft);
}

.metric-card span {
    color: #bad4f0;
    font-size: 0.9rem;
}

.contact-box {
    border-radius: 24px;
    text-align: center;
    padding: 2.8rem 1.5rem;
}

.contact-box p {
    color: #c3dbf3;
    margin: 0.9rem auto 1.5rem;
    max-width: 650px;
}

.btn-brand {
    background: linear-gradient(90deg, #0aa6f7, #26d7ff);
    border: none;
    color: #031126;
    font-weight: 700;
}

.btn-brand:hover {
    color: #00162e;
    filter: brightness(1.05);
}

.btn-outline-brand {
    border: 1px solid rgba(38, 215, 255, 0.75);
    color: var(--cyan-soft);
}

.btn-outline-brand:hover {
    background: rgba(38, 215, 255, 0.12);
    color: var(--white);
}

footer {
    border-top: 1px solid rgba(125, 182, 237, 0.2);
    color: #a9c6e4;
}

.footer-link {
    color: var(--cyan-soft);
    text-decoration: none;
}

.auth-body,
.dashboard-body {
    min-height: 100vh;
}

.auth-card {
    padding: 1.8rem;
    border-radius: 20px;
}

.auth-back {
    color: var(--cyan-soft);
    text-decoration: none;
    font-size: 0.95rem;
}

.form-control {
    background: rgba(3, 21, 44, 0.9);
    border: 1px solid rgba(129, 190, 247, 0.3);
    color: #e7f6ff;
}

.form-control:focus {
    color: #effaff;
    background: rgba(3, 21, 44, 0.95);
    border-color: rgba(38, 215, 255, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(38, 215, 255, 0.2);
}

.kpi-card {
    border-radius: 16px;
    padding: 1.2rem;
}

.kpi-card span {
    color: #b9d3ef;
    font-size: 0.9rem;
}

.kpi-card strong {
    display: block;
    font-size: 2rem;
    color: var(--cyan-soft);
}

.panel-card {
    border-radius: 20px;
    padding: 1.3rem;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(38, 215, 255, 0.08);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    transition-delay: 0.14s;
}

.reveal-delay-sm {
    transition-delay: 0.08s;
}

.reveal-delay-lg {
    transition-delay: 0.24s;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: rgba(7, 28, 58, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.lang-option {
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.6;
    line-height: 1;
    display: flex;
    align-items: center;
}

.lang-option .fi {
    font-size: 1.3rem;
    border-radius: 3px;
}

.lang-option:hover {
    opacity: 0.9;
    background: rgba(38, 215, 255, 0.1);
}

.lang-option.active {
    opacity: 1;
    background: rgba(38, 215, 255, 0.2);
    box-shadow: 0 0 8px rgba(38, 215, 255, 0.3);
}

.modal-custom {
    background: linear-gradient(155deg, rgba(13, 44, 84, 0.95), rgba(5, 22, 48, 0.95));
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: var(--ink);
}

.modal-custom .modal-header {
    padding: 1.5rem 2rem;
}

.modal-custom .modal-title {
    color: var(--white);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.modal-custom .modal-body {
    padding: 2rem;
}

.modal-custom .form-label {
    color: var(--cyan-soft);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.modal-custom .form-control,
.modal-custom .form-select {
    background: rgba(3, 21, 44, 0.9);
    border: 1px solid rgba(129, 190, 247, 0.3);
    color: #e7f6ff;
    padding: 0.65rem 1rem;
}

.modal-custom .form-control:focus,
.modal-custom .form-select:focus {
    color: #effaff;
    background: rgba(3, 21, 44, 0.95);
    border-color: rgba(38, 215, 255, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(38, 215, 255, 0.2);
}

.modal-custom .form-select option {
    background: #031536;
    color: #e7f6ff;
}

.modal-custom .btn-close-white {
    filter: brightness(1.2);
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 2.2rem;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }
}

/* SweetAlert2 Custom Styles */
.swal2-popup {
    border: 1px solid rgba(38, 215, 255, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.swal2-title {
    color: var(--cyan-soft) !important;
    font-family: 'Sora', sans-serif !important;
    font-weight: 700 !important;
}

.swal2-html-container {
    color: var(--ink) !important;
    font-family: 'Manrope', sans-serif !important;
}

.swal2-confirm {
    border-radius: 8px !important;
    padding: 0.6rem 2rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(38, 215, 255, 0.3) !important;
}

.swal2-confirm:hover {
    filter: brightness(1.1) !important;
}

.swal2-icon.swal2-success {
    border-color: #26d7ff !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #26d7ff !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(38, 215, 255, 0.3) !important;
}

/* Chart Containers */
.chart-container {
    background: rgba(7, 28, 58, 0.7);
    border: 1px solid rgba(137, 237, 255, 0.15);
    border-radius: 16px;
    padding: 1rem;
    min-height: 400px;
}

.chart-container > div {
    height: 100%;
    min-height: 380px;
}

/* Financial KPIs */
.kpi-card strong.text-success {
    color: #10b981 !important;
}

.kpi-card strong.text-danger {
    color: #ef4444 !important;
}

.kpi-card strong.text-warning {
    color: #f59e0b !important;
}
