/* Thêm CSS mới cho progress bars */
.progress-container {
    margin: 15px 0;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

.progress-bar {
    height: 10px;
    background: #E5E7EB;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #10B981);
    border-radius: 5px;
    transition: width 0.5s ease;
    min-width: 5px; /* Đảm bảo luôn hiển thị dù nhỏ */
}

/* Giữ nguyên CSS cũ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.back-button {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    color: white;
}

.btn-secondary {
    background: #E5E7EB;
    color: #111827;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.score-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.time-display {
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.score-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.skill-score {
    margin-bottom: 10px;
}

.skill-score span:first-child {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9em;
}

.skill-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #4F46E5, #10B981);
    width: 0%;
    transition: width 0.5s ease;
    min-width: 5px;
}

.skill-score span:last-child {
    float: right;
    font-weight: bold;
    color: #4F46E5;
}

.total-score {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.office-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 200px;
    position: relative;
}

.desk {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 100px;
    background: #8B4513;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.laptop, .notepad, .coffee {
    width: 60px;
    height: 40px;
    background: #333;
    border-radius: 5px;
}

.notepad {
    background: white;
    border: 2px solid #ddd;
}

.coffee {
    background: #8B4513;
    border-radius: 10px 10px 0 0;
}

.scenario-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.scenario-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E5E7EB;
}

.scenario-header h2 {
    color: #111827;
    margin-bottom: 5px;
}

.scenario-header p {
    color: #666;
    font-size: 1.1em;
}

.scenario-content {
    margin-top: 20px;
}

#scenario-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #111827;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #4F46E5;
}

.choices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.choice-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.choice-card:hover {
    border-color: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.choice-icon {
    font-size: 1.5em;
    color: #4F46E5;
    margin-top: 5px;
}

.choice-content h4 {
    margin-bottom: 10px;
    color: #111827;
}

.choice-content p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

.task-container {
    background: white;
    border: 2px solid #4F46E5;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

#task-title {
    color: #4F46E5;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#task-content {
    margin: 20px 0;
}

.task-question {
    margin-bottom: 20px;
}

.task-question p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #111827;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    padding: 15px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.option:hover {
    border-color: #4F46E5;
    background: #f9fafb;
}

.option.selected {
    border-color: #4F46E5;
    background: #f0f9ff;
}

.option input[type="checkbox"],
.option input[type="radio"] {
    margin-top: 3px;
}

.option-text {
    flex: 1;
}

.option-text strong {
    display: block;
    margin-bottom: 5px;
    color: #111827;
}

.option-text small {
    color: #666;
    font-size: 0.9em;
}

.task-controls {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.progress-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #E5E7EB;
}

.progress-text {
    margin-bottom: 10px;
    font-weight: 600;
    color: #111827;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    resize: vertical;
    margin: 10px 0;
}

textarea:focus {
    outline: none;
    border-color: #4F46E5;
}

.chart-placeholder {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px dashed #E5E7EB;
    text-align: center;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    .scenario-container {
        padding: 20px;
    }
    
    .choices-container {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        grid-template-columns: 1fr;
    }
    
    .task-controls {
        flex-direction: column;
    }
    
    .back-button {
        flex-direction: column;
    }
}