/* ====== IMPORTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Sora:wght@100..800&display=swap');

/* ====== ROOT VARIÁVEIS ====== */
:root {
    --background: #000;
    --primary: #cc33ff;
    --primary-dark: #380349;
    --primary-light: #cc33ff7a;
    --secondary: #4e0d64;
    --toast-success: linear-gradient(135deg, rgba(204, 51, 255, 0.96), rgba(118, 23, 153, 0.96));
    --toast-info: linear-gradient(135deg, rgba(110, 92, 255, 0.96), rgba(75, 52, 194, 0.96));
    --toast-warning: linear-gradient(135deg, rgba(255, 170, 43, 0.96), rgba(161, 79, 14, 0.96));
    --toast-error: linear-gradient(135deg, rgba(218, 55, 111, 0.96), rgba(119, 18, 61, 0.96));
    --surface: rgba(13, 7, 19, 0.88);
    --surface-soft: rgba(255, 255, 255, 0.04);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text: #fff;
    --input-bg: #1a1a1a;
    --input-border: #a774ff;
    --error: #ff4c4c;
    --radius: 12px;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.4);

    --font-base: "Sora", sans-serif;
    --font-title: "Archivo Black", sans-serif;

    --transition: all 0.3s ease-in-out;
}

a:hover {
    color: var(--primary);
}




/* ====== ANIMAÇÃO GRADIENTE ====== */
.gradient {
    background: linear-gradient(229deg, #020002, #3d0a4e, #18011f, #3d0a4e);
    background-size: 240% 240%;
    animation: gradient-animation 10s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.page-content {
    padding: 0;
}

.vertical-menu {
    top: 5px;
}

.sidebar-enable img {
    display: none;
}

.vertical-collpsed .vertical-menu #sidebar-menu>ul>li>a {
    padding: 10px 20px;
    min-height: 32px;
    -webkit-transition: none;
    transition: none;

}

.vertical-collpsed .vertical-menu #sidebar-menu>ul>li:hover>a {
    color: white;
    background-color: rgba(255,255,255,.18);
}

.sidebar-enable .vertical-menu {
    animation: fadeIn 1.2s ease-in-out;
}

/* Quando o menu estiver colapsado (vertical-collpsed), ocultar o nome do usuário */
.vertical-collpsed .user-footer .username {
    display: none;
}

/* Opcional: centralizar o botão de logout no modo colapsado */
.vertical-collpsed .user-footer {
    justify-content: center;
}

/* E ajustar o botão no modo colapsado */
.vertical-collpsed .user-footer .logout-btn {
    font-size: 22px;
    padding: 8px;
}

table span.badge {
    color: white !important;
}


.modal-footer {
    background-color: transparent !important;
}

#toast-container {
    z-index: 10000 !important;
}

#toast-container > .toast,
.custom-toast,
#toast-bottomFullWidth .toast,
.toast-bottom-full-width .toast,
.swal2-popup.swal2-toast {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(14px);
    font-family: var(--font-base) !important;
}

#toast-container > .toast,
.custom-toast,
.swal2-popup.swal2-toast {
    padding: 14px 18px !important;
}

#toast-container > .toast {
    opacity: 1 !important;
    background-image: none !important;
}

#toast-container > .toast:hover {
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34) !important;
}

#toast-container > .toast-success,
.custom-toast.success,
#toast-bottomFullWidth .toast-success,
.toast-bottom-full-width .toast-success,
.swal2-popup.swal2-toast.hplay-toast-success {
    background: var(--toast-success) !important;
}

#toast-container > .toast-info,
.custom-toast.info,
#toast-bottomFullWidth .toast-info,
.toast-bottom-full-width .toast-info,
.swal2-popup.swal2-toast.hplay-toast-info {
    background: var(--toast-info) !important;
}

#toast-container > .toast-warning,
.custom-toast.warning,
#toast-bottomFullWidth .toast-warning,
.toast-bottom-full-width .toast-warning,
.swal2-popup.swal2-toast.hplay-toast-warning {
    background: var(--toast-warning) !important;
}

