/* =========================================================
   GROONE DARK UI — Design System (tokens + components)
   Baseado no login + sidebar (dark, blue glow, glass)
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap');

/* -------------------------
   1) TOKENS (Design System)
-------------------------- */
:root {
    /* Typography */
    --font-sans: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    /* Radius */
    --r-xs: 10px;
    --r-sm: 12px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 22px;

    /* Spacing */
    --s-1: .35rem;
    --s-2: .55rem;
    --s-3: .75rem;
    --s-4: .95rem;
    --s-5: 1.15rem;

    /* Background foundation */
    --bg-deep: #050615;
    --bg-main: #070a1e;
    --bg-panel: #0a1430;

    /* Borders */
    --border-soft: rgba(148, 163, 184, .16);
    --border-strong: rgba(148, 163, 184, .22);

    /* Text */
    --text: rgba(234, 242, 255, .92);
    --text-2: rgba(234, 242, 255, .78);
    --muted: rgba(234, 242, 255, .60);
    --muted-2: rgba(234, 242, 255, .45);

    /* Brand (troque aqui e tudo acompanha) */
    --blue: #4DA3FF;
    --blue-2: #7DB9FF;

    --purple: #7C4DFF;

    /* States */
    --success: #00C48C;
    --warn: #f59e0b;
    --danger: #EF476F;

    /* Shadows */
    --shadow-1: 0 12px 30px rgba(0, 0, 0, .35);
    --shadow-2: 0 18px 45px rgba(0, 0, 0, .45);
    --shadow-3: 0 30px 90px rgba(0, 0, 0, .55);

    /* Focus glow */
    --ring: 0 0 0 4px rgba(77, 163, 255, .16);

    /* Global gradients (mesma pegada do login) */
    --bg-gradient: var(--bg-main);
    
    /* --bg-gradient:
        radial-gradient(1200px 800px at 10% 10%, rgba(77, 163, 255, .18), transparent 58%),
        radial-gradient(900px 650px at 55% 100%, rgba(10, 33, 61, .45), transparent 60%),
        linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-main) 35%, var(--bg-panel) 70%, var(--bg-deep) 100%); */

    --glass-gradient:
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));

    --sidebar-gradient:  var(--bg-main);
    
    /* --sidebar-gradient:
        radial-gradient(900px 650px at 15% 10%, rgba(77, 163, 255, .10), transparent 60%),
        linear-gradient(180deg, rgba(8, 14, 32, .96), rgba(10, 18, 46, .92)); */

    /* superfícies */
    --g-surface: rgba(11, 18, 36, .72);
    --g-surface-2: rgba(11, 18, 36, .55);
    --g-glass: rgba(255, 255, 255, .06);
    --g-glass-2: rgba(255, 255, 255, .09);

    /* bordas e texto */
    --g-border-soft: rgba(148, 163, 184, .16);
    --g-border-strong: rgba(148, 163, 184, .22);

    --g-text-main: rgba(234, 242, 255, .92);
    --g-text-muted: rgba(234, 242, 255, .60);

    /* cores */
    --g-primary: #4DA3FF;
    /* azul claro */
    --g-primary-2: #7DB9FF;
    /* azul claro 2 */
    --g-primary-soft: rgba(77, 163, 255, .16);

    --g-accent: #00C48C;
    --g-accent-dark: #00A173;

    --g-danger: #EF476F;
    --g-warn: #f59e0b;

    /* fundos de status (dark) */
    --g-success-bg: rgba(0, 196, 140, .16);
    --g-danger-bg: rgba(239, 71, 111, .16);
    --g-warn-bg: rgba(245, 158, 11, .16);

    /* sombras / radius */
    --g-shadow: 0 18px 55px rgba(0, 0, 0, .55);
    --g-radius: 18px;
}

/* --------------------------------
   2) BASE (body + helpers)
--------------------------------- */
html,
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg-gradient);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background: var(--bg-gradient);
    /* usa o seu gradiente atual */
    background-repeat: no-repeat;
    background-size: cover;
}

body.is-loading {
    overflow: hidden !important;
    height: 100vh;
}

.g-loader {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(15px);
    padding: 16px;
}

.g-loader[hidden] {
    display: none !important;
}

.g-loader-card {
    width: min(520px, 92vw);
    border-radius: var(--r-xl);
    background:
        radial-gradient(900px 650px at 10% 10%, rgba(77, 163, 255, .10), transparent 60%),
        linear-gradient(180deg, var(--g-surface), var(--g-surface-2));
    border: 1px solid var(--g-border-soft);
    box-shadow: var(--g-shadow);
    backdrop-filter: blur(12px);
    padding: 18px;
}

.g-loader-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.g-loader-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(77, 163, 255, .18), rgba(0, 196, 140, .16));
    border: 1px solid rgba(255, 255, 255, .08);
    position: relative;
    overflow: hidden;
}

.g-loader-mark span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--g-accent);
    opacity: .9;
    animation: gPulse 1.15s infinite ease-in-out;
}
.g-loader-mark span:nth-child(1) { transform: translateX(-10px); animation-delay: 0s; }
.g-loader-mark span:nth-child(2) { transform: translateX(0px);   animation-delay: .12s; }
.g-loader-mark span:nth-child(3) { transform: translateX(10px);  animation-delay: .24s; }

@keyframes gPulse {
    0%, 100% { transform: translateY(0) translateX(var(--x, 0)); filter: saturate(1); }
    50%       { transform: translateY(-6px) translateX(var(--x, 0)); filter: saturate(1.2); }
}

.g-loader-title {
    font-weight: 900;
    color: var(--g-text-main);
    font-size: 1.05rem;
    line-height: 1.15;
}

.g-loader-subtitle {
    margin-top: 2px;
    color: var(--g-text-muted);
    font-weight: 700;
    font-size: .9rem;
}

.g-loader-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .14);
    overflow: hidden;
    border: 1px solid var(--g-border-soft);
}

.g-loader-bar-inner {
    width: 8%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--g-accent), var(--g-accent-dark));
    box-shadow: 0 12px 22px rgba(0, 196, 140, .22);
    transition: width .25s ease;
}

.g-loader-hints {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
}

.g-progress {
    height: 15px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .14);
    border: 1px solid var(--g-border-soft);
    overflow: hidden;
}

.g-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--g-accent), var(--g-accent-dark));
    box-shadow: 0 4px 12px rgba(0, 196, 140, .22);
    transition: width .4s ease;
}

