.mrc-gradient-bg {
            background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
        }
        .mrc-card-hover {
            transition: all 0.3s ease;
        }
        .mrc-card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .mrc-fade-in {
            animation: fadeIn 0.5s ease-in;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .mrc-flashcard-preview {
            min-height: 200px;
            perspective: 1000px;
        }
        .mrc-flashcard-inner {
            position: relative;
            width: 100%;
            height: 200px;
            text-align: center;
            transition: transform 0.6s;
            transform-style: preserve-3d;
            cursor: pointer;
        }
        .mrc-flashcard-inner.flipped {
            transform: rotateX(180deg);
        }
        .mrc-flashcard-front, .mrc-flashcard-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
        }
        .mrc-flashcard-back {
            transform: rotateX(180deg);
        }
        .image-upload-icon {
            width: 24px;
            height: 24px;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.3s;
        }
        .image-upload-icon:hover {
            opacity: 1;
        }
        .image-preview {
            max-width: 40px;
            max-height: 40px;
            border-radius: 4px;
            margin-left: 8px;
        }
        .slide-in {
            animation: slideIn 0.3s ease-out;
        }
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }
        .collapsible-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        .collapsible-content.expanded {
            max-height: 300px;
            overflow-y:auto;
        }
        .drag-handle {
            cursor: grab;
            transition: all 0.2s ease;
        }
        .drag-handle:hover {
            background-color: rgba(99, 102, 241, 0.1);
            color: #6366f1;
        }
        .drag-handle:active {
            cursor: grabbing;
        }
        .sortable-ghost {
            opacity: 0.4;
            transform: rotate(2deg);
        }
        .sortable-chosen {
            transform: scale(1.02);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }
        .sortable-drag {
            transform: rotate(5deg);
            box-shadow: 0 15px 30px rgba(0,0,0,0.3);
        }

        textarea {
            transition: height 0.2s ease;
        }
        
       
        .action-button-group {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }
        
        .header-actions {
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .header-actions button {
            font-size: 14px;
            padding: 8px 16px;
            min-width: fit-content;
            white-space: nowrap;
        }
        
        .bottom-actions {
            justify-content: space-between;
            align-items: center;
            padding-top: 24px;
            border-top: 1px solid rgba(229, 231, 235, 0.5);
            margin-top: 32px;
        }
        
        .bottom-actions .left-group {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }
        
        .bottom-actions .right-group {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }
        
        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .header-actions {
                justify-content: flex-start;
                gap: 6px;
            }
            
            .header-actions button {
                font-size: 13px;
                padding: 6px 12px;
                flex: 1;
                min-width: 0;
            }
            
            .header-actions button i {
                display: none;
            }
            
            .bottom-actions {
                flex-direction: column;
                gap: 16px;
                align-items: stretch;
            }
            
            .bottom-actions .left-group,
            .bottom-actions .right-group {
                justify-content: center;
                width: 100%;
            }
            
            .bottom-actions .left-group button,
            .bottom-actions .right-group button {
                flex: 1;
                min-width: 0;
                justify-content: center;
            }
        }
        
        @media (max-width: 480px) {
            .header-actions button {
                font-size: 12px;
                padding: 6px 8px;
            }
            
            .bottom-actions .left-group,
            .bottom-actions .right-group {
                flex-direction: column;
                gap: 8px;
            }
        }

        /* Scroll Navigation Buttons */
        .scroll-nav-buttons {
            position: fixed;
            right: 24px;
            bottom: 24px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 1000;
        }

        .scroll-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.3s ease;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.8);
            box-shadow: 0 4px 20px rgba(67, 56, 202, 0.3);
        }

        .scroll-btn.visible {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }

        .scroll-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(67, 56, 202, 0.4);
        }

        .scroll-btn:active {
            transform: scale(0.95);
        }

        .scroll-btn i {
            transition: transform 0.2s ease;
        }

        .scroll-btn:hover i {
            transform: translateY(-1px);
        }

        /* Dark mode styles */
        .dark .scroll-btn {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
        }

        .dark .scroll-btn:hover {
            box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
        }

        /* Mobile adjustments */
        @media (max-width: 768px) {
            .scroll-nav-buttons {
                right: 16px;
                bottom: 16px;
                gap: 8px;
            }
            
            .scroll-btn {
                width: 44px;
                height: 44px;
                font-size: 16px;
            }
        }

        /* Smooth scroll behavior */
        html {
            scroll-behavior: smooth;
        }