/* 
 * FluxyOS Premium Dashboard Styles
 */

:root {
    --fluxy-orange: #E85D19;
    --fluxy-orange-hover: #D44400;
    --sidebar-bg: #FFFFFF;
}

main > header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 30;
}

/* Smooth Fade-In for New Data */
.animate-in {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.fade-in {
    animation-name: fadeIn;
}

.zoom-in-95 {
    animation-name: zoomIn95;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Glassmorphism for Modal Background */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* AI Gradient Border (Premium Effect) */
.ai-gradient-border {
    position: relative;
    border-radius: 0.75rem;
    background: white;
    padding: 1px;
    z-index: 0;
    overflow: hidden;
}

.ai-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #EA580C, #F97316, #FB923C, #EA580C);
    background-size: 400% 400%;
    animation: gradientMove 8s ease infinite;
    z-index: -1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* App Sidebar Design System */
#sidebar.app-sidebar-light {
    width: 220px !important;
    background: #FFFFFF !important;
    color: #1E2F4A !important;
    border-color: #E2E8F0 !important;
    border-top-left-radius: 8px;
    box-shadow: none;
}

#sidebar.app-sidebar-light #sidebar-header,
#sidebar.app-sidebar-light #profile-area {
    height: 64px;
    min-height: 64px;
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

#sidebar.app-sidebar-light #sidebar-header {
    align-items: center;
    padding: 0 16px !important;
}

#sidebar.app-sidebar-light #logo-container {
    gap: 12px;
}

#sidebar.app-sidebar-light #logo-icon {
    width: 36px;
    height: 36px;
    color: #F3F6FA !important;
}

#sidebar.app-sidebar-light .logo-text {
    color: #1E2F4A !important;
    font-size: 18px !important;
    line-height: 1.25;
    letter-spacing: 0;
}

#sidebar.app-sidebar-light #nav-container {
    padding: 16px 14px 20px !important;
    gap: 2px;
    align-items: stretch !important;
}

#sidebar.app-sidebar-light .section-label {
    color: #1E2F4A !important;
    font-size: 13px !important;
    line-height: 1.2;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    padding: 0 4px !important;
    margin: 20px 0 8px !important;
}

#sidebar.app-sidebar-light .section-label:first-child {
    margin-top: 0 !important;
}

#sidebar.app-sidebar-light .nav-item {
    min-height: 32px;
    gap: 12px !important;
    padding: 6px 8px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #1E2F4A !important;
    background: transparent !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
    font: inherit;
    text-align: left;
    width: 100%;
}

#sidebar.app-sidebar-light .nav-item:hover {
    background: #F8FAFC !important;
    color: #13233A !important;
    transform: none;
}

#sidebar.app-sidebar-light .sidebar-icon {
    width: 16px;
    height: 16px;
    color: #64748B;
    flex-shrink: 0;
}

#sidebar.app-sidebar-light .sidebar-text {
    color: inherit;
    font-size: 14px !important;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0;
}

#sidebar.app-sidebar-light .dashboard-active {
    color: #EA580C !important;
    background: transparent !important;
}

#sidebar.app-sidebar-light .dashboard-active .sidebar-icon {
    color: #EA580C !important;
}

#sidebar.app-sidebar-light .nav-item-action {
    cursor: pointer;
}

#sidebar.app-sidebar-light .nav-item-action:focus-visible {
    outline: 2px solid rgba(234, 88, 12, 0.28);
    outline-offset: 2px;
}

#sidebar.app-sidebar-light .nav-item-disabled,
#sidebar.app-sidebar-light .nav-item-disabled:hover,
#sidebar.app-sidebar-light .nav-item-disabled:disabled {
    color: #94A3B8 !important;
    background: transparent !important;
    cursor: not-allowed;
    transform: none !important;
    opacity: 1;
}

#sidebar.app-sidebar-light .nav-item-disabled .sidebar-icon {
    color: #CBD5E1 !important;
}

#sidebar.app-sidebar-light .nav-item-disabled .sidebar-text {
    color: #94A3B8 !important;
}

#sidebar.app-sidebar-light .sidebar-soon-badge {
    margin-left: auto;
    padding: 3px 6px;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    background: #F8FAFC;
    color: #94A3B8;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

#sidebar.app-sidebar-light #profile-area {
    height: auto;
    min-height: 0;
    padding: 14px !important;
}

#sidebar.app-sidebar-light #sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-color: #E2E8F0 !important;
}

#sidebar.app-sidebar-light #sidebar-user-name {
    color: #1E2F4A !important;
    font-size: 14px !important;
}

#sidebar.app-sidebar-light #logout-btn {
    color: #64748B !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    justify-content: flex-start !important;
}

#sidebar.app-sidebar-light #logout-btn:hover {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
}

#sidebar.app-sidebar-light #logout-btn .sidebar-text {
    font-size: 14px !important;
}

/* Interactive Sidebar Items */
.nav-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    transform: translateX(4px);
}

/* Custom Scrollbar for Premium Feel */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D1D5DB;
}

/* Shimmer/Pulse Loading Animation */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