#toast-container > .toast-error,
.custom-toast.error,
#toast-bottomFullWidth .toast-error,
.toast-bottom-full-width .toast-error,
.swal2-popup.swal2-toast.hplay-toast-error {
    background: var(--toast-error) !important;
}

#toast-container > .toast-success,
#toast-container > .toast-info,
#toast-container > .toast-warning,
#toast-container > .toast-error {
    background-repeat: no-repeat !important;
}

#toast-container > .toast:before {
    display: none !important;
}

.toast-title,
.custom-toast strong,
.swal2-popup.swal2-toast .swal2-title {
    font-family: var(--font-title) !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em;
}

.toast-message,
.custom-toast,
.swal2-popup.swal2-toast .swal2-html-container {
    font-size: 0.92rem !important;
    line-height: 1.5;
}

#toast-container > .toast .toast-progress {
    height: 3px !important;
    background: rgba(255, 255, 255, 0.34) !important;
    opacity: 1 !important;
}

.custom-toast {
    display: none;
    min-width: 280px;
    max-width: min(92vw, 540px);
    text-align: center;
    white-space: normal;
}

#custom-toast-container {
    position: fixed !important;
    left: 50% !important;
    bottom: 20px !important;
    transform: translateX(-50%) !important;
    z-index: 10000 !important;
    width: min(92vw, 540px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

#custom-toast-container .custom-toast {
    pointer-events: auto;
}

#toast-bottomFullWidth,
.toast-bottom-full-width {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 10000;
    width: min(92vw, 540px);
}

#toast-bottomFullWidth .toast,
.toast-bottom-full-width .toast {
    width: 100%;
    padding: 14px 18px !important;
    margin: 0 auto;
}

.swal2-popup.swal2-toast {
    padding: 14px 16px !important;
}

.swal2-popup.swal2-toast .swal2-title,
.swal2-popup.swal2-toast .swal2-html-container {
    color: #fff !important;
}

.swal2-popup.swal2-toast .swal2-success-ring,
.swal2-popup.swal2-toast .swal2-success-line-tip,
.swal2-popup.swal2-toast .swal2-success-line-long,
.swal2-popup.swal2-toast .swal2-icon.swal2-success {
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    #toast-container {
        width: min(92vw, 420px);
        left: 50% !important;
        transform: translateX(-50%);
        right: auto !important;
    }

    #toast-container > .toast,
    .custom-toast,
    #toast-bottomFullWidth .toast,
    .toast-bottom-full-width .toast,
    .swal2-popup.swal2-toast {
        border-radius: 14px !important;
        padding: 12px 14px !important;
    }

    .toast-message,
    .custom-toast,
    .swal2-popup.swal2-toast .swal2-html-container {
        font-size: 0.88rem !important;
    }
}

.programme-info select {
    display: block;
}