.g-muted {
    color: var(--muted) !important;
}

.g-muted-2 {
    color: var(--muted-2) !important;
}

.g-text {
    color: var(--text) !important;
}

.g-glass {
    background: var(--glass-gradient);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(14px);
}

.move {
    transition: transform 0.5s;
}

.move:hover {
    transform: translateY(-5px);
}

/* --------------------------------
   3) LAYOUT SURFACES
--------------------------------- */
.g-scroll {
    max-height: 520px;
    overflow: auto;
    padding-right: 6px;
}

.g-card {
    border-radius: var(--r-lg);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .05);
    box-shadow: var(--shadow-1);
}

.g-card:hover {
    border-color: rgba(77, 163, 255, .25);
    box-shadow: 0 16px 50px rgba(0, 0, 0, .45);
}

.g-card-section {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, .28),
        rgba(0, 0, 0, .18)) !important;

    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
}

.g-card-back {
    background: linear-gradient(180deg,
            rgba(0, 0, 0, .28),
            rgba(0, 0, 0, .18)) !important;

    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);

    box-shadow: 0 10px 26px rgba(0, 0, 0, .42) !important;
}

/* Header title style */
.g-title {
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
}

.g-subtitle {
    color: var(--muted);
    font-weight: 500;
}

.section-title {
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--g-text);
    margin-bottom: .5rem;
    display:flex;
    align-items:center;
    gap:.5rem;
}
.section-title:before{
    content:"";
    width:10px;
    height:10px;
    border-radius:999px;
    background: rgba(0,196,140,.85);
    box-shadow: 0 0 0 4px rgba(0,196,140,.14);
}

.g-goal-stats {
    margin-top: 2px;
}

.g-goal-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, .14);
    font-size: .82rem;
    font-weight: 900;
}

.g-goal-row:last-child {
    border-bottom: 0;
}

.g-goal-row .key {
    color: rgba(234, 242, 255, .62);
    font-weight: 900;
    white-space: nowrap;
}

.g-goal-row .value {
    color: rgba(234, 242, 255, .92);
    font-weight: 950;
    white-space: nowrap;
}

.g-goal-row-soft {
    opacity: .92;
}

/* --------------------------------
   4) BUTTONS (componentizado)
--------------------------------- */
.g-btn {
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: .78rem 1rem;
    font-weight: 950;
    letter-spacing: .02em;
    transition: .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    text-decoration: none;
}

.g-btn:focus {
    outline: none;
    box-shadow: var(--ring);
}


/* Glass / secondary */
.g-btn-glass {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.g-btn-glass:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(77, 163, 255, .25);
}

/* Icon button */
.g-btn-icon {
    width: 44px;
    height: 40px;
    padding: 0;
    border-radius: var(--r-sm);
}

.g-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;

    border-radius: 12px;
    background: var(--bg-panel);
    border: 1px solid rgba(148, 163, 184, .22);
    color: rgba(234, 242, 255, .95);

    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    backdrop-filter: blur(10px);

    transition: all .14s ease;
    text-decoration: none;
}

.g-profile-btn i {
    font-size: 1rem;
    opacity: .9;
}

.g-profile-btn:hover {
    background: rgba(12, 18, 30, .85);
    color: #fff;
    transform: translateY(-1px);
}

.g-profile-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

/* --------------------------------
   5) INPUTS / SELECTS / FORMS
--------------------------------- */
.g-label {
    font-weight: 950;
    font-size: .84rem;
    color: rgba(234, 242, 255, .85);
    letter-spacing: .02em;
    margin-bottom: 6px;
}

.g-hint {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .35rem;
    font-weight: 700;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step .g-card-section{
    animation: fadeUp .18s ease;
}
@keyframes fadeUp{
    from{ opacity:0; transform: translateY(6px); }
    to{ opacity:1; transform: translateY(0); }
}

.placeholder-line {
    height: 10px;
    background: rgba(148, 163, 184, .14);
    border-radius: 999px;
}

.placeholder-table {
    background: rgba(255, 255, 255, .03);
    border-radius: 15px;
}

.placeholder-line.w-75 { width: 75%; }
.placeholder-line.w-50 { width: 50%; }
.placeholder-line.w-25 { width: 25%; }

/* 1) Garantir que qualquer input com sua classe tenha SEMPRE esse estilo */
.g-input,
.g-select,
input.g-input,
textarea.g-input,
select.g-select
 {
    border-radius: var(--r-md);
    border: 1px solid rgba(148, 163, 184, .20);
    min-height: 50px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-weight: 800;
    outline: none;
    transition: .18s ease;
}

.g-input:not(:placeholder-shown) {
    color: var(--text);
    font-weight: 800;
}

.g-input::placeholder,
.g-select::placeholder {
    color: var(--text) !important;
    font-weight: 700;
}

.g-input:focus,
.g-select:focus {
    border-color: rgba(77, 163, 255, .65);
    box-shadow: var(--ring);
    background: rgba(255, 255, 255, .06);
}

.g-input:-webkit-autofill,
.g-input:-webkit-autofill:hover,
.g-input:-webkit-autofill:focus,
.g-select:-webkit-autofill,
.g-select:-webkit-autofill:hover,
.g-select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text);
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, .06) inset !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    transition: background-color 9999s ease-out 0s;
}

.g-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

.g-select option[value=""] {
    color: var(--muted-2);
    font-weight: 700;
}

.g-select:has(option:checked:not([value=""])) {
    color: var(--text);
    font-weight: 800;
}

.g-input::placeholder {
    color: rgba(234, 242, 255, .45);
    font-weight: 700;
}

.g-input:focus,
.g-select:focus {
    border-color: rgba(77, 163, 255, .65);
    box-shadow: var(--ring);
    background: rgba(255, 255, 255, .06);
}

.g-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.g-upload-wrap input[type="file"] {
    display: none;
}

.g-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    min-height: 50px;
    padding: .78rem 1rem;
    border-radius: var(--r-md);
    border: 1px solid rgba(148, 163, 184, .20);
    background: rgba(255, 255, 255, .06);
    color: rgba(234, 242, 255, .92);
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    transition: .18s ease;
}

.g-upload-btn:hover {
    border-color: rgba(77, 163, 255, .45);
    background: rgba(255, 255, 255, .09);
    color: rgba(234, 242, 255, .92);
}

