/* Base Styles */
body {
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* Glassmorphism Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Sidebar Styling */
.sidebar-active {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(244, 63, 94, 0.3);
}
.sidebar-item:hover:not(.sidebar-active) {
    background-color: #fff1f2;
    color: #e11d48;
}

/* Page Logic */
.app-page {
    display: none; /* Default hidden */
    animation: fadeIn 0.4s ease-in-out;
}
.app-page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login Page Specifics */
#login-page.active {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #fff;
}

/* Main Layout Handling */
body:has(#login-page.active) #main-sidebar {
    display: none;
}
body:has(#login-page.active) #main-content-wrapper {
    margin-left: 0;
    padding: 0;
    height: 100vh;
}

/* Input Styles */
.cute-input {
    transition: all 0.3s;
}
.cute-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(244, 63, 94, 0.1), 0 2px 4px -1px rgba(244, 63, 94, 0.06);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Spinner */
.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Print Style */
@media print {
    #main-sidebar, .no-print, header { display: none !important; }
    #main-content-wrapper { margin: 0; padding: 0; }
    #print-area { display: block !important; position: absolute; top:0; left:0; width: 100%; }
}