    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #d4af37 0%, #8B4513 25%, #2F4F4F 75%, #1e3a8a 100%);
            min-height: 100vh;
            color: #333;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 25%),
                radial-gradient(circle at 80% 60%, rgba(139, 69, 19, 0.08) 0%, transparent 25%),
                linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.03) 50%, transparent 60%);
            pointer-events: none;
            z-index: -1;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
            color: #d4af37;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #d4af37, #f7e98e);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header p {
            color: #f7e98e;
        }

        .file-upload-section {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 233, 142, 0.1));
            padding: 30px;
            border-radius: 15px;
            margin-bottom: 20px;
            text-align: center;
            box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(212, 175, 55, 0.2);
        }

        .file-input-wrapper {
            position: relative;
            display: inline-block;
            margin: 20px 0;
        }

        .file-input {
            display: none;
        }

        .file-input-label {
            display: inline-block;
            padding: 15px 30px;
            background: linear-gradient(45deg, #d4af37, #8B4513);
            color: white;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            font-size: 1.1em;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
        }

        .file-input-label:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
            background: linear-gradient(45deg, #f7e98e, #d4af37);
        }

        .file-status {
            margin-top: 15px;
            font-size: 1.1em;
            font-weight: bold;
        }

        .file-status.success {
            color: #2F8B45;
        }

        .file-status.error {
            color: #C41E3A;
        }

        .stats-bar {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 233, 142, 0.1));
            padding: 15px;
            border-radius: 15px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-around;
            box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
            backdrop-filter: blur(4px);
            border: 1px solid rgba(212, 175, 55, 0.2);
        }

        .stat-item {
            text-align: center;
        }

        .stat-value {
            font-size: 1.5em;
            font-weight: bold;
            color: #8B4513;
            text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.3);
        }

        .category-selector {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 233, 142, 0.1));
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
            border: 1px solid rgba(212, 175, 55, 0.2);
        }

        .category-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
            margin-top: 15px;
        }

        .category-btn {
            padding: 12px 20px;
            border: none;
            border-radius: 10px;
            background: linear-gradient(45deg, #8B4513, #d4af37);
            color: white;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(139, 69, 19, 0.3);
        }

        .category-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
            background: linear-gradient(45deg, #d4af37, #f7e98e);
        }

        .category-btn.active {
            background: linear-gradient(45deg, #d4af37, #8B4513);
            box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
            transform: translateY(-1px);
        }

        .card-container {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 233, 142, 0.05));
            padding: 40px;
            border-radius: 20px;
            text-align: center;
            box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
            backdrop-filter: blur(8px);
            margin-bottom: 20px;
            min-height: 400px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            border: 1px solid rgba(212, 175, 55, 0.3);
            position: relative;
        }

        .card-container::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 20px;
            right: 20px;
            height: 3px;
            background: linear-gradient(90deg, #d4af37, transparent, #d4af37);
            border-radius: 2px;
        }

        .arabic-word {
            font-size: 3em;
            font-weight: bold;
            margin-bottom: 20px;
            color: #2c3e50;
            font-family: 'Arabic Typesetting', 'Times New Roman', serif;
            direction: rtl;
            text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
        }

        .pronunciation {
            font-size: 1.3em;
            color: #7f8c8d;
            margin-bottom: 15px;
            font-style: italic;
        }

        .meaning {
            font-size: 1.8em;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 30px;
            text-shadow: 1px 1px 2px rgba(212, 175, 55, 0.2);
        }

        .word-info {
            margin-bottom: 15px;
            color: #8B4513;
            font-size: 0.9em;
            line-height: 1.5;
            opacity: 0.8;
        }

        .controls {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 12px 25px;
            border: none;
            border-radius: 25px;
            font-size: 1.1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 120px;
        }

        .btn-primary {
            background: linear-gradient(45deg, #d4af37, #8B4513);
            color: white;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
        }

        .btn-success {
            background: linear-gradient(45deg, #2F8B45, #228B22);
            color: white;
            box-shadow: 0 4px 15px rgba(47, 139, 69, 0.3);
        }

        .btn-danger {
            background: linear-gradient(45deg, #C41E3A, #8B0000);
            color: white;
            box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
        }

        .btn-warning {
            background: linear-gradient(45deg, #DAA520, #B8860B);
            color: white;
            box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
        }

        .progress-section {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 233, 142, 0.1));
            padding: 20px;
            border-radius: 15px;
            margin-top: 20px;
            box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
            border: 1px solid rgba(212, 175, 55, 0.2);
        }

        .progress-bar {
            width: 100%;
            height: 20px;
            background: rgba(139, 69, 19, 0.2);
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 15px;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(45deg, #d4af37, #8B4513);
            transition: width 0.5s ease;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
        }

        .difficulty-indicators {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
        }

        .difficulty-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #bdc3c7;
            transition: all 0.3s ease;
        }

        .difficulty-dot.easy { 
            background: #2F8B45; 
            box-shadow: 0 2px 8px rgba(47, 139, 69, 0.4);
        }
        .difficulty-dot.medium { 
            background: #DAA520; 
            box-shadow: 0 2px 8px rgba(218, 165, 32, 0.4);
        }
        .difficulty-dot.hard { 
            background: #C41E3A; 
            box-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
        }

        .floating-feedback {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 20px 40px;
            border-radius: 15px;
            font-size: 1.5em;
            font-weight: bold;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .floating-feedback.show {
            transform: translate(-50%, -50%) scale(1);
        }

        .floating-feedback.correct {
            background: linear-gradient(45deg, #2F8B45, #228B22);
        }

        .floating-feedback.incorrect {
            background: linear-gradient(45deg, #C41E3A, #8B0000);
        }

        .hidden {
            display: none;
        }

        .upload-instruction {
            background: rgba(247, 233, 142, 0.1);
            border: 2px dashed #d4af37;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
            text-align: left;
        }

        .upload-instruction h4 {
            color: #8B4513;
            margin-bottom: 10px;
        }

        .quiz-mode-selector {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 233, 142, 0.1));
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
            border: 1px solid rgba(212, 175, 55, 0.2);
        }

        .quiz-mode-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 10px;
            margin-top: 15px;
        }

        .quiz-mode-btn {
            padding: 12px 18px;
            border: none;
            border-radius: 10px;
            background: linear-gradient(45deg, #2F4F4F, #708090);
            color: white;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(47, 79, 79, 0.3);
            font-size: 0.95em;
        }

        .quiz-mode-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(47, 79, 79, 0.4);
            background: linear-gradient(45deg, #708090, #2F4F4F);
        }

        .quiz-mode-btn.active {
            background: linear-gradient(45deg, #d4af37, #8B4513);
            box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
            transform: translateY(-1px);
        }

        .question-type-indicator {
            display: inline-block;
            background: rgba(139, 69, 19, 0.1);
            color: #8B4513;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9em;
            font-weight: bold;
            margin-bottom: 15px;
            border: 1px solid rgba(139, 69, 19, 0.2);
        }

        .answer-choices {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }

        .choice-btn {
            padding: 15px 20px;
            border: 2px solid #d4af37;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.9);
            color: #2c3e50;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            font-size: 1.1em;
            text-align: center;
        }

        .choice-btn:hover {
            background: rgba(212, 175, 55, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
        }

        .choice-btn.selected {
            background: linear-gradient(45deg, #d4af37, #f7e98e);
            color: white;
            border-color: #8B4513;
        }

        .choice-btn.correct {
            background: linear-gradient(45deg, #2F8B45, #228B22);
            color: white;
            border-color: #2F8B45;
        }

        .choice-btn.incorrect {
            background: linear-gradient(45deg, #C41E3A, #8B0000);
            color: white;
            border-color: #C41E3A;
        }

        @media (max-width: 600px) {
            .container {
                padding: 10px;
            }
            
            .arabic-word {
                font-size: 2.5em;
            }
            
            .controls {
                flex-direction: column;
                align-items: center;
            }
            
            .btn {
                width: 80%;
                max-width: 300px;
            }
        }
    </style>