/* Skill Test Frontend Styles - Following UI/UX Guidelines */

/* ===== GOOGLE FONTS IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== CSS VARIABLES - UI/UX GUIDELINES ===== */
:root {
    /* Color System */
    --primary-color: #6366F1; /* Indigo - Primary actions, links, highlights */
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10B981; /* Green - Success states */
    --success-color: #10B981;
    --warning-color: #F59E0B; /* Amber - Warning states */
    --error-color: #EF4444; /* Red - Error states */
    --info-color: #3B82F6; /* Blue - Info states */
    
    /* Neutral Backgrounds */
    --bg-page: #F8FAFC; /* Very light page background */
    --bg-primary: #FFFFFF; /* Pure white cards/containers */
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    
    /* Text Colors */
    --text-primary: #0F172A; /* Dark gray/near-black - Main text */
    --text-secondary: #475569; /* Medium gray - Secondary text */
    --text-muted: #94A3B8; /* Light gray - Muted text */
    
    /* Borders */
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for cards */
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1); /* Hover states */
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15); /* Modals/overlays */
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    
    /* Spacing - 8px grid system */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ===== GLOBAL TYPOGRAPHY ===== */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
}

/* Typography Hierarchy */
h1 { font-size: 28px; font-weight: 700; line-height: 1.4; }
h2 { font-size: 24px; font-weight: 600; line-height: 1.4; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
h4 { font-size: 18px; font-weight: 500; line-height: 1.4; }
h5, h6 { font-size: 16px; font-weight: 500; line-height: 1.4; }

/* Body text */
p, div, span { font-size: 14px; font-weight: 400; }
code, pre { font-family: var(--font-mono); }

/* ===== TUTORLMS-STYLE DASHBOARD CONTAINER ===== */
.tutor-skill-test-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4);
    font-family: var(--font-family);
    background: var(--bg-page);
    min-height: 100vh;
}

.tutor-skill-test-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3);
    font-family: var(--font-family);
    background: var(--bg-page);
    min-height: 100vh;
}

.skill-test-step {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-5);
    margin-bottom: var(--space-3);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.skill-test-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ===== TUTORLMS-STYLE DASHBOARD HEADER ===== */
.skill-test-header {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.header-content h2 {
    color: var(--text-primary);
    margin: 0 0 var(--space-1) 0;
    font-size: 24px;
    font-weight: 600;
    font-family: var(--font-family);
}

.header-content p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-family);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Legacy header styles for backward compatibility */
.skill-test-header h1 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-family);
}

.skill-test-header p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family);
}

/* ===== TUTORLMS-STYLE STATISTICS CARDS ===== */
.skill-test-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-1) 0;
    line-height: 1;
}

.stat-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legacy test sections */
.test-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-3);
    margin: var(--space-5) 0;
}