.g-upload-wrap.is-invalid .g-upload-btn {
    border-color: rgba(239, 71, 111, .55);
    box-shadow: 0 0 0 4px rgba(239, 71, 111, .10);
}

/* input group icon */
.g-input-wrap {
    position: relative;
}

.g-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(234, 242, 255, .55);
}

/* if you want padding-left like login */
.g-input.has-icon {
    padding-left: 42px;
}

.g-input-group-fix-right {
    margin-left: 0px !important;
    border-right: 1px solid rgba(148, 163, 184, .20) !important;
}

.g-input-group-fix-left {
    border-right: 0px !important;
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

/* =========================================================
   GROONE DARK — Select2 (glass + glow)
========================================================= */

/* container base */
.select2-container {
    width: 100% !important;
    font-family: var(--font-sans);
}

/* selection (campo fechado) */
.select2-container--default .select2-selection--single {
    height: 44px;
    display: flex;
    align-items: center;

    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: var(--r-md);

    padding: .55rem .85rem;
    font-size: .9rem;
    font-weight: 800;

    color: var(--text);
    transition: .18s ease;

    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 8px !important;
}

select.select2-with-icon+.select2-container .select2-selection--single {
    padding-left: 38px !important;
    /* só esse */
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #eeeeee00 !important;
    cursor: default;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text) !important;
    line-height: 28px;
    padding: 0px !important;
}

.select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    height: 26px;
    margin-right: 20px;
    padding-right: 0px;
    color: var(--g-text-main) !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text) !important;
}

.select2-container--default .select2-selection--single {
    border-radius: var(--r-md) !important;
    min-height: 49.99px;
    padding: .78rem .92rem;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    background: rgba(255, 255, 255, .06) !important;
    color: var(--text);
    font-weight: 800;
    outline: none;
    transition: .18s ease;
}

/* texto selecionado */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text) !important;
    line-height: normal;
    padding-left: 0;
}

/* placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--muted-2);
    font-weight: 700;
}

/* seta */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: rgba(175, 199, 255, .85) transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    margin-top: 6px;
}

/* focus / open */
.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus-visible {
    border-color: rgba(77, 163, 255, .65);
    box-shadow: var(--ring);
    background: rgba(255, 255, 255, .08);
}

/* disabled */
.select2-container--disabled .select2-selection--single {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(148, 163, 184, .12);
    color: rgba(234, 242, 255, .35);
    cursor: not-allowed;
}

/* =========================================================
   GROONE DARK — Select2 MULTI (chips + glass + glow)
========================================================= */

/* campo fechado (multi) */
.select2-container--default .select2-selection--multiple {
    min-height: 49.99px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;

    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    border-radius: var(--r-md) !important;

    padding: .55rem .75rem !important;
    transition: .18s ease;
    caret-color: transparent !important;
}

/* quando abre / focus (mesmo ring do sistema) */
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--open .select2-selection--multiple {
    border-color: rgba(77, 163, 255, .65) !important;
    box-shadow: var(--ring) !important;
    background: rgba(255, 255, 255, .08) !important;
}

/* placeholder do multi (quando não tem nada) */
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: var(--muted-2) !important;
    font-weight: 700;
}

/* input interno onde digita (pesquisa/tags) */
.select2-container--default .select2-selection--multiple .select2-search__field {
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    color: var(--text) !important;
    vertical-align: sub !important;

    font-weight: 800 !important;
    font-size: .9rem !important;

    margin: 0 !important;
    min-width: 120px;
}

/* chips (itens selecionados) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border-radius: 8px !important;
    border: 1px solid rgba(77, 163, 255, .30) !important;

    background: rgba(77, 163, 255, .14) !important;
    color: rgba(234, 242, 255, .92) !important;

    font-weight: 950 !important;
    font-size: .78rem !important;
    letter-spacing: .02em;

    padding: .34rem .60rem !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: .35rem;
    margin-right: 5px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    cursor: default !important;
    padding-left: 6px !important;
    padding-right: 0px !important;
}

/* “X” remover chip */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border: 0 !important;
    background: transparent !important;

    color: rgba(234, 242, 255, .75) !important;
    font-weight: 950 !important;
    top: 5px !important;

    margin-right: .25rem !important;
    opacity: .9;
    transition: .15s ease;
}

/* disabled */
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background: rgba(255, 255, 255, .03) !important;
    border-color: rgba(148, 163, 184, .12) !important;
    cursor: not-allowed !important;
    opacity: .75;
}

/* =========================================================
   Opcional: multi “com ícone” (igual seu single)
   use: <select class="select2-with-icon" multiple>
========================================================= */
select.select2-with-icon[multiple]+.select2-container .select2-selection--multiple {
    padding-left: 38px !important;
}

.select2-container .select2-selection--multiple {
    min-height: 50px !important;
}

/* =========================================================
   DROPDOWN (lista aberta)
========================================================= */
.select2-dropdown {
    background: linear-gradient(180deg,
            rgba(10, 12, 24, .96),
            rgba(10, 12, 24, .88));
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
    overflow: hidden;
    position: absolute !important;
}

.select2-search--dropdown {
    display: block;
    padding: 10px !important;
}

.select2-container--open .select2-dropdown--below {
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--r-lg) !important;
    top: 10px;
}

.select2-container--open .select2-dropdown--above {
    border: 1px solid var(--border-soft) !important;
    border-radius: var(--r-lg) !important;
    top: -10px;
}

/* campo de busca */
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 12px;

    padding: .55rem .75rem;
    font-size: .85rem;
    font-weight: 800;

    color: var(--g-text-main);
    outline: none;
}

/* focus search */
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: rgba(77, 163, 255, .55);
    box-shadow: var(--ring);
}

/* opções */
.select2-results__option {
    padding: .55rem .75rem;
    font-size: .85rem;
    font-weight: 850;
    color: rgba(234, 242, 255, .88);
    border-radius: 10px;
    margin: 2px 6px;
}

/* hover */
.select2-results__option--highlighted {
    background: rgba(77, 163, 255, .16) !important;
    color: #fff !important;
    box-shadow: 0 0 0 4px rgba(77, 163, 255, .10);
    padding: 10px !important;
}

/* selecionado */
.select2-results__option--selected {
    background: rgba(0, 196, 140, .16) !important;
    color: rgba(234, 242, 255, .92);
    border: 1px solid rgba(0, 196, 140, .28);
}