/* ====== BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text);
    font-family: var(--font-base);
    background:
        radial-gradient(circle at top left, rgba(204, 51, 255, 0.14), transparent 24%),
        radial-gradient(circle at bottom right, rgba(204, 51, 255, 0.08), transparent 30%),
        #050208;
}

h1,
h2,
h3,
h4,
.page-title,
.header-title,
.card-title {
    font-family: var(--font-title);
    letter-spacing: 0.02em;
}

.main-content,
.page-content {
    background: transparent;
}

.page-content-wrapper,
.container-fluid {
    position: relative;
}

.card,
.modal-content,
.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.card {
    border-radius: 18px;
    overflow: hidden;
}

.card .card-body {
    position: relative;
}

.btn-primary,
.btn-success,
.badge-info,
.bg-success {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0.78rem 1.15rem;
    font-family: var(--font-base);
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.btn-sm,
.btn-xs {
    min-height: 36px;
    padding: 0.52rem 0.82rem;
    font-size: 0.84rem;
}

.btn-lg {
    min-height: 52px;
    padding: 0.95rem 1.4rem;
}

.btn-secondary,
.btn-dark,
.btn-default {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.btn-danger {
    background: linear-gradient(135deg, #cf375f, #aa1f46) !important;
    border-color: #cf375f !important;
}

.btn-warning {
    background: linear-gradient(135deg, #ffb02e, #ff8a00) !important;
    border-color: #ffb02e !important;
    color: #18110a !important;
}

.btn-info {
    background: linear-gradient(135deg, #5f7cff, #4760d9) !important;
    border-color: #5f7cff !important;
    color: #fff !important;
}

.btn-outline-info,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-secondary,
.btn-outline-light {
    background: rgba(255, 255, 255, 0.03) !important;
    border-width: 1px !important;
}

.btn-primary:hover,
.btn-success:hover {
    background-color: #b51fe8 !important;
    border-color: #b51fe8 !important;
}

.btn,
.form-control,
.custom-select,
.input-group-text,
.page-link {
    border-radius: 12px !important;
}

.form-control,
.custom-select,
.input-group-text,
textarea,
select {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(204, 51, 255, 0.14) !important;
    color: var(--text) !important;
}

.form-control:focus,
.custom-select:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 0.18rem rgba(204, 51, 255, 0.18) !important;
    border-color: rgba(204, 51, 255, 0.42) !important;
}

.custom-select option,
select option,
.form-control option {
    background-color: #1f2433 !important;
    color: #ffffff !important;
}

.custom-select optgroup,
select optgroup {
    background-color: #161b26 !important;
    color: #ffffff !important;
}

.table thead th,
table.dataTable thead th {
    font-family: var(--font-title);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
}

.table,
.table td,
.table th,
.dataTables_wrapper,
.dataTables_info,
.dataTables_paginate {
    color: var(--text) !important;
}

.custom-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(204, 51, 255, 0.06));
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    pointer-events: none;
}

.toolbar-input,
.search-wrapper input,
input[type="search"] {
    width: 100%;
    min-height: 44px;
    padding: 0 14px 0 42px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(204, 51, 255, 0.14) !important;
    border-radius: 14px !important;
    color: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.toolbar-input::placeholder,
.search-wrapper input::placeholder,
input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.toolbar-input:focus,
.search-wrapper input:focus,
input[type="search"]:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(204, 51, 255, 0.4) !important;
    box-shadow: 0 0 0 0.18rem rgba(204, 51, 255, 0.16) !important;
    outline: none;
}

.table-responsive {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
}

.table td,
.table th,
table.dataTable tbody td,
table.dataTable thead th {
    padding: 14px 16px !important;
    vertical-align: middle !important;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
}

table.dataTable thead th,
.table thead th {
    background: linear-gradient(90deg, rgba(204, 51, 255, 0.24), rgba(204, 51, 255, 0.08)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

table.dataTable tbody tr,
.table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

table.dataTable tbody tr:hover,
.table tbody tr:hover {
    background: rgba(204, 51, 255, 0.05) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 14px;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.78) !important;
    font-family: var(--font-base);
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(204, 51, 255, 0.14) !important;
    color: #fff !important;
    border-radius: 12px !important;
    min-height: 42px;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 0 14px !important;
    margin-left: 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.pagination .page-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:focus,
.pagination .page-item:hover,
.pagination .page-item:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button .page-link,
.pagination .page-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0.5rem 0.8rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 12px !important;
    margin-left: 0 !important;
    position: relative;
    z-index: 1;
}

.dataTables_wrapper .dataTables_paginate .paginate_button .page-link::before,
.dataTables_wrapper .dataTables_paginate .paginate_button .page-link::after,
.pagination .page-link::before,
.pagination .page-link::after {
    display: none !important;
    content: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover .page-link,
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), #9c20ca) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(204, 51, 255, 0.22);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover .page-link,
.pagination .page-link:hover {
    background: rgba(204, 51, 255, 0.12) !important;
    border-color: rgba(204, 51, 255, 0.28) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled .page-link,
.pagination .page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.03) !important;
}

.pagination {
    gap: 8px;
    flex-wrap: wrap;
}

.dataTables_wrapper .dataTables_paginate ul.pagination {
    gap: 8px;
}

.pagination .page-item + .page-item,
.dataTables_wrapper .dataTables_paginate .paginate_button + .paginate_button {
    margin-left: 0 !important;
}

.pagination-clean {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn-pag,
.pagination-rounded .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transition: all 0.2s ease;
}

.btn-pag:hover:not(.disabled),
.pagination-rounded .page-link:hover {
    background: rgba(204, 51, 255, 0.12);
    border-color: rgba(204, 51, 255, 0.28);
    color: #fff;
    text-decoration: none;
}

.btn-pag.active,
.pagination-rounded .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), #9c20ca) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 12px 24px rgba(204, 51, 255, 0.2);
    color: #fff !important;
}

.btn-pag.disabled,
.pagination-rounded .page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
}

.nav-pills {
    gap: 10px;
}

.nav-pills .nav-link {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-base);
    font-weight: 600;
    min-height: 46px;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: linear-gradient(135deg, rgba(204, 51, 255, 0.92), rgba(151, 23, 194, 0.92)) !important;
    border-color: rgba(204, 51, 255, 0.92) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(204, 51, 255, 0.22);
}

.modal-dialog {
    margin: 1.4rem auto;
}

.modal-content {
    border-radius: 22px;
    overflow: hidden;
}

.modal-header,
.modal-footer,
.modal-body {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}

.modal-header {
    padding-top: 1.2rem;
    padding-bottom: 1rem;
}

.modal-footer {
    gap: 10px;
    flex-wrap: wrap;
    /* O Materialize CSS (carregado globalmente no head.php) define .modal-footer
       com height:56px fixo. Sem este override, rodapés com mais de 1 linha de
       botões (ex: modais empilhados no celular) ficam cortados sem scroll. */
    height: auto !important;
}

