/* cfp.css - Professional Admin Overrides */

:root {
    --sidebar-width: 280px;
    --accent-color: #3b82f6;
    --slate-900: #0f172a;
}

/* Custom Scrollbar for the Main Stage */
#app-stage::-webkit-scrollbar {
    width: 6px;
}
#app-stage::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* Glassmorphism for Header */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Mobile Sidebar Toggle Logic */
@media (max-width: 1024px) {
    .sidebar-closed aside {
        transform: translateX(-100%);
    }
    .sidebar-open aside {
        transform: translateX(0);
    }
    .sidebar-open .sidebar-overlay {
        display: block;
    }
}

aside {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
}

/* Subtle Active State for Nav */
.nav-active {
    background: rgba(59, 130, 246, 0.1) !important;
    color: white !important;
    border-left: 3px solid var(--accent-color);
}

/* Force the overlay to ignore parent padding/margins */
#crud-form-overlay, #ModalContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin-top: 0 !important; /* Forces the gap to vanish */
    z-index: 99999;
    display: none; 
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.6); /* slate-900/60 */
    backdrop-filter: blur(4px);
}

/* The actual white form box */
#crud-form-overlay > .form-panel {
    background: white;
    width: 100%;
    max-width: 500px;         /* Professional width for forms */
    max-height: 90vh;         /* Don't let it taller than the screen */
    border-radius: 2rem;      /* Match your OS aesthetic */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;         /* Keeps the rounded corners clean */
    display: flex;
    flex-direction: column;
}

/* Animation for a "Pop-up" feel instead of "Slide-in" */
.animate-zoom-in {
    animation: zoomIn 0.2s ease-out;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}