        @import url('../assets/font.css');


        :root {
            --primary: #4849E8;
            --primary-light: #4849E8;
            --primary-dark: #3C3DF2;
            --secondary: #ff6b9d;
            --secondary-light: #ff94b8;
            --secondary-dark: #ff4980;
            --accent: #00e5ff;
            --accent-light: #6effff;
            --accent-dark: #00b3cc;
            
            --bg-primary: #121212;
            --bg-secondary: #1e1e1e;
            --bg-tertiary: #252525;
            
            --text-primary: #e9ecef;
            --text-secondary: #ced4da;
            --text-tertiary: #adb5bd;
            
            --border-color: #444;
            --border-light: #333;
            
            --success: #28a745;
            --warning: #ffc107;
            --danger: #dc3545;
            --info: #17a2b8;
            
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
            --shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
            --shadow-xl: 0 20px 25px rgba(0,0,0,0.25);
            
            --radius-sm: 6px;
            --radius-md: 8px;
            --radius-lg: 12px;
            --radius-xl: 16px;
            
            --transition: all 0.2s ease;
            --transition-slow: all 0.3s ease;
            
            --header-height: 70px;
            --sidebar-width: 320px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: YekanBakh;
        }
        
        body {
            line-height: 1.6;
            color: var(--text-primary);
            background-color: var(--bg-primary);
            transition: var(--transition-slow);
            font-family:YekanBakh;
        }

        .content {
            width: 100%;
        }
        .sections {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 25px;
            margin: 0px 25px;
        }
        
        .container {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        
        /* Header Styles */
        header {
            height: var(--header-height);
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: var(--shadow-sm);
            z-index: 10;
        }
        
        .header-content {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        h1 {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
        }
        
        .description {
            font-size: 0.875rem;
            color: var(--text-tertiary);
        }
        
        .header-controls {
            display: flex;
            gap: 12px;
        }
        
        .fullscreen-toggle {
            width: 40px;
            height: 40px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border-color);
            background: var(--bg-secondary);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
        }
        
        .fullscreen-toggle:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            border-color: var(--primary-light);
        }
        
        /* Main Content */
        .main-content {
            display: flex;
            flex: 1;
            overflow: hidden;
        }
        
        .animations-list {
            width: var(--sidebar-width);
            background: var(--bg-primary);
            padding: 24px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 24px;
            transition: var(--transition-slow);
            height: calc(100vh - var(--header-height));
            padding-bottom: 100px;
        }
        
        /* Preview Section */
        .preview-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 24px;
            gap: 24px;
            overflow: hidden;
            min-height: 300px;
            height: auto;
        }
        
        .preview-box {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            background: var(--bg-secondary);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border-light);
            min-height: 250px;
        }
        
        .preview-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(124, 77, 255, 0.05), rgba(0, 229, 255, 0.05));
            z-index: 0;
        }
        
        .animated-element {
            width: 150px;
            height: 150px;
            background: var(--primary);
            border-radius: var(--radius-lg);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-weight: 600;
            font-size: 1.1rem;
            box-shadow: var(--shadow-md);
            z-index: 1;
            transition: var(--transition);
        }
        
        /* Code Output */
        .code-output {
            height: 280px;
            background: var(--bg-tertiary);
            color: var(--text-primary);
            padding: 20px;
            border-radius: var(--radius-lg);
            overflow: auto;
            font-family: 'Fira Code', 'Courier New', monospace;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-light);
        }
        
        #css-code {
            white-space: pre-wrap;
            font-size: 0.875rem;
            line-height: 1.5;
        }

        .section-control {
          display: flex;
          gap: 25px;
          align-items: flex-start;
        }
        
        /* Control Groups */
        .control-group {
            background: var(--bg-secondary);
            padding: 20px;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-light);
            width: 100%;
        }
        
        .control-group h3 {
            margin-bottom: 16px;
            color: #DDD;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--primary-light);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .control-group h3 i {
            font-size: 1.2rem;
        }
        
        label {
            display: flex;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-primary);
            font-size: 0.875rem;
            justify-content: space-between;
        }
        
        input[type="range"] {
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: var(--border-color);
            outline: none;
            -webkit-appearance: none;
            margin-bottom: 16px;
            transition: var(--transition);
        }
        
        input[type="range"]:hover {
            background: var(--primary-light);
        }
        
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
        }
        
        input[type="range"]::-webkit-slider-thumb:hover {
            background: var(--primary-dark);
            transform: scale(1.1);
        }
        
        select, button {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            background-color: var(--bg-secondary);
            font-size: 0.875rem;
            margin-bottom: 12px;
            font-family: inherit;
            transition: var(--transition);
            color: var(--text-primary);
            box-shadow: var(--shadow-sm);
        }
        
        select {
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 10l5 5 5-5z"/></svg>');
            background-color: var(--bg-secondary);
            background-size: 20px;
            background-position: left 10px center;
            background-repeat: no-repeat;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            cursor: pointer;
            padding-left: 40px;
        }
        
        select:hover, select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
        }
        
        button {
            background: var(--primary);
            color: white;
            border: none;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        button#reset-btn {
            background: #2D2D2D;
        }
        
        button:hover {
            background: var(--primary-dark);
            box-shadow: var(--shadow-md);
        }
        
        button:active {
            transform: translateY(0);
        }
        
        button.copy-btn {
            background: var(--success);
        }
        
        button.copy-btn:hover {
            background: #218838;
        }
        
        .range-value {
            display: inline-block;
            min-width: 40px;
            text-align: center;
            background: var(--primary);
            color: white;
            padding: 2px 5px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.75rem;
        }
        
        /* Footer */
        footer {
            text-align: center;
            padding: 16px;
            background: var(--bg-secondary);
            color: var(--text-tertiary);
            font-size: 0.875rem;
            border-top: 1px solid var(--border-color);
            position: relative;
            width: 100%;
            margin-top: auto;
        }
        
        /* Animation Grid */
        .animation-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 8px;
            margin-top: 12px;
        }
        
        .animation-option {
            padding: 10px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.75rem;
            font-weight: 500;
        }
        
        .animation-option:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }
        
        .animation-option.active {
            border-color: var(--primary);
            background: var(--primary);
            color: white;
        }
        
        /* Toggle Switch */
        .toggle-container {
            display: flex;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .toggle-label {
            margin-right: 12px;
            font-weight: 500;
            font-size: 0.875rem;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--border-color);
            transition: .4s;
            border-radius: 24px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: var(--primary);
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        /* Code Controls */
        .code-controls {
            display: flex;
            gap: 12px;
            margin-top: 12px;
        }
        
        .code-controls button {
            flex: 1;
        }
        
        /* Category Tabs */
.category-tabs {
    display: flex
;
    gap: 8px;
    margin-bottom: 16px;
    flex-direction: column;
    text-align: center;
}
        
        .category-tab {
            padding: 8px 16px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .category-tab:hover {
            border-color: var(--primary);
        }
        
        .category-tab.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .category-content {
            display: none;
        }
        
        .category-content.active {
            display: block;
        }
        
        .search-box {
            margin-bottom: 16px;
        }
        
        .search-box input {
            width: 100%;
            padding: 10px 16px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            background: var(--bg-tertiary);
            color: var(--text-primary);
            font-size: 0.875rem;
        }
        
        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        /* Scrollbar Styling */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: var(--bg-tertiary);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: var(--text-tertiary);
        }
        
        /* Responsive Design */
        @media (max-width: 1200px) {
            .sections {
                grid-template-columns: 1fr;
                margin: 0 15px;
            }
            
            .section-control {
                flex-direction: column;
                gap: 15px;
            }
        }
        
        @media (max-width: 992px) {
            .main-content {
                flex-direction: column;
            }
            
            .animations-list {
                width: 100%;
                border-left: none;
                border-bottom: 1px solid var(--border-color);
                height: auto;
                max-height: 300px;
                overflow-y: auto;
                padding-bottom: 24px;
            }
            
            .preview-section {
                flex: 1;
            }
            
            h1 {
                font-size: 1.25rem;
            }
            
            :root {
                --sidebar-width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            header {
                padding: 0 16px;
                height: auto;
                min-height: var(--header-height);
                flex-wrap: wrap;
                gap: 12px;
                padding-top: 10px;
                padding-bottom: 10px;
            }
            
            .header-content {
                text-align: right;
                width: 100%;
                order: 1;
            }
            
            .header-controls {
                width: 100%;
                justify-content: center;
                order: 2;
            }
            
            .preview-section, .animations-list {
                padding: 16px;
            }
            
            .animation-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            }
            
            .code-controls {
                flex-direction: column;
            }
            
            .animated-element {
                width: 120px;
                height: 120px;
                font-size: 1rem;
            }
            
            .sections {
                gap: 15px;
                margin: 0 10px;
            }
            
            .control-group {
                padding: 15px;
            }
            
            .code-output {
                height: 250px;
                padding: 15px;
            }
        }
        
        @media (max-width: 576px) {
            header {
                flex-direction: column;
                gap: 15px;
                padding: 15px;
            }
            
            .header-content, .header-controls {
                width: 100%;
                text-align: center;
            }
            
            .animation-grid {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            }
            
            .animation-option {
                padding: 8px 5px;
                font-size: 0.7rem;
            }
            
            .preview-box {
                min-height: 200px;
            }
            
            .animated-element {
                width: 100px;
                height: 100px;
                font-size: 0.9rem;
            }
            
            select, button {
                padding: 10px 12px;
                font-size: 0.8rem;
            }
            
            .control-group h3 {
                font-size: 1rem;
            }
            
            label {
                font-size: 0.8rem;
            }
        }
        
        @media (max-width: 400px) {
            .animation-grid {
                grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            }
            
            .animation-option {
                font-size: 0.65rem;
                padding: 6px 3px;
            }
            
            .preview-box {
                min-height: 180px;
            }
            
            .animated-element {
                width: 80px;
                height: 80px;
                font-size: 0.8rem;
            }
        }