/* ==========================================================================
   Treeal Corp Design System & Custom Styles (Animated & Leve)
   ========================================================================== */

@keyframes floatOrb {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-float-slow {
    animation: floatOrb 8s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #0b0c10;
    color: #e2e8f0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.glass-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 27, 38, 0.75) 0%, rgba(18, 19, 26, 0.9) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Removemos a "bola" do cursor e deixamos apenas um hover translúcido elegante e arredondado */
.glass-card::before {
    display: none;
}

.glass-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.2);
    transform: translateY(-3px);
}

.sidebar-item-active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.25) 0%, rgba(217, 70, 239, 0.1) 100%);
    border-left: 3px solid #a855f7;
}

/* Formulários e Inputs */
input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    background-color: rgba(0, 0, 0, 0.7);
}

ul.errorlist {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    list-style: none;
    padding: 0;
}

/* ==========================================================================
   Regras de Impressão e Exportação em PDF (@media print)
   ========================================================================== */
@media print {
    body {
        background-color: #ffffff !important;
        color: #0f172a !important;
        overflow: visible !important;
        background-image: none !important;
    }
    aside, header, footer, button, a, .no-print {
        display: none !important;
    }
    .flex-1 {
        overflow: visible !important;
        display: block !important;
    }
    main {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    .glass-card, div {
        background: #ffffff !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        transform: none !important;
    }
    h1, h2, h3, p, span, strong, th, td {
        color: #0f172a !important;
    }
    textarea {
        background: #f8fafc !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1 !important;
    }
    table {
        page-break-inside: auto;
    }
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}
