
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #6C63FF;
            --primary-dark: #5a52e0;
            --secondary: #FF6584;
            --text: #333;
            --text-light: #666;
            --background: #f8f9ff;
            --card-bg: #ffffff;
            --border: #e0e0ff;
            --success: #4CAF50;
            --error: #FF5252;
            --warning: #FFC107;
            --shadow: 0 10px 30px rgba(108, 99, 255, 0.15);
            --transition: all 0.3s ease;
        }

        .dark-mode {
            --primary: #7d76ff;
            --primary-dark: #6c63ff;
            --secondary: #ff7b94;
            --text: #f0f0f0;
            --text-light: #b0b0b0;
            --background: #121420;
            --card-bg: #1e2130;
            --border: #2a2d40;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        body {
            background: var(--background);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 5px;
            transition: var(--transition);
            background-image: radial-gradient(circle at 10% 20%, rgba(108, 99, 255, 0.05) 0%, transparent 20%);
        }

        .container {
            width: 100%;
            max-width: 98%;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 10px;
            animation: fadeIn 0.8s ease-out;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            background: linear-gradient(135deg, var(--primary), #4facfe);
            width: 50px;
            height: 50px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow);
        }

        .logo-icon i {
            font-size: 24px;
            color: white;
        }

        .logo-text {
            font-size: 28px;
            font-weight: 700;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .controls {
            display: flex;
            gap: 15px;
        }

        .theme-toggle{
            width: 50px;
            height: 50px;
            border-radius: 15px;
            background: var(--card-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            transition: var(--transition);
        }

        .theme-toggle:hover{
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .theme-toggle i{
            font-size: 22px;
            color: var(--primary);
        }

        .main-content {
            display: grid;
            grid-template-columns: 2fr 550px;
            gap: 30px;
        }

        .typing-container {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 35px;
            height: 520px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            animation: slideUp 0.6s ease-out;
        }

        .typing-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .timer {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(108, 99, 255, 0.1);
            padding: 8px 20px;
            border-radius: 50px;
            color: var(--primary);
            font-weight: 600;
        }

        .timer i {
            font-size: 20px;
        }

        .progress-container {
            height: 8px;
            background: rgba(108, 99, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            margin: 15px 0 25px;
        }

        .progress-bar {
            height: 100%;
            width: 100%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 10px;
            transition: width 0.5s ease;
        }

        .typing-text {
            height: 185px;
            overflow-y: auto;
            padding: 20px;
            background: rgba(108, 99, 255, 0.03);
            border-radius: 15px;
            border: 1px solid var(--border);
            margin-bottom: 25px;
            font-size: 20px;
            line-height: 1.8;
            text-align: justify;
        }

        .typing-text::-webkit-scrollbar {
            width: 8px;
        }

        .typing-text::-webkit-scrollbar-track {
            background: rgba(108, 99, 255, 0.05);
            border-radius: 10px;
        }

        .typing-text::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }

        .typing-text p {
            color: var(--text);
        }

        .typing-text span {
            position: relative;
            transition: all 0.1s ease;
        }

        .typing-text span.correct {
            color: var(--success);
        }

        .typing-text span.incorrect {
            color: var(--error);
            background: rgba(255, 82, 82, 0.1);
            border-radius: 3px;
        }

        .typing-text span.active {
            color: var(--primary);
            font-weight: 600;
        }

        .typing-text span.active::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--primary);
            animation: blink 1s infinite;
        }

        @keyframes blink {
            50% { opacity: 0; }
        }

        .input-field {
            width: 100%;
            padding: 18px 25px;
            border-radius: 15px;
            border: 2px solid var(--border);
            background: var(--card-bg);
            color: var(--text);
            font-size: 18px;
            outline: none;
            transition: var(--transition);
        }

        .input-field:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
        }

        .stats-container {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 35px;
            height: 520px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            animation: slideUp 0.8s ease-out;
        }

        .stats-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .stats-header h2 {
            font-size: 24px;
            font-weight: 700;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }

        .stat-card {
            background: rgba(108, 99, 255, 0.05);
            border-radius: 15px;
            padding: 25px;
            text-align: center;
            border: 1px solid var(--border);
            transition: var(--transition);
        }

        .stat-card:hover {
            transform: translateY(-5px);
            background: rgba(108, 99, 255, 0.1);
        }

        .stat-card i {
            font-size: 32px;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .stat-card h3 {
            font-size: 10px;
            color: var(--text-light);
            margin-bottom: 8px;
            font-weight: 500;
        }

        .stat-card .value {
            font-size: 30px;
            font-weight: 500;
            color: var(--primary);
        }

        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            flex-direction:column;
            gap: 10px;
        }

        .btn {
            padding: 18px;
            border-radius: 15px;
            border: none;
            font-size: 20px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: var(--transition);
        }

        .btn-primary {
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            color: white;
            box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 25px rgba(108, 99, 255, 0.4);
        }

        .btn-outline {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-outline:hover {
            background: rgba(108, 99, 255, 0.1);
        }

        .instructions {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 30px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            animation: slideUp 1s ease-out;
        }

        .instructions h2 {
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .instructions h2 i {
            color: var(--primary);
        }

        .instruction-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .instruction-card {
            display: flex;
            gap: 15px;
            padding: 20px;
            background: rgba(108, 99, 255, 0.03);
            border-radius: 15px;
            border: 1px solid var(--border);
        }

        .instruction-card i {
            font-size: 24px;
            color: var(--primary);
            min-width: 40px;
            height: 40px;
            background: rgba(108, 99, 255, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .instruction-card h3 {
            font-size: 18px;
            margin-bottom: 8px;
            color: var(--text);
        }

        .instruction-card p {
            color: var(--text-light);
            line-height: 1.6;
        }

        footer {
            text-align: center;
            padding: 30px 0 10px;
            color: var(--text-light);
            font-size: 14px;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes slideUp {
            from { opacity: 0; transform: translateY(50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 900px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            
            .instruction-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 600px) {
            header {
                flex-direction: column;
                gap: 20px;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .typing-container, .stats-container, .instructions {
                padding: 25px;
            }
        }