/* mensagem "no results" */
.select2-results__message {
    color: var(--muted);
    font-weight: 800;
    padding: .75rem;
}

/* scrollbar no dropdown */
.select2-results__options {
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 242, 255, .22) transparent;
}

.select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: rgba(234, 242, 255, .22);
    border-radius: 99px;
}

/* --------------------------------
   6) DROPDOWNS / MENUS (Bootstrap)
--------------------------------- */
.g-menu {
    border-radius: var(--r-lg);
    padding: .35rem;
    border: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(10, 12, 24, .92), rgba(10, 12, 24, .82));
    box-shadow: var(--shadow-2);
}

.g-menu-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: 12px;
    padding: .6rem .7rem;
    font-weight: 900;
    color: rgba(234, 242, 255, .85);
    border: 1px solid transparent;
    white-space: nowrap;
}

.g-menu-item:hover {
    background: rgba(77, 163, 255, .16);
    border-color: rgba(77, 163, 255, .30);
    box-shadow: 0 0 0 4px rgba(77, 163, 255, .10);
    color: #fff;
}

/* --------------------------------
   7) TABLES (dark friendly)
--------------------------------- */
.g-table-wrap {
    border-radius: var(--r-lg);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .04);
    overflow: hidden;
}

table.g-table {
    margin: 0;
}

table.g-table thead th {
    font-weight: 950;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(234, 242, 255, .78);
    border-bottom: 1px solid rgba(148, 163, 184, .18) !important;
    padding: 12px 10px;
    white-space: nowrap;
    background: rgba(0, 0, 0, .10);
}

table.g-table tbody td {
    padding: 12px 10px;
    vertical-align: middle;
    font-weight: 800;
    color: rgba(234, 242, 255, .88);
    border-color: rgba(148, 163, 184, .12) !important;
}

table.g-table tbody tr:hover {
    background: rgba(77, 163, 255, .08);
}

.th-sort {
    cursor: pointer;
    user-select: none;
}

.th-sort:hover {
    color: #fff;
}

.sort-icon i {
    font-size: .8rem;
    margin-left: 4px;
    opacity: .85;
}

/* --------------------------------
   8) PILLS / BADGES (status)
--------------------------------- */
.g-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .34rem .72rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 950;
    border: 1px solid rgba(148, 163, 184, .18);
    white-space: nowrap;
    background: rgba(255, 255, 255, .05);
    color: rgba(234, 242, 255, .85);
}

.g-pill .dot {
    width: .48rem;
    height: .48rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, .45);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .10);
}

.g-pill[data-status="success"] {
    border-color: rgba(0, 196, 140, .30);
    background: rgba(0, 196, 140, .12);
    color: rgba(234, 242, 255, .92);
}

.g-pill[data-status="success"] .dot {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(0, 196, 140, .14);
}

.g-pill[data-status="warn"] {
    border-color: rgba(245, 158, 11, .28);
    background: rgba(245, 158, 11, .12);
}

.g-pill[data-status="warn"] .dot {
    background: var(--warn);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}

.g-pill[data-status="danger"] {
    border-color: rgba(239, 71, 111, .28);
    background: rgba(239, 71, 111, .12);
}

.g-pill[data-status="danger"] .dot {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 71, 111, .12);
}

.g-pill[data-status="primary"] {
    border-color: rgba(77, 163, 255, .30);
    background:rgba(77, 163, 255, .12);
    color: rgba(234, 242, 255, .92);
}

.g-pill[data-status="primary"] .dot {
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(77, 163, 255, .12);
}

/* --------------------------------
   9) SCROLLBARS (panel-friendly)
--------------------------------- */
* {
    scrollbar-color: rgba(234, 242, 255, .22) rgba(255, 255, 255, .05);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .05);
}

::-webkit-scrollbar-thumb {
    background: rgba(234, 242, 255, .22);
    border-radius: 99px;
}

/* --------------------------------
   10) OPTIONAL: BOOTSTRAP OVERRIDES
   (aplica o “DNA” no padrão Bootstrap)
--------------------------------- */
.form-control,
.form-select {
    border-radius: var(--r-md);
}

.form-control:focus,
.form-select:focus {
    box-shadow: var(--ring);
    border-color: rgba(77, 163, 255, .65);
}

.form-switch .form-check-input:checked {
    border-color: #2dce89;
    background-color: #2dce89;
}

.form-check-input{
    cursor: pointer;
}

.form-check-input:focus{
    box-shadow: 0 0 0 .2rem rgba(0, 196, 140, .18);
    border-color: rgba(0, 196, 140, .55);
}

.form-check-label {
    font-size: .82rem;
    font-weight: 700;
    color: rgba(234, 242, 255, .75);
}

.g-icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: rgba(234, 242, 255, .90);
    background: rgba(77, 163, 255, .10);
    border: 1px solid rgba(77, 163, 255, .20);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

.g-icon-bubble-lg {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    color: rgba(234, 242, 255, .90);
    background: rgba(77, 163, 255, .10);
    border: 1px solid rgba(77, 163, 255, .20);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

.g-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 196, 140, .12);
    color: var(--g-accent);
    border: 1px solid rgba(0, 196, 140, .2);
    font-size: 1.1rem;
}

.g-empty-sub {
    font-size: .85rem;
    font-weight: 700;
    color: var(--g-text-muted);
    max-width: 360px;
    text-align: center;
}

/* ===== APP BASE ===== */
.g-app {
    min-height: 100vh;
    /* background:
        radial-gradient(1200px 800px at 10% 10%, rgba(77, 163, 255, .14), transparent 58%),
        radial-gradient(1000px 700px at 90% 12%, rgba(77, 163, 255, .10), transparent 60%),
        radial-gradient(900px 650px at 55% 100%, rgba(10, 33, 61, .35), transparent 60%),
        linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-main) 35%, var(--bg-panel) 70%, var(--bg-deep) 100%); */
    color: var(--g-text-main);
}

/* Layout grid */
.g-layout {
    display: flex;
    min-height: 100vh;
}

.g-main {
    width: 100%;
    min-height: 100vh;
}

.g-content {
    padding-top: 14px;
}

/* ===== TOPBAR ===== */
.g-topbar {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(0, 0, 0, .12);
    backdrop-filter: blur(12px);
    z-index: 1050;
}

/* breadcrumb */
.g-bread-controller {
    color: var(--text-muted);
    letter-spacing: .02em;
    font-weight: 900;
    opacity: 1 !important;
}

