/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Add subtle background pattern for desktop */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Legal Disclaimer Overlay Styles */
.legal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.legal-overlay.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.legal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.legal-header i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #f39c12;
}

.legal-header h2 {
    font-size: 1.8rem;
    margin: 10px 0 0 0;
    font-weight: 600;
}

.legal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.legal-body h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-align: center;
}

.legal-body > p:first-of-type {
    text-align: center;
    color: #e74c3c;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.legal-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

.legal-text h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.legal-text ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-text li {
    margin-bottom: 15px;
}

.legal-text ul {
    margin-left: 20px;
    margin-top: 10px;
}

.legal-text ul li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.legal-text strong {
    color: #2c3e50;
    font-weight: 600;
}

.legal-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
    font-weight: 500;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.legal-footer {
    padding: 20px 30px;
    border-top: 2px solid #ecf0f1;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-agree, .btn-decline {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.btn-agree {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.btn-agree:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.btn-decline {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-decline:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Mobile Responsiveness for Legal Disclaimer */
@media (max-width: 768px) {
    .legal-overlay {
        padding: 10px;
    }
    
    .legal-content {
        max-height: 95vh;
    }
    
    .legal-header {
        padding: 20px 15px;
    }
    
    .legal-header h2 {
        font-size: 1.4rem;
    }
    
    .legal-header i {
        font-size: 2.5rem;
    }
    
    .legal-body {
        padding: 20px 15px;
    }
    
    .legal-body h3 {
        font-size: 1.2rem;
    }
    
    .legal-text {
        font-size: 0.9rem;
    }
    
    .legal-footer {
        flex-direction: column;
        padding: 15px;
    }
    
    .btn-agree, .btn-decline {
        width: 100%;
        min-width: auto;
    }
}

/* Password Entry Overlay Styles */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.password-overlay.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.password-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.password-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.password-header i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.password-header h2 {
    font-size: 1.8rem;
    margin: 10px 0;
    font-weight: 600;
}

.password-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 5px 0 0 0;
}

.password-body {
    padding: 35px 30px;
}

.password-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.password-info i {
    color: #2196f3;
    font-size: 1.3rem;
    margin-top: 2px;
}

.password-info p {
    margin: 0;
    color: #1565c0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group > i {
    position: absolute;
    left: 18px;
    color: #667eea;
    font-size: 1.2rem;
}

.password-input-group input {
    width: 100%;
    padding: 18px 55px 18px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.password-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #667eea;
}

.password-error {
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: shake 0.5s ease;
}

.password-error.hidden {
    display: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.password-error i {
    color: #f44336;
    font-size: 1.3rem;
}

.password-error span {
    color: #c62828;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-submit-password {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit-password:active {
    transform: translateY(0);
}

.password-help {
    margin-top: 25px;
    text-align: center;
}

.password-help p {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.password-help i {
    color: #999;
}

.attempt-warning {
    color: #f44336 !important;
    font-weight: 600;
}

.password-footer {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.password-footer p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.password-footer i {
    color: #4caf50;
}

/* Mobile Responsiveness for Password Screen */
@media (max-width: 768px) {
    .password-overlay {
        padding: 15px;
    }
    
    .password-content {
        max-width: 100%;
    }
    
    .password-header {
        padding: 30px 20px;
    }
    
    .password-header i {
        font-size: 3rem;
    }
    
    .password-header h2 {
        font-size: 1.5rem;
    }
    
    .password-body {
        padding: 25px 20px;
    }
    
    .password-input-group input {
        padding: 16px 50px 16px 45px;
        font-size: 0.95rem;
    }
    
    .btn-submit-password {
        padding: 16px;
        font-size: 1rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Section Styles */
section {
    padding: 40px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

section:hover {
    background: #fafafa;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    animation: slideIn 0.4s ease-out;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Inter', sans-serif;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #d0d0d0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Assessment Grid */
.assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.skill-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.skill-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.info-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.info-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.info-btn:active {
    transform: scale(1.05);
}

.info-btn i {
    pointer-events: none;
}

.slider-wrapper {
    width: 100%;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.label-left {
    color: #e74c3c;
}

.label-right {
    color: #27ae60;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-slider {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.skill-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.skill-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #5a6fd8;
}

.skill-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-value {
    min-width: 40px;
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
    text-align: center;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #667eea;
}

/* Results Section */
.results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
    padding: 35px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 18px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    animation: slideIn 0.5s ease-out;
}

.average-score h3,
.level-assignment h3 {
    margin-bottom: 18px;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.score-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.score-display:hover {
    transform: scale(1.02);
}

.score-display span {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.level-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08) 0%, rgba(46, 204, 113, 0.08) 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.level-display:hover {
    transform: scale(1.02);
}

.level-display span {
    font-size: 2.2rem;
    font-weight: 700;
    color: #27ae60;
    display: block;
    margin-bottom: 8px;
}

.level-display small {
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: 500;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(149, 165, 166, 0.35);
}

#submitAssessment {
    font-size: 1.1rem;
    padding: 15px 30px;
    margin-top: 20px;
}

/* Evaluation Section */
.evaluation-content {
    display: grid;
    gap: 30px;
}

.player-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.player-summary h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.summary-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.stat-item label {
    font-weight: 600;
    color: #34495e;
}

.stat-item span {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.auto-evaluation {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.auto-evaluation h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.evaluation-text {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.comments-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.comments-section label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.evaluation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 25px 20px;
    }
    
    .assessment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .evaluation-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.7rem;
    }
    
    .skill-item {
        padding: 20px;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .slider-value {
        align-self: center;
    }
}

/* Animation for smooth transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success state */
.success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
}

/* Error state */
.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: 20px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.level-definition {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
}

.level-definition:last-child {
    margin-bottom: 0;
}

.level-definition h3 {
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-badge {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.level-definition p {
    margin: 0;
    line-height: 1.8;
    color: #555;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .level-definition {
        padding: 15px;
    }
}

/* APEX Analytics Button */
.btn-analytics {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    z-index: 10;
}

.btn-analytics:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-analytics:active {
    transform: translateY(0);
}

.btn-analytics i {
    font-size: 1.1rem;
}

/* Analytics Modal */
.analytics-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.analytics-modal.hidden {
    display: none !important;
}

.analytics-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.4s ease;
}

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

/* Analytics Header */
.analytics-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.analytics-header i {
    font-size: 2rem;
    margin-right: 15px;
}

.analytics-header h2 {
    flex: 1;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-close-analytics {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close-analytics:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Analytics Body */
.analytics-body {
    padding: 35px;
    overflow-y: auto;
    flex: 1;
}

/* Analytics Filter */
.analytics-filter {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-label i {
    color: #667eea;
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-btn i {
    font-size: 1rem;
}

.analytics-loading {
    text-align: center;
    padding: 60px 20px;
    color: #667eea;
}

.analytics-loading i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.analytics-loading p {
    font-size: 1.2rem;
    color: #666;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.analytics-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.card-total .card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-average .card-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.card-strength .card-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.card-improvement .card-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1;
}

.stat-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.stat-subtitle {
    font-size: 0.9rem;
    color: #999;
    margin: 5px 0 0 0;
}

/* Analytics Breakdown */
.analytics-breakdown {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

.analytics-breakdown h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.analytics-breakdown h3 i {
    color: #667eea;
}

.skill-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.skill-stat-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-stat-card h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.skill-stat-card .skill-avg {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin: 5px 0;
}

.skill-stat-card .skill-level {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0 0;
}

/* No Data State */
.analytics-no-data {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.analytics-no-data i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.analytics-no-data h3 {
    font-size: 1.5rem;
    color: #666;
    margin: 0 0 10px 0;
}

.analytics-no-data p {
    font-size: 1.1rem;
    color: #999;
}

/* Mobile Responsiveness for Analytics */
@media (max-width: 768px) {
    .btn-analytics {
        position: static;
        margin: 15px auto 0 auto;
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .analytics-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .analytics-header {
        padding: 20px;
    }
    
    .analytics-header h2 {
        font-size: 1.3rem;
    }
    
    .analytics-header i {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    
    .analytics-body {
        padding: 20px;
    }
    
    .analytics-filter {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 15px;
    }
    
    .filter-label {
        justify-content: center;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-btn {
        justify-content: center;
        padding: 12px 20px;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .analytics-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-text {
        font-size: 1.1rem;
    }
    
    .analytics-breakdown {
        padding: 20px;
    }
    
    .skill-breakdown-grid {
        grid-template-columns: 1fr;
    }
}