#leadership-test-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Instrucțiuni */
.instructions-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
}

.instructions-box h3 {
    margin-top: 0;
    color: #495057;
}

.instructions-box ul {
    margin: 16px 0;
    padding-left: 20px;
}

.instructions-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Situația */
.situation-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.situation-box p {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Butoane */
.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* Câmpul de răspuns */
#response-container {
    margin: 30px 0;
}

#user-response {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

#user-response:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Validare */
.validation-message {
    margin: 12px 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.validation-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.validation-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Loading */
#loading-container {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Rezultate */
#results-container {
    margin-top: 30px;
}

.profile-results {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-item {
    margin-bottom: 20px;
}

.profile-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

.percentage {
    color: #007bff;
}

.profile-bar {
    height: 24px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.profile-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1.5s ease-out;
    width: 0 !important;
}

.profile-fill.animated {
    width: var(--target-width) !important;
}

.profile-fill.structured {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.profile-fill.flexible {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.profile-fill.emergent {
    background: linear-gradient(90deg, #007bff, #6f42c1);
}

/* Explicația */
.explanation-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.explanation-box h4 {
    margin-top: 0;
    color: #495057;
}

.explanation-box p {
    line-height: 1.6;
    margin-bottom: 0;
}

/* Erori */
.error-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.error-box h4 {
    margin-top: 0;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    #leadership-test-container {
        padding: 16px;
    }
    
    .instructions-box,
    .situation-box,
    .profile-results {
        padding: 16px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 14px;
    }
    
    #user-response {
        min-height: 100px;
        font-size: 16px; /* Previne zoom pe iOS */
    }
    
    .profile-label {
        font-size: 14px;
    }
}