.g-bread-view {
    color: rgba(234, 242, 255, .92);
    font-weight: 950;
}

/* icon button padrão */
.g-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .18);
    color: rgba(234, 242, 255, .9);
    transition: .15s ease;
    text-decoration: none;
}

.g-icon-btn:hover {
    background: rgba(255, 255, 255, .10);
    transform: translateY(-1px);
}

/* ===== MOBILE: topbar fixa + espaço automático ===== */
@media (max-width: 600px) {
    .g-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1050;
    }

    .g-content {
        padding-top: 92px;
        /* espaço pro topbar */
    }

    /* sidebar vira offcanvas (você já tem o toggle) */
}

/* ===== TOASTS ===== */
/* stack (recomendo simplificar: bottom/right ao invés de top+bottom) */
.g-toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    max-width: 350px;
    z-index: 2000;
    pointer-events: none;
}

/* base mantém seu estilo */
.g-toast {
    pointer-events: auto;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .18);

    background:
        radial-gradient(900px 650px at 10% 10%, rgba(255, 255, 255, .06), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .18));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

/* layout interno (ícone + texto + close) */
.g-toast-inner {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.g-toast-text {
    margin: 0;
    font-weight: 900;
    color: rgba(234, 242, 255, .92);
    line-height: 1.25;
    flex: 1;
}

/* close no mesmo “tom” */
.g-toast-close {
    pointer-events: auto;
    background: transparent;
    border: 0;
    color: rgba(234, 242, 255, .75);
    font-size: 1.15rem;
    font-weight: 950;
    padding: 0 2px;
    line-height: 1;
    opacity: .7;
    transition: .15s ease;
}

.g-toast-close:hover {
    opacity: 1;
}

/* -------------------------
   DANGER (no seu estilo)
-------------------------- */
.g-toast--danger {
    border-color: rgba(239, 71, 111, .55);

    background:
        radial-gradient(900px 650px at 12% 20%, rgba(239, 71, 111, .22), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, .32), rgba(0, 0, 0, .22));

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .38),
        0 0 0 1px rgba(239, 71, 111, .20),
        0 0 26px rgba(239, 71, 111, .18);
}

/* ícone danger (círculo com fundo glass) */
.g-toast--danger .g-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;

    background: rgba(239, 71, 111, .16);
    border: 1px solid rgba(239, 71, 111, .35);
    color: rgba(234, 242, 255, .95);

    box-shadow: 0 0 0 4px rgba(239, 71, 111, .10);
}

/* texto um pouco mais “quente” no danger */
.g-toast--danger .g-toast-text {
    color: rgba(255, 235, 240, .96);
}

.g-toast--success {
    border-color: rgba(0, 196, 140, .55);

    background:
        radial-gradient(900px 650px at 12% 20%, rgba(0, 196, 140, .22), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, .32), rgba(0, 0, 0, .22));

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .38),
        0 0 0 1px rgba(0, 196, 140, .20),
        0 0 26px rgba(0, 196, 140, .18);
}

/* ícone success (círculo com fundo glass) */
.g-toast--success .g-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;

    background: rgba(0, 196, 140, .16);
    border: 1px solid rgba(0, 196, 140, .35);
    color: rgba(234, 242, 255, .95);

    box-shadow: 0 0 0 4px rgba(0, 196, 140, .10);
}

.g-toast--success .g-toast-text {
    color: rgba(234, 255, 246, .96);
}

/* ===== FOOTER ===== */
.g-footer {
    border-top: 1px solid rgba(148, 163, 184, .14);
    margin-top: 18px;
    padding-top: 14px;
}

.g-footer-text {
    color: rgba(234, 242, 255, .65);
    font-weight: 800;
}

.g-footer-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 950;
}

.g-footer-link:hover {
    text-decoration: underline;
}

/* ===== MODAL (dark) ===== */
.g-modal {
    background: rgba(11, 18, 36, .92);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 18px;
    color: rgba(234, 242, 255, .92);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
    max-height: 80vh;
}

.upload-container {
    text-align: center;
}

.upload-box {
    position: relative;
    width: 100%;
    cursor: pointer;

    border: 1px dashed var(--border-strong);
    background: linear-gradient(180deg,
            rgba(0, 0, 0, .28),
            rgba(0, 0, 0, .18)) !important;
    ;
    border-radius: 18px;
    padding: 22px 18px;

    box-shadow: var(--shadow-1);
}

.upload-box:hover {
    transform: translateY(-1px);
    border-color: rgba(77, 163, 255, .55);
    box-shadow: 0 22px 70px rgba(15, 23, 42, .14);
}

.upload-box:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(77, 163, 255, .18), var(--shadow-1);
}

.upload-box.dragover {
    border-style: solid;
    border-color: rgba(0, 196, 140, .55);
    background: var(--g-glass);
    transform: translateY(-1px) scale(1.01);
}

.file-info {
    margin-top: 14px;
    display: none;
    justify-content: center;
}

.file-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: .40rem .75rem;
    border-radius: 999px;

    background: rgba(0, 196, 140, .10);
    border: 1px solid rgba(0, 196, 140, .22);
    color: var(--text);

    font-weight: 950;
    font-size: .84rem;
    max-width: 100%;
}

.file-pill .name {
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-pill .remove {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: rgba(255, 255, 255, .40);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: rgba(15, 23, 42, .7);
}

.upload-box.is-valid {
    border-color: var(--g-accent)
}

.upload-box.is-error {
    border-color: var(--danger)
}

.error-invalid-message {
    display: none;
    margin-top: 12px;
    font-weight: 950;
    color: rgba(239, 71, 111, .95);
}

#draw {
  position: relative;
  background-color: #fafafa;
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1.5px, transparent 2px);
  background-size: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: auto;
}

.wizard-steps{
    display:flex;
    gap:.5rem;
    flex-wrap:wrap;
}
.wizard-progress{
    height: 10px;
    border-radius: 999px;
    background: rgba(148,163,184,.25);
    overflow:hidden;
}
.wizard-progress > div{
    height:100%;
    width:0%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--g-accent), var(--g-accent-dark));
    box-shadow: 0 10px 18px rgba(0,196,140,.25);
    transition: width .25s ease;
}

.wizard-footer{
    position: sticky;
    bottom: 0;
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--g-border-soft);
    padding: .85rem;
    z-index: 10;
}


