/* Main App Styles - WebCis System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Tailwind Base config in script tag on page for now, but these complement it */
body {
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-glass {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
}

/* Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: #0f172a;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.blob-orange {
    background: #f97316;
    top: -100px;
    right: -100px;
}

.blob-purple {
    background: #a855f7;
    bottom: -100px;
    left: -100px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-down {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Toast Container */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    /* Allow clicking through container */
}

/* Individual Toast */
.toast {
    pointer-events: auto;
    min-width: 300px;
    padding: 1rem;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid transparent;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #10B981;
}

.toast-error {
    border-left-color: #EF4444;
}

.toast-info {
    border-left-color: #3B82F6;
}

.toast-warning {
    border-left-color: #F59E0B;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content */
.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

/* Glassmorphism Premium */
.glass-premium {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

.neon-border {
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Background Logic */
#login-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #020617;
}

/* Scrollbar Dark Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
    border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Custom Selection */
::selection {
    background: rgba(59, 130, 246, 0.4);
    color: #fff;
}

/* Floating Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Sidebar Hover Overrides - No Zoom/Rotate */
aside nav a:hover {
    transform: none !important;
}

aside nav a:hover i {
    transform: none !important;
}

/* Base Blobs - Soft Neon Background */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
}

.blob {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.04;
    /* Ultra suave conforme pedido */
    animation: blob-float 35s infinite alternate;
}

.blob-purple {
    background: #a855f7;
    top: -15%;
    right: -10%;
}

.blob-orange {
    background: #f97316;
    bottom: -15%;
    left: -10%;
}

@keyframes blob-float {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Glassmorphism Premium */
.card-glass {
    background: rgba(30, 41, 59, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Light Theme Overrides */
.light-theme,
.light-theme body,
.light-theme main {
    background: #f8fafc !important;
    color: #334155 !important;
}

.light-theme .bg-blobs {
    display: none;
}

.light-theme .bg-dark-900,
.light-theme .bg-dark-950,
.light-theme .bg-dark-800 {
    background: #ffffff !important;
}

.light-theme .border-dark-700,
.light-theme .border-dark-600 {
    border-color: #cbd5e1 !important;
}

.light-theme .card-glass {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #e2e8f0 !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
}

.light-theme h1,
.light-theme h2,
.light-theme h3,
.light-theme h4,
.light-theme .text-white {
    color: #0f172a !important;
}

.light-theme .text-slate-400,
.light-theme .text-slate-500,
.light-theme .text-slate-300 {
    color: #475569 !important;
}

.light-theme input,
.light-theme select,
.light-theme textarea {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.light-theme .sidebar {
    background: #1e293b !important;
}