.test-section {
    background: var(--bg-primary);
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.test-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.test-section:hover::before {
    transform: scaleX(1);
}

.test-section:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.test-section-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.test-section h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.test-section p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.test-rules {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.test-rules h3 {
    color: #856404;
    margin-top: 0;
}

.test-rules ul {
    margin: 0;
    padding-left: 20px;
}

.test-rules li {
    color: #856404;
    margin-bottom: 5px;
}

.skill-test-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: var(--space-3);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-family);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ===== MODERN BUTTON SYSTEM ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    min-height: 40px;
    font-family: var(--font-family);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Primary Button */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Success Button */
.btn-success {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    box-shadow: var(--shadow-sm);
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Danger Button */
.btn-danger {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 32px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    min-height: 48px;
    border-radius: var(--radius-md);
}

/* Button with Icon */
.btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.btn-sm .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.btn-lg .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.test-timer {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 20px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.timer-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--error-color);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 24px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.question-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.question-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: #f8f9fa;
    border-color: #0073aa;
}

.option-item.selected {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.option-item input[type="radio"] {
    margin-right: 10px;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.question-dots {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.question-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.question-dot.active {
    background: #0073aa;
}

.question-dot.answered {
    background: #28a745;
}

.results-container {
    text-align: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#0073aa 0deg, #0073aa var(--score-degrees), #e9ecef var(--score-degrees), #e9ecef 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}


.score-display {
    position: relative;
    z-index: 1;
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.status-pass {
    background: #d4edda;
    color: #155724;
}

.status-fail {
    background: #f8d7da;
    color: #721c24;
}

.user-profile {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.profile-item {
    text-align: center;
}

.profile-item h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.profile-item p {
    margin: 0;
    color: #666;
    font-size: 18px;
    font-weight: bold;
}

.reward-points {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
}

.reward-points h3 {
    margin: 0 0 10px 0;
    color: #856404;
}

.points-display {
    font-size: 2em;
    font-weight: bold;
    color: #856404;
}

/* ===== TUTORLMS-STYLE TEST HISTORY SECTION ===== */
.test-history-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-4);
}

.test-history-section h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 var(--space-3) 0;
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--border-light);
}

.skill-test-history-table {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.skill-test-history-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    font-size: 14px;
}

.skill-test-history-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: var(--space-3) var(--space-2);
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-test-history-table td {
    padding: var(--space-3) var(--space-2);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

.skill-test-history-table tbody tr:hover {
    background: var(--bg-secondary);
}

.skill-test-history-table tbody tr:last-child td {
    border-bottom: none;
}

/* Score and Status Badges */
.score-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-badge.score-pass {
    background: #DCFCE7;
    color: #166534;
}

.score-badge.score-fail {
    background: #FEE2E2;
    color: #991B1B;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-completed {
    background: #DCFCE7;
    color: #166534;
}

.status-badge.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.status-failed {
    background: #FEE2E2;
    color: #991B1B;
}

/* Result indicators */
.result-pass {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: #166534;
    font-weight: 600;
    font-size: 13px;
}

.result-fail {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: #991B1B;
    font-weight: 600;
    font-size: 13px;
}

.result-pending {
    color: var(--text-muted);
    font-style: italic;
}

/* No tests state */
.no-tests {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.no-tests-icon {
    width: 64px;
    height: 64px;
    background: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    color: white;
    font-size: 24px;
}

.no-tests h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 var(--space-2) 0;
}

.no-tests p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 var(--space-3) 0;
}

/* Legacy history styles */
.test-history {
    margin-top: 30px;
}

.test-history h3 {
    margin-bottom: 15px;
    color: #333;
}

.history-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-info {
    flex: 1;
}

.history-score {
    font-weight: bold;
    color: #0073aa;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .tutor-skill-test-dashboard {
        padding: var(--space-2);
    }
    
    .tutor-skill-test-container {
        padding: var(--space-2);
    }
    
    .skill-test-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .skill-test-stats {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .stat-card {
        padding: var(--space-3);
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .skill-test-history-table {
        font-size: 13px;
    }
    
    .skill-test-history-table th,
    .skill-test-history-table td {
        padding: var(--space-2) var(--space-1);
    }
    
    .skill-test-step {
        padding: var(--space-3);
    }
    
    .test-sections {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .question-navigation {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tutor-skill-test-dashboard {
        padding: var(--space-1);
    }
    
    .skill-test-header {
        padding: var(--space-3);
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .skill-test-history-table th,
    .skill-test-history-table td {
        padding: var(--space-1);
        font-size: 12px;
    }
    
    .score-badge,
    .status-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}

/* Professional Blue Icons */
.test-icon-pro {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #2563eb;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    vertical-align: middle;
    margin-right: 8px;
}

.test-icon-pro.large {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.test-icon-pro.reading {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.746 0 3.332.477 4.5 1.253v13C19.832 18.477 18.246 18 16.5 18c-1.746 0-3.332.477-4.5 1.253'/%3E%3C/svg%3E");
}

.test-icon-pro.listening {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M9 12a3 3 0 116 0 3 3 0 01-6 0z'/%3E%3C/svg%3E");
}

.test-icon-pro.writing {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z'/%3E%3C/svg%3E");
}

.test-icon-pro.speaking {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z'/%3E%3C/svg%3E");
}

.test-icon-pro.multiple_choice,
.test-icon-pro.general {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
}

.test-icon-pro.programming {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4'/%3E%3C/svg%3E");
}

.test-icon-pro.language {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129'/%3E%3C/svg%3E");
}

.test-icon-pro.math {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.test-icon-pro.science {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z'/%3E%3C/svg%3E");
}

.no-tests-icon-pro {
    display: inline-block;
    width: 64px;
    height: 64px;
    background-color: #94a3b8;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

/* Test Security Styles - Copy/Paste Now Allowed */
.test-page {
    /* Text selection is now allowed */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.test-page input,
.test-page textarea,
.test-page [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.test-timer,
.test-info,
.progress-text {
    /* Text selection is now allowed */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Allow text selection on test elements */
.test-content,
.question-content,
.option-text {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Security warning styles */
.security-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4444;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 9999;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Skill Test Loader Animation */
.skill-test-loader {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: skill-test-spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-ring:nth-child(1) {
    border-top-color: #007cba;
    animation-delay: 0s;
}

.loader-ring:nth-child(2) {
    border-right-color: #00a32a;
    animation-delay: 0.2s;
}

.loader-ring:nth-child(3) {
    border-bottom-color: #d63638;
    animation-delay: 0.4s;
}

@keyframes skill-test-spin {
    0% {
        transform: rotate(0deg) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: rotate(180deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) scale(0.8);
        opacity: 0.8;
    }
}

/* Test Paragraph Field Styles */
.test-paragraph {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.test-paragraph .paragraph-content {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
}

.test-paragraph .paragraph-content p {
    margin: 0 0 12px 0;
}

.test-paragraph .paragraph-content p:last-child {
    margin-bottom: 0;
}

.test-paragraph .paragraph-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.test-paragraph .paragraph-content em {
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive adjustments for paragraph field */
@media (max-width: 768px) {
    .test-paragraph {
        margin: 15px 0;
        padding: 15px;
    }
    
    .test-paragraph .paragraph-content {
        font-size: 14px;
    }
}