#chartList {
    padding: .35rem;
    border: 1px solid var(--gm-border);
    box-shadow: var(--gm-shadow);
    background: var(--bg-main);
    backdrop-filter: blur(12px);
    position: absolute !important;
    display: none;
    right: 0;
    top: calc(100% + 8px);
    z-index: 200;
    border-radius: 14px;
    width: 200px;
}
#chartList .form-check-label {
    font-size: .82rem;
    font-weight: 700;
    color: rgba(234, 242, 255, .75);
}
#chartList .form-check-input:checked {
    background-color: var(--success);
    border-color: var(--success);
}
#chartList .form-check-input {
    border-color: rgba(148, 163, 184, .35);
    background-color: rgba(255,255,255,.06);
}

.g-chart-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(148, 163, 184, .10);
    padding: 14px 14px 10px 14px;
}

.g-chart-title {
    font-weight: 950;
    color: rgba(234, 242, 255, .78);
    letter-spacing: .02em;
    font-size: 1.05rem;
}

.g-chart-value {
    font-weight: 950;
    font-size: 2rem;
    /* ~h2 */
    color: rgba(234, 242, 255, .92);
}

.g-chart-canvas {
    padding: 8px 0px 14px 0px;
    position: relative;
}

/* dá um “acabamento” bonito no rodapé do chart */
.g-chart-canvas:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 28px;
    pointer-events: none;
    border-radius: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 950;
    letter-spacing: .02em;
}

.brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 0 0 4px rgba(124, 77, 255, .12);
}

/* VERIFICAR DAQUI */

.shadow-custom {
    box-shadow: var(--g-shadow);
    border-radius: var(--g-radius);
    border: 1px solid var(--g-border-soft);
    background:
        radial-gradient(900px 650px at 10% 10%, rgba(77, 163, 255, .10), transparent 60%),
        linear-gradient(180deg, var(--g-surface), var(--g-surface-2));
    backdrop-filter: blur(12px);
}

/* header */
.pr-header-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--g-text-main);
    display: flex;
    align-items: center;
    gap: .6rem;
}

.pr-header-title span.icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(77, 163, 255, .18), rgba(0, 196, 140, .16));
    color: var(--g-primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.pr-header-subtitle {
    font-size: .9rem;
    color: var(--g-text-muted);
    max-width: 820px;
}

.pr-header-meta-badge {
    background: rgba(255, 255, 255, .06);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .78rem;
    color: var(--g-text-main);
    border: 1px solid rgba(148, 163, 184, .22);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
    font-weight: 950;
}

.pr-header-meta-badge .dot {
    width: .48rem;
    height: .48rem;
    border-radius: 999px;
    background: var(--g-accent);
    box-shadow: 0 0 0 4px rgba(0, 196, 140, .16);
}

.g-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;

    padding: .32rem .7rem;
    border-radius: 999px;

    font-size: .75rem;
    font-weight: 950;
    letter-spacing: .02em;

    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .05);
    color: rgba(234, 242, 255, .88);

    white-space: nowrap;
}

.g-badge .dot {
    width: .45rem;
    height: .45rem;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .12);
    background: rgba(148, 163, 184, .75);
}

.g-badge-red {
    border-color: rgba(239, 71, 111, .35);
    background: rgba(239, 71, 111, .14);
    color: rgba(255, 235, 240, .95);
}

.g-badge-red .dot {
    background: var(--g-danger);
    box-shadow: 0 0 0 4px rgba(239, 71, 111, .14);
}

.g-badge-orange {
    border-color: rgba(245, 158, 11, .35);
    background: rgba(245, 158, 11, .14);
    color: rgba(255, 245, 225, .95);
}

.g-badge-orange .dot {
    background: var(--g-warn);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .16);
}

.g-badge-green {
    border-color: rgba(0, 196, 140, .35);
    background: rgba(0, 196, 140, .14);
    color: rgba(234, 255, 246, .95);
}

.g-badge-green .dot {
    background: var(--g-accent);
    box-shadow: 0 0 0 4px rgba(0, 196, 140, .16);
}

.g-badge-blue {
    border-color: rgba(77, 163, 255, .35);
    background: rgba(77, 163, 255, .14);
    color: rgba(234, 242, 255, .95);
}

.g-badge-blue .dot {
    background: var(--g-primary);
    box-shadow: 0 0 0 4px rgba(77, 163, 255, .14);
}

/* wrapper do painel */
.panel-wrapper {
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: var(--g-radius);
    padding: 14px;
    min-height: 420px;
}

/* buttons */
.btn-pill {
    border-radius: 12px;
    font-weight: 950;
}

.btn-soft {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .18);
    color: rgba(234, 242, 255, .92);
    box-shadow: none;
}

.btn-soft:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(77, 163, 255, .30);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(77, 163, 255, .10);
}

.btn-gradient-green {
    border: 1px solid rgba(0, 196, 140, .65);
    border-radius: 12px;
    background: rgb(0 196 140 / 24%);
    color: var(--g-text-main);
    font-weight: 950;
    letter-spacing: .02em;
    transition: .15s ease;
    min-height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-gradient-green:hover {
    background: rgba(0, 196, 141, 0.087);
    border-color: rgba(0, 196, 140, .65);
    color: rgba(0, 196, 140, .65);
    transform: translateY(-1px);
}

/* Primary gradient (blue) */
.btn-gradient-grey {
    border-radius: var(--r-sm);
    font-weight: 950;
    letter-spacing: .02em;
    background: rgba(148, 163, 184, .18);
    border: 1px solid rgba(148, 163, 184, .50);
    color: #fff;
    transition: .15s ease;
    min-height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-gradient-grey:hover {
    background: rgba(148, 163, 184, .12);
    border-color: rgba(148, 163, 184, .85);
    color: rgba(234, 242, 255, .85);

    box-shadow: 0 0 0 4px rgba(148, 163, 184, .18);
    transform: translateY(-1px);
    ;
}

/* botão danger soft (dark) */
.btn-gradient-red {
    border-radius: var(--r-sm);
    font-weight: 950;
    letter-spacing: .02em;
    background: rgba(239, 71, 111, .18);
    border-color: rgba(239, 71, 111, .50);
    color: #fff;
    transition: .15s ease;
    min-height: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-gradient-red:hover {
    background: rgb(224 14 14 / 8%);
    border-color: #b42318;
    color: #b42318;
    transform: translateY(-1px);
}

.btn-gradient-red:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(239, 71, 111, .18);
    border-color: rgba(239, 71, 111, .55);
}

.btn-gradient-red:active {
    transform: translateY(0);
}

.btn-gradient-blue {
    border-radius: var(--r-sm);
    font-weight: 950;
    letter-spacing: .02em;
    background: rgba(59, 130, 246, .18);
    border: 1px solid rgba(59, 130, 246, .50);
    color: #fff;
    transition: .15s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-gradient-blue:hover {
    background: rgb(0 109 255 / 8%);
    border: 1px solid rgba(59, 130, 246, .35);
    color: rgb(59 130 246 / 67%);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
    transform: translateY(-1px);
}

.btn-gradient-blue:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .18);
    border-color: rgba(59, 130, 246, .55);
}

.btn-gradient-blue:active {
    transform: translateY(0);
}

.btn-glass {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .18);
    color: rgba(234, 242, 255, .88);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(148, 163, 184, .28);
    color: #fff;
}

