
        * {
            font-family: 'Righteous', cursive;
        }
        
        :root {
            --bg-primary: #000000;
            --bg-secondary: #0b0c0e;
            --bg-tertiary: #334155;
            --text-primary: #f8fafc;
            --text-secondary: #cbd5e1;
            --border-color: #475569;
        }
        
        [data-theme="light"] {
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --bg-tertiary: #e2e8f0;
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --border-color: #cbd5e1;
        }
        
        body {
            background-color: var(--bg-primary);
            color: var(--text-primary);
        }
        
        .bg-primary { background-color: var(--bg-primary); }
        .bg-secondary { background-color: var(--bg-secondary); }
        .bg-tertiary { background-color: var(--bg-tertiary); }
        .text-primary { color: var(--text-primary); }
        .text-secondary { color: var(--text-secondary); }
        .border-custom { border-color: var(--border-color); }
        
        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 4px solid var(--border-color);
            border-top: 4px solid #8b5cf6;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .slide-in {
            animation: slideIn 0.3s ease-out;
        }
        
        @keyframes slideIn {
            from { transform: translateX(-100%); }
            to { transform: translateX(0); }
        }
        
        .canvas-text {
            position: absolute;
            cursor: move;
            user-select: none;
            z-index: 10;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        
        .brand-text {
            position: absolute;
            bottom: 10px;
            left: 10px;
            font-size: 14px;
            opacity: 0.8;
            z-index: 10;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }
        
        .dropdown {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        
        .dropdown.open {
            max-height: 400px;
        }
        
        .custom-scrollbar::-webkit-scrollbar {
            width: 4px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-track {
            background: var(--bg-tertiary);
            border-radius: 3px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #8b5cf6;
            border-radius: 3px;
        }
        
        .image-hover-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.85);
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
        }
        
        .image-container:hover .image-hover-overlay {
            opacity: 1;
        }
        
        .explore-hover-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 12px;
        }
        
        .explore-container:hover .explore-hover-overlay {
            opacity: 1;
        }
        
        .typewriter {
            border-right: 2px solid;
            animation: blink-caret 0.75s step-end infinite;
        }
        
        @keyframes typing {
            from { width: 0; }
            to { width: 100%; }
        }
        
        @keyframes blink-caret {
            from, to { border-color: transparent; }
            50% { border-color: currentColor; }
        }
        
        .sidebar-collapsed {
            width: 80px !important;
        }
        
        .sidebar-collapsed .sidebar-text {
            display: none;
        }
        
        .sidebar-collapsed .sidebar-icon {
            margin: 0 auto;
        }
        
        .sidebar-open {
            transform: translateX(0) !important;
        }
        
        .content-pushed {
            transform: translateX(280px) !important;
        }

        #dashboardPage{
            overflow: hidden !important;
        }
        
        @media (max-width: 767px) {
            #sidebar {
                width: 280px !important;
                position: fixed !important;
                left: -280px !important;
                transition: left 0.3s ease-in-out !important;
            }
            
            #sidebar.sidebar-open {
                left: 0 !important;
            }
            
            .main-content {
                transition: transform 0.3s ease-in-out !important;
            }
            
            .dashboard-mobile {
                flex-direction: column !important;
            }
            
            .dashboard-mobile > div {
                width: 100% !important;
                max-height: none !important;
                border: none !important;
            }

            header{
                padding: 5px 10px !important;
            }
            
            .mobnav{
                border: 1px solid var(--bg-tertiary);
            }
          
            #mobileEditorTab {
                overflow-y: scroll !important;
                height: 50vh;
                padding-bottom: 50%;
            }

             #mobileBackgroundsTab {
                overflow-y: scroll !important;
                height: 50vh;
                padding-bottom: 50%;
            }
        

            .mobile-canvas-container {
                order: 1;
                padding: 1rem !important;
            }
            
            .mobile-editor-panel {
                order: 2;
                max-height: 300px !important;
                overflow-y: auto !important;
            }
            
            .mobile-backgrounds-panel {
                order: 3;
                max-height: 200px !important;
                overflow-y: auto !important;
            }
        }
        
        .glass-effect {
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .profile-card {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(219, 39, 119, 0.1) 100%);
            border: 1px solid rgba(139, 92, 246, 0.2);
        }
        
        .stat-card {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        #aiTab{
            display: none;
        }

        #dashboardActionBar{
            position: fixed;
            bottom: 0;
            width: 100%;
            left: 0;
    }
    @media (max-width: 767px) {
    .desktop-controls { display: none; }
    .mobile-controls { display: block; }
}
@media (min-width: 768px) {
    .desktop-controls { display: block; }
    .mobile-controls { display: none; }
}
