  
        
        /* Typing Test Area */
        .typing-test-area {
            text-align: center;
            padding: 2rem;
            border-radius: 8px;
            background-color: var(--light-gray);
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            transition: all 0.3s;
            min-height: 300px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .typing-test-area.ready {
            background-color: #d4edda;
            border-color: #28a745;
        }
        
        .typing-test-area.active {
            background-color: #cce5ff;
            border-color: var(--primary-color);
        }
        
        .typing-test-area.completed {
            background-color: #fff3cd;
            border-color: #ffc107;
        }
        
        .typing-test-area h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .typing-test-area p {
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
        }
        
        .typing-stats {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 1.5rem 0;
            flex-wrap: wrap;
        }
        
        .stat-box {
            background: white;
            border-radius: 8px;
            padding: 1rem 1.5rem;
            min-width: 120px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            border: 1px solid var(--border-color);
        }
        
        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.25rem;
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        
        .typing-result {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--accent-color);
            margin: 1rem 0;
        }
        
        .typing-rank {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        
        .btn-lg {
            padding: 0.75rem 2rem;
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .btn-success {
            background-color: #28a745;
            border-color: #28a745;
        }
        
        .btn-warning {
            background-color: #ffc107;
            border-color: #ffc107;
            color: #333;
        }
        
        .btn-warning:hover {
            background-color: #e0a800;
            border-color: #d39e00;
        }
        
        .timer-bar {
            height: 8px;
            background-color: #e9ecef;
            border-radius: 4px;
            margin: 1.5rem 0;
            overflow: hidden;
        }
        
        .timer-progress {
            height: 100%;
            background-color: var(--primary-color);
            width: 0%;
            transition: width 0.1s linear;
        }
        
        /* Text Display */
        .text-display {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
            font-size: 1.2rem;
            line-height: 1.8;
            text-align: left;
            min-height: 150px;
            position: relative;
            outline: none;
        }
        
        .text-display[contenteditable="true"] {
            border: 2px dashed var(--primary-color);
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .text-display .correct {
            color: var(--correct-color);
            background-color: rgba(40, 167, 69, 0.1);
        }
        
        .text-display .incorrect {
            color: var(--incorrect-color);
            background-color: rgba(220, 53, 69, 0.1);
            text-decoration: line-through;
        }
        
        .text-display .current {
            background-color: rgba(255, 193, 7, 0.3);
            border-bottom: 2px solid var(--current-color);
        }
        
        /* Input Area */
        .typing-input {
            width: 100%;
            padding: 1rem;
            font-size: 1.2rem;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            margin: 1rem 0;
            transition: all 0.3s;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .typing-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(44, 125, 160, 0.15);
        }
        
        /* Custom text note */
        .custom-text-note {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: -1rem;
            margin-bottom: 1.5rem;
            text-align: center;
        }
        
        /* Result Area */
        .result-container {
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            position: relative;
            border: 1px solid var(--border-color);
        }
        
        .result-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--primary-color);
        }
        
        .result-content {
            font-family: 'Courier New', monospace;
            word-break: break-all;
            padding: 12px;
            background-color: white;
            border-radius: 4px;
            border: 1px solid #eee;
            font-size: 0.95rem;
        }
        
        .copy-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 0.4rem 0.75rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .copy-btn:hover {
            background-color: var(--light-gray);
        }
        
        /* Content Sections */
        .section-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .usage-step {
            display: flex;
            margin-bottom: 1.5rem;
            align-items: flex-start;
        }
        
        .step-number {
            width: 28px;
            height: 28px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            flex-shrink: 0;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .info-box {
            background-color: rgba(44, 125, 160, 0.05);
            border-left: 3px solid var(--primary-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
        .security-alert {
            background-color: #d4edda;
            border-left: 3px solid #28a745;
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
       
        
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .tool-card {
                padding: 1.5rem;
            }
            
            .typing-stats {
                gap: 1rem;
            }
            
            .stat-box {
                min-width: 100px;
                padding: 0.75rem 1rem;
            }
            
            .stat-value {
                font-size: 1.75rem;
            }
        }
         
        /* Typing History */
        .history-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .history-table th, .history-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        .history-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .history-table tr:hover {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .history-table .highlight {
            background-color: rgba(255, 193, 7, 0.2);
            font-weight: 600;
        }
        
        /* Test controls */
        .test-controls {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 1rem 0;
        }
        
        /* Difficulty selector */
        .difficulty-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: center;
            margin: 1rem 0;
        }
        
        .difficulty-btn {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            background: white;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .difficulty-btn:hover {
            background-color: var(--light-gray);
        }
        
        .difficulty-btn.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        /* Chart container */
        .chart-container {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            border: 1px solid var(--border-color);
            height: 300px;
            width: 100%; /* Full width */
        }
        
        .chart-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
    