.btn-icon {
    width: 48px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    font-weight: 950;
}

.g-search-wrap {
    position: relative;
    width: 100%;
}

.g-search-wrap .search-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .9rem;
    color: rgba(234, 242, 255, .55);
}

.g-search-wrap:focus-within .search-icon {
    color: rgba(77, 163, 255, .9);
}

.inputs {
    padding-left: 2.4rem;
}

/* table */
.table-wrap {
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: var(--g-radius);
    background: rgba(255, 255, 255, .03);
}

.table-hover>tbody>tr:hover>* {
    color: rgba(234, 242, 255, .95);
}

table.g-table {
    margin: 0;
}

table.g-table thead th {
    color: rgba(234, 242, 255, .78);
    font-weight: 950;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(148, 163, 184, .18) !important;
    padding: 12px 10px;
    white-space: nowrap;
}

table.g-table tbody td {
    padding: 12px 10px;
    vertical-align: middle;
    font-weight: 850;
    color: rgba(234, 242, 255, .86);
    border-color: rgba(148, 163, 184, .12) !important;
}

table.g-table tbody tr:hover {
    background: rgba(77, 163, 255, .08);
}

.danger-zone {
    border-radius: var(--r-lg);
    padding: 14px;

    background:
        radial-gradient(900px 650px at 10% 10%, rgba(239, 71, 111, .10), transparent 60%),
        var(--glass-gradient);
    border: 1px solid rgba(239, 71, 111, .28);
    /* usa a cor do danger */
    box-shadow: var(--shadow-1);
}

.admin-zone {
    border-radius: var(--r-lg);
    padding: 14px;

    background:
        radial-gradient(900px 650px at 10% 10%, rgba(59, 130, 246, .12), transparent 60%),
        var(--glass-gradient);
    border: 1px solid rgba(59, 130, 246, .28);

    box-shadow: var(--shadow-1);
}

/* pills */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .34rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 950;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(255, 255, 255, .05);
    color: rgba(234, 242, 255, .86);
    white-space: nowrap;
}

.pill-mi {
    background: rgba(77, 163, 255, .14);
    border-color: rgba(77, 163, 255, .28);
    color: rgba(234, 242, 255, .92);
    box-shadow: 0 0 0 4px rgba(77, 163, 255, .08);
}

.pill-ma {
    background: rgba(0, 196, 140, .14);
    border-color: rgba(0, 196, 140, .28);
    color: rgba(234, 242, 255, .92);
    box-shadow: 0 0 0 4px rgba(0, 196, 140, .08);
}

/* status pills */
.status-pill {
    border-radius: 999px;
    padding: .34rem .75rem;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .78rem;
    font-weight: 950;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(255, 255, 255, .05);
    color: rgba(234, 242, 255, .86);
    white-space: nowrap;
}

.status-pill .dot {
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, .75);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .14);
}

.status-pill[data-status="1"] {
    background: var(--g-success-bg);
    border-color: rgba(0, 196, 140, .28);
    color: rgba(234, 242, 255, .92);
}

.status-pill[data-status="1"] .dot {
    background: var(--g-accent);
    box-shadow: 0 0 0 4px rgba(0, 196, 140, .14);
}

.status-pill[data-status="2"],
.status-pill[data-status="4"] {
    background: var(--g-danger-bg);
    border-color: rgba(239, 71, 111, .28);
    color: rgba(234, 242, 255, .92);
}

.status-pill[data-status="2"] .dot,
.status-pill[data-status="4"] .dot {
    background: var(--g-danger);
    box-shadow: 0 0 0 4px rgba(239, 71, 111, .14);
}

.status-pill[data-status="3"] {
    background: var(--g-warn-bg);
    border-color: rgba(245, 158, 11, .28);
    color: rgba(234, 242, 255, .92);
}

.status-pill[data-status="3"] .dot {
    background: var(--g-warn);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .14);
}

/* empty state */
.empty-state {
    border: 1px dashed rgba(148, 163, 184, .28);
    border-radius: var(--g-radius);
    padding: 28px 16px;
    background: rgba(255, 255, 255, .04);
    text-align: center;
    height: 230px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination {
    gap: .45rem;
    margin: 0;
}

/* base (a + span) */
.pagination .page-link {
    border-radius: 12px !important;
    padding: .55rem .78rem;
    min-width: 42px;
    text-align: center;

    font-weight: 950;
    letter-spacing: .02em;

    color: var(--g-text-main);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(148, 163, 184, .18);

    box-shadow: none;
    transition: .15s ease;
}

/* hover = glow azul */
.pagination .page-link:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(77, 163, 255, .30);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(77, 163, 255, .10);
    transform: translateY(-1px);
}

/* focus = ring do design system */
.pagination .page-link:focus {
    outline: none;
    box-shadow: var(--ring);
    border-color: rgba(77, 163, 255, .55);
}

/* active = pill brand (mais “presença”) */
.pagination .page-item.active .page-link,
.pagination .page-item.active span.page-link {
    background: var(--bg-main);
    border: 1px solid rgba(148, 163, 184, .18);
    color: #fff;
}

/* disabled */
.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled span.page-link {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(148, 163, 184, .12);
    color: rgba(234, 242, 255, .38);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

/* “…” separator (Three Dots) fica mais discreto */
.pagination .page-item.disabled span.page-link {
    min-width: 44px;
    opacity: .85;
}

/* prev/next com cara de botão */
.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"] {
    min-width: 46px;
    font-weight: 950;
}

