* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

.screen {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

/* Welcome Screen */
.intro h2 {
    color: #4a5568;
    margin-bottom: 20px;
    text-align: center;
}

.intro p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

.disc-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.disc-type {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.disc-type:hover {
    transform: translateY(-5px);
}

.disc-type.dominance {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
}

.disc-type.influence {
    background: linear-gradient(135deg, #4ecdc4, #7fdbda);
    color: white;
}

.disc-type.stabilite {
    background: linear-gradient(135deg, #45b7d1, #69c2e0);
    color: white;
}

.disc-type.conformite {
    background: linear-gradient(135deg, #96ceb4, #b2dfc7);
    color: white;
}

.disc-type h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Test Screen */
.progress-bar {
    background: #e2e8f0;
    border-radius: 20px;
    height: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
    width: 0%;
}

#question-counter {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.9em;
    color: #666;
}

#question-container {
    margin-bottom: 40px;
}

#question-text {
    font-size: 1.4em;
    margin-bottom: 30px;
    text-align: center;
    color: #2d3748;
    line-height: 1.5;
}

#answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.answer-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateX(5px);
}

.answer-option.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover:not(:disabled) {
    background: #cbd5e0;
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Screen */
#results-chart {
    text-align: center;
    margin-bottom: 30px;
}

#profile-description {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.profile-title {
    font-size: 1.5em;
    color: #2d3748;
    margin-bottom: 15px;
    text-align: center;
}

.profile-text {
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 15px;
}

.disc-scores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.score-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    color: white;
}

.score-item.d { background: #ff6b6b; }
.score-item.i { background: #4ecdc4; }
.score-item.s { background: #45b7d1; }
.score-item.c { background: #96ceb4; }

.score-item h4 {
    margin-bottom: 5px;
    font-size: 1.2em;
}

.score-value {
    font-size: 1.5em;
    font-weight: bold;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .disc-types {
        grid-template-columns: 1fr;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .disc-scores {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.screen {
    animation: fadeIn 0.5s ease;
}

.answer-option {
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
}

.answer-option:nth-child(1) { animation-delay: 0.1s; }
.answer-option:nth-child(2) { animation-delay: 0.2s; }
.answer-option:nth-child(3) { animation-delay: 0.3s; }
.answer-option:nth-child(4) { animation-delay: 0.4s; }