/* Reset and Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

body {
    background-color: #0B0C15;
    color: #E2E8F0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    overflow-x: hidden;
    isolation: isolate; /* Garante que os elementos de z-index negativo sejam desenhados acima da cor de fundo do body */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Glow effects */
.text-glow {
    text-shadow: 0 0 30px rgba(35, 105, 188, 0.2);
}

.glow-blue {
    filter: drop-shadow(0 0 20px rgba(35, 105, 188, 0.15));
}

/* Background Grid Pattern */
.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 4rem 4rem;
}

/* Aura Background Component Masking */
.aura-background-mask {
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

/* Gradient Borders from Flux Design System */
[style*="--border-gradient"] {
    position: relative;
}

[style*="--border-gradient"]::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: var(--border-radius-before, inherit);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background: var(--border-gradient);
    pointer-events: none;
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 12, 21, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 440px;
    background: rgba(20, 21, 33, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 12px;
    z-index: 101;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 50px 0 rgba(35, 105, 188, 0.05);
}

.lightbox-container.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0C15;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(35, 105, 188, 0.5);
}

/* Animated Ambient Glow Aura (Pure CSS Liquid Gradient) */
.aurora-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 80rem;
    height: 700px;
    z-index: -1; /* Posiciona logo atrás do texto e grid, mas acima do fundo do body */
    overflow: hidden;
    pointer-events: none;
    opacity: 0.85; /* Maior opacidade para ficar bem visível */
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); /* Leve redução de desfoque para concentrar as cores */
    mix-blend-mode: screen;
    opacity: 0.9;
}

.aurora-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(35, 105, 188, 0.6) 0%, transparent 70%);
    top: -200px;
    left: 5%;
    animation: moveBlob1 12s infinite alternate ease-in-out;
}

.aurora-blob-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 70%);
    top: 0px;
    right: -5%;
    animation: moveBlob2 15s infinite alternate ease-in-out;
}

.aurora-blob-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(64, 189, 106, 0.45) 0%, transparent 70%);
    top: 150px;
    left: 30%;
    animation: moveBlob3 14s infinite alternate ease-in-out;
}

@keyframes moveBlob1 {
    0% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.6;
    }
    50% { 
        transform: translate(100px, 120px) scale(1.15); 
        opacity: 0.95; /* Cintilação de maior brilho */
    }
    100% { 
        transform: translate(-50px, 60px) scale(0.9); 
        opacity: 0.5; /* Cintilação de menor brilho */
    }
}

@keyframes moveBlob2 {
    0% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.5;
    }
    50% { 
        transform: translate(-120px, -70px) scale(0.85); 
        opacity: 0.85;
    }
    100% { 
        transform: translate(70px, 90px) scale(1.1); 
        opacity: 0.4;
    }
}

@keyframes moveBlob3 {
    0% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.7;
    }
    50% { 
        transform: translate(-60px, 80px) scale(1.2); 
        opacity: 0.45;
    }
    100% { 
        transform: translate(90px, -40px) scale(0.95); 
        opacity: 0.9;
    }
}

/* Dashboard Panel Styles */
.panel-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 80px);
}

@media (max-width: 768px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar navigation */
.sidebar {
    background: rgba(20, 21, 33, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    box-sizing: border-box;
}

.sidebar-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: #94A3B8;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.sidebar-menu-btn:hover, .sidebar-menu-btn.active {
    color: #FFF;
    background: rgba(35, 105, 188, 0.08);
    box-shadow: inset 0 0 10px rgba(35, 105, 188, 0.02);
}

.sidebar-menu-btn.active {
    border-left: 3px solid #2369BC;
}

/* Bento Grid Cards */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bento-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.bento-card:hover {
    border-color: rgba(35, 105, 188, 0.2);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Table styling */
.table-container {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
    min-width: 600px;
}

.glass-table th {
    padding: 16px 24px;
    font-weight: 600;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.glass-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #E2E8F0;
    vertical-align: middle;
}

.glass-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Badge values */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.1);
    color: #FACC15;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s ease;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: #2369BC;
    background: rgba(35, 105, 188, 0.02);
}

/* General Layout helpers */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}



/* CRUD Form styling */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.875rem;
    color: #FFF;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #2369BC;
}

select.form-input option {
    background-color: #1e1b4b; /* Dark indigo background */
    color: #FFFFFF;
}

/* Custom Alert Dialog Z-Index Overrides */
#custom-alert-overlay {
    z-index: 9999 !important;
}
#custom-alert-modal {
    z-index: 10000 !important;
    max-width: 380px;
}


