:root {
    --bg-color-admin: #0a0a0a;
    --text-color-admin: #ffffff;
    --bg-color-default: #1a120b;
    --text-color-default: #FEF8E6;
}

html[data-theme="admin"] {
    --current-bg: var(--bg-color-admin);
    --current-text: var(--text-color-admin);
    color-scheme: dark !important;
}

html[data-theme="default"] {
    --current-bg: var(--bg-color-default);
    --current-text: var(--text-color-default);
    color-scheme: dark light !important;
}

html[data-theme="index"] {
    --current-bg: var(--bg-color-admin);
    --current-text: var(--text-color-admin);
    color-scheme: dark !important;
}

/* FOUC flash shield e Fade-in no carregamento inicial */
html {
    background-color: var(--current-bg) !important;
    color: var(--current-text);
    opacity: 0;
}

html.fonts-loaded {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

body {
    background-color: var(--current-bg) !important;
    color: var(--current-text);
}

::view-transition,
::view-transition-group(root),
::view-transition-image-pair(root),
::view-transition-old(root),
::view-transition-new(root) {
    background-color: var(--current-bg) !important;
}

html[data-theme="admin"] .admin-layout, 
html[data-theme="admin"] .admin-main, 
html[data-theme="admin"] .card, 
html[data-theme="admin"] .shortcut-card, 
html[data-theme="admin"] .quick-filters-bar, 
html[data-theme="admin"] .table, 
html[data-theme="admin"] .form-control, 
html[data-theme="admin"] aside, 
html[data-theme="admin"] nav, 
html[data-theme="admin"] .modal-content {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.05) !important;
}

/* Utilitários Globais */
p, li, span, a, div, figcaption {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}
.flex-center-gap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon-box {
    background: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    font-size: 1rem;
}

.margin-right-1rem {
    margin-right: 1rem;
}

.text-secondary-color {
    color: var(--text-secondary);
}

.texto-tremulo {
    display: inline-block;
}

.texto-tremulo span {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

.texto-tremulo span:nth-child(1) {
    animation-delay: 0s;
}
.texto-tremulo span:nth-child(2) {
    animation-delay: 0.1s;
}
.texto-tremulo span:nth-child(3) {
    animation-delay: 0.2s;
}
.texto-tremulo span:nth-child(4) {
    animation-delay: 0.3s;
}
.texto-tremulo span:nth-child(5) {
    animation-delay: 0.4s;
}
.texto-tremulo span:nth-child(6) {
    animation-delay: 0.5s;
}
.texto-tremulo span:nth-child(7) {
    animation-delay: 0.6s;
}
.texto-tremulo span:nth-child(8) {
    animation-delay: 0.7s;
}
.texto-tremulo span:nth-child(9) {
    animation-delay: 0.8s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

