/* Base & Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.splash-screen img {
    width: 100px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Login Container - Modern Gradient & Glassmorphism */
.login-container {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
}

.login-container.active {
    display: flex;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-pequena {
    width: 90px;
    height: auto;
    margin-bottom: 1rem;
}

/* Sidebar - Sleek & Floating style impact */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: #ffffff !important;
    border-right: 1px solid #dee2e6;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Scrollbar Customizada Sidebar */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}


.sidebar-header {
    height: 70px;
    border-bottom: 1px solid #dee2e6;
}

.logo-sidebar {
    width: 35px;
    border-radius: 8px;
}

.sidebar .nav-link {
    padding: 0.85rem 1.25rem;
    margin: 0.2rem 0.75rem;
    border-radius: 0.75rem;
    color: #495057 !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar .nav-link i {
    font-size: 1.1rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd !important;
}

.sidebar .nav-link.text-danger:hover {
    background: rgba(220, 53, 69, 0.15);
}

/* Main Content Area */
.content {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
    background: #f4f7f6;
    transition: margin-left 0.3s ease;
}

.main-header {
    border: none;
    background: #fff;
}

/* Forms & Inputs */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #adb5bd;
    z-index: 10;
}

/* Buttons */
.btn-primary {
    padding: 0.75rem;
    border-radius: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

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

/* Overlay do sidebar (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1039;
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
        z-index: 1040;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
    }
}