.modal-footer .btn,
.modal-footer form {
    flex: 1 1 auto;
}

.modal-footer form .btn {
    width: 100%;
}

.close,
button.close {
    color: #fff !important;
    opacity: 0.8;
    text-shadow: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.table-bordered td,
.table-bordered th,
.table-bordered {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 991px) {
    .page-content {
        padding-left: 0;
        padding-right: 0;
    }

    .card {
        border-radius: 16px;
    }

    .table td,
    .table th,
    table.dataTable tbody td,
    table.dataTable thead th {
        padding: 12px 12px !important;
        font-size: 0.92rem;
    }

    .nav-pills {
        flex-wrap: wrap;
    }

    .nav-pills .nav-item {
        width: 100%;
    }

    .nav-pills .nav-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .btn,
    .btn-block,
    a.btn {
        width: 100%;
    }

    .btn-group,
    .input-group,
    .dataTables_wrapper .row {
        width: 100%;
    }

    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-group > .btn,
    .btn-group > a.btn {
        flex: 1 1 calc(50% - 8px);
        width: auto;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left !important;
        width: 100%;
        margin-top: 10px;
    }

    .dataTables_wrapper .dataTables_filter input {
        margin-left: 0 !important;
        margin-top: 8px;
        width: 100% !important;
    }

    .custom-toolbar {
        padding: 12px;
        border-radius: 14px;
    }

    .search-wrapper {
        max-width: none;
    }

    .dataTables_wrapper .dataTables_length label,
    .dataTables_wrapper .dataTables_filter label {
        width: 100%;
        align-items: flex-start;
    }

    .dataTables_wrapper .dataTables_length select,
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
    }

    .pagination-clean {
        justify-content: flex-start;
    }

    .table-responsive {
        border-radius: 14px;
    }

    .modal-dialog {
        max-width: calc(100vw - 20px);
        margin: 10px auto;
    }

    .modal-content {
        border-radius: 18px;
    }

    .modal-header,
    .modal-footer,
    .modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-footer .btn,
    .modal-footer form,
    .modal-footer form .btn {
        width: 100%;
    }

    .page-title-box,
    .custom-toolbar,
    .card-body {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .btn {
        min-height: 42px;
        padding: 0.72rem 0.9rem;
        font-size: 0.92rem;
    }

    .btn-group > .btn,
    .btn-group > a.btn {
        flex: 1 1 100%;
    }

    .table td,
    .table th,
    table.dataTable tbody td,
    table.dataTable thead th {
        padding: 10px 10px !important;
        font-size: 0.86rem;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button .page-link,
    .pagination .page-link {
        min-width: 36px;
        min-height: 36px;
        padding: 0.4rem 0.6rem !important;
    }

    .btn-pag,
    .pagination-rounded .page-link {
        min-width: 36px;
        min-height: 36px;
        padding: 0.4rem 0.65rem;
    }
}

.modal {
    background-color: transparent;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    /* Materialize CSS (global no head.php) define .modal com max-height:70%
       e width:55% — sem este override o modal Bootstrap fica espremido. */
    max-height: 100vh !important;
}

.modal-backdrop {
    z-index: -1;
}

img {
    display: block;
    max-width: 100%;
}

/* ====== LOGIN CONTAINER ====== */
.container.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    backdrop-filter: blur(6px);
    padding: 2rem;
}

/* ====== LOGO ====== */
.logoStart img {
    width: 120px;
    height: auto;
    animation: fadeIn 1.2s ease-in-out;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== CARD DE LOGIN ====== */
.auth-container {
    background-color: rgba(30, 0, 35, 0.6);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 2rem 3rem;
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 100%;
    animation: fadeInSlow 1.8s ease-in-out;
}

@keyframes fadeInSlow {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-title h1 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* ====== FORM ====== */
.loginForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loginForm input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.loginForm input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-light);
}

.loginForm button {
    background-color: var(--primary);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.loginForm button:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.toggle-sidebar-btn {
    position: fixed;
    z-index: 9999;
    padding: 5px;
    font-size: 1rem;
    top: 10px;
    left: 10px;
    text-align: center;
    background-color: #0000005b;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 1024px) {


    .toggle-sidebar-btn {
        position: relative;
        z-index: 9999;
        background-color: #1a1a1a;
        padding: 3px;
        font-size: 1.5rem;
        top: 0;
        left: 0;
        text-align: center;
    }

    .auth-container {
        width: 90%;
        padding: 1.5rem;
    }

    .login-title h1 {
        font-size: 1.5rem;
    }

    .loginForm button {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logoStart img {
        width: 90px;
    }

    .auth-container {
        padding: 1.2rem;
    }

    .loginForm input {
        font-size: 0.95rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   HPLAY — Stat Cards do Dashboard (funciona em dark e light)
   Classes próprias para os cards de métricas do home.php
═══════════════════════════════════════════════════════════════ */

/* Card padrão de métrica — gradiente da marca */
.hplay-stat-card {
    background: linear-gradient(135deg, #cc33ff 0%, #9900cc 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 22px rgba(204,51,255,.35) !important;
}

/* Card de destaque (Vendas da semana) — rosa/magenta distinto */
.hplay-stat-highlight {
    background: linear-gradient(135deg, #ff3385 0%, #cc0055 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 22px rgba(255,51,133,.30) !important;
}

/* Card Online — variação mais escura/profunda */
.hplay-stat-online {
    background: linear-gradient(135deg, #7700aa 0%, #cc33ff 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 22px rgba(119,0,170,.30) !important;
}

/* Todos os textos dentro dos stat cards = branco */
.hplay-stat-card *,
.hplay-stat-highlight *,
.hplay-stat-online * {
    color: #fff !important;
}

/* Botões flutuantes de ícone dentro dos stat cards */
.hplay-stat-card .btn-floating,
.hplay-stat-highlight .btn-floating,
.hplay-stat-online .btn-floating,
.hplay-stat-card .btn-stat-icon,
.hplay-stat-highlight .btn-stat-icon,
.hplay-stat-online .btn-stat-icon {
    background: rgba(255,255,255,.20) !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Botão de refresh e links internos */
.hplay-stat-online .btn-refresh-online,
.hplay-stat-card a.btn,
.hplay-stat-highlight a.btn,
.hplay-stat-online a.btn {
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    color: #fff !important;
}

.hplay-stat-card a.btn:hover,
.hplay-stat-highlight a.btn:hover,
.hplay-stat-online a.btn:hover {
    background: rgba(255,255,255,.30) !important;
}

/* Subtítulos (p) dentro dos cards */
.hplay-stat-card p,
.hplay-stat-highlight p,
.hplay-stat-online p {
    color: rgba(255,255,255,.80) !important;
}

/* Número grande */
.hplay-stat-card .font-size-40,
.hplay-stat-highlight .font-size-40,
.hplay-stat-online .font-size-40 {
    color: #fff !important;
    font-family: 'Archivo Black', sans-serif !important;
}