/* opcional: deixa os cantos mais “pill” em telas pequenas */
@media (max-width: 600px) {
    .pagination .page-link {
        border-radius: 14px !important;
        padding: .6rem .8rem;
        min-width: 40px;
    }
}

/* =============================
   FLATPICKR — DARK GLASS UI
============================= */

.flatpickr-calendar {
    background: var(--bg-main) !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .55) !important;
    color: rgba(234, 242, 255, .92) !important;
    backdrop-filter: blur(12px) !important;
}

/* Cabeçalho */
.flatpickr-months {
    border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
}

.flatpickr-current-month,
.flatpickr-monthDropdown-months,
.numInputWrapper input.cur-year {
    color: var(--g-text-main) !important;
    font-weight: 900 !important;
}

/* Setas */
.flatpickr-prev-month,
.flatpickr-next-month {
    fill: rgba(234, 242, 255, .75) !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    fill: #4DA3FF !important;
}

/* Dias da semana */
.flatpickr-weekdays {
    background: transparent !important;
}

.flatpickr-weekday {
    color: rgba(234, 242, 255, .55) !important;
    font-weight: 800 !important;
}

/* Dias */
.flatpickr-day {
    color: rgba(234, 242, 255, .85) !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
}

.flatpickr-day:hover {
    background: rgba(77, 163, 255, .18) !important;
    color: #fff !important;
}

/* Hoje */
.flatpickr-day.today {
    border: 1px solid rgba(77, 163, 255, .45) !important;
}

/* Intervalo */
.flatpickr-day.inRange {
    box-shadow: inset 0 0 0 1px rgba(77, 163, 255, .25) !important;
    color: #fff !important;
    background: rgba(59, 130, 246, .18) !important;
    border: 1px solid rgba(59, 130, 246, .50) !important;
}

.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: rgba(27, 61, 115, 0.18) !important;
    border: 1px solid rgba(59, 130, 246, .50) !important;
    color: #fff !important;
}

/* Dias desabilitados */
.flatpickr-day.disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(234, 242, 255, .25) !important;
}

/* Hora (caso use futuramente) */
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    color: rgba(234, 242, 255, .92) !important;
    border-radius: 10px !important;
}

/* Input alternativo */
.flatpickr-input[readonly],
.flatpickr-alt-input {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    color: rgba(234, 242, 255, .92) !important;
    font-weight: 900 !important;
}

/* Remover setinha feia */
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after,
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
    display: none !important;
}

/* ==========================
   SWEETALERT2 — GROONE DARK
========================== */

.swal2-container.swal-groone {
    backdrop-filter: blur(10px);
}

.swal2-container.swal-groone .swal2-popup {
    font-family: var(--font-sans);
    color: var(--g-text-main);
    border-radius: var(--g-radius);
    border: 1px solid var(--border-soft);

    background:
        radial-gradient(900px 650px at 10% 10%, rgba(77, 163, 255, .10), transparent 60%),
        linear-gradient(180deg, rgba(11, 18, 36, .92), rgba(11, 18, 36, .78));

    box-shadow: var(--shadow-3);
}

.swal2-container.swal-groone .swal2-title {
    color: rgba(234, 242, 255, .92);
    font-weight: 950;
    letter-spacing: .02em;
}

.swal2-container.swal-groone .swal2-html-container {
    color: rgba(234, 242, 255, .72);
    font-weight: 800;
}

.swal2-container.swal-groone .swal2-close {
    color: rgba(234, 242, 255, .75);
}

.swal2-container.swal-groone .swal2-close:hover {
    color: #fff;
}

/* Inputs (se usar prompt) */
.swal2-container.swal-groone .swal2-input,
.swal2-container.swal-groone .swal2-textarea,
.swal2-container.swal-groone .swal2-select {
    border-radius: var(--r-md);
    border: 1px solid rgba(148, 163, 184, .20);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-weight: 800;
    box-shadow: none;
}

.swal2-container.swal-groone .swal2-input:focus,
.swal2-container.swal-groone .swal2-textarea:focus,
.swal2-container.swal-groone .swal2-select:focus {
    border-color: rgba(77, 163, 255, .65);
    box-shadow: var(--ring);
}

/* Actions / botões */
.swal2-container.swal-groone .swal2-actions {
    gap: .6rem;
}

.swal2-container.swal-groone .swal2-styled {
    border-radius: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .02em;
    padding: .75rem 1rem !important;
    box-shadow: none !important;
}

/* Confirm (azul) */
.swal2-container.swal-groone .swal2-confirm {
    border: 1px solid rgba(0, 196, 140, .65) !important;
    border-radius: 12px !important;
    background: rgb(0 196 140 / 24%);
    color: #fff !important;
}

.swal2-container.swal-groone .swal2-confirm:hover {
    background: rgba(0, 109, 255, .08) !important;
    border-color: rgba(59, 130, 246, .35) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12) !important;
    transform: translateY(-1px);
}

/* Cancel (glass) */
.swal2-container.swal-groone .swal2-cancel {
    background: rgba(255, 255, 255, .06) !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    color: rgba(234, 242, 255, .92) !important;
}

.swal2-container.swal-groone .swal2-cancel:hover {
    background: rgba(255, 255, 255, .10) !important;
    border-color: rgba(77, 163, 255, .30) !important;
    box-shadow: 0 0 0 4px rgba(77, 163, 255, .10) !important;
    transform: translateY(-1px);
}

/* Ícone (glow por tipo) */
.swal2-container.swal-groone .swal2-icon {
    border-color: rgba(148, 163, 184, .22) !important;
}

.swal2-container.swal-groone .swal2-icon.swal2-success {
    border-color: rgba(0, 196, 140, .55) !important;
    box-shadow: 0 0 0 6px rgba(0, 196, 140, .10);
}

.swal2-container.swal-groone .swal2-icon.swal2-warning {
    border-color: rgba(245, 158, 11, .55) !important;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, .10);
}

.swal2-container.swal-groone .swal2-icon.swal2-error {
    border-color: rgba(239, 71, 111, .55) !important;
    box-shadow: 0 0 0 6px rgba(239, 71, 111, .10);
}

/* Progress bar (toast) */
.swal2-container.swal-groone .swal2-timer-progress-bar {
    background: rgba(77, 163, 255, .55);
}