:root {
    --primary-color: #0b2a4a;
    --secondary-color: #1f4e79;
    --accent-color: #2e7d32;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    --dominance-color: #0b2a4a;
    --influence-color: #2e7d32;
    --stability-color: #43a047;
    --conformity-color: #1f4e79;
    
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0b2a4a 0%, #2e7d32 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 250px;
    height: auto;
    filter: brightness(0) invert(1);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Screens */
.screen {
    display: none;
    padding: 40px 30px;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Screen */
.welcome-content {
    max-width: 700px;
    margin: 0 auto;
}

.welcome-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.disc-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.disc-type {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.disc-type:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.type-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.type-icon.dominance {
    background: var(--dominance-color);
}

.type-icon.influence {
    background: var(--influence-color);
}

.type-icon.stability {
    background: var(--stability-color);
}

.type-icon.conformity {
    background: var(--conformity-color);
}

.disc-type h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.disc-type p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Instructions */
.instructions {
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.instructions h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.instructions ul {
    list-style-position: inside;
    color: var(--text-dark);
}

.instructions li {
    margin-bottom: 8px;
    padding-left: 10px;
}

/* User Form */
.user-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--text-dark);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quiz Screen */
.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 600;
}

.question-container {
    margin-bottom: 40px;
}

.question-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.options-container {
    display: grid;
    gap: 15px;
}

.option {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.option:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateX(5px);
}

.option.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.navigation-buttons .btn {
    flex: 1;
}

/* Loading Screen */
.loading-content {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.loading-content p {
    color: var(--text-light);
}

/* Result Screen */
.result-content {
    max-width: 700px;
    margin: 0 auto;
}

.result-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.result-subtitle {
    text-align: center;
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 40px;
}

.result-chart {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.chart-bar {
    margin-bottom: 20px;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.bar-container {
    height: 30px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: 700;
    transition: width 1s ease;
}

.bar-fill.d {
    background: var(--dominance-color);
}

.bar-fill.i {
    background: var(--influence-color);
}

.bar-fill.s {
    background: var(--stability-color);
}

.bar-fill.c {
    background: var(--conformity-color);
}

.profile-description {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.result-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-description h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.profile-description p {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
}

.profile-description ul {
    list-style-position: inside;
    color: var(--text-dark);
}

.profile-description li {
    margin-bottom: 10px;
    padding-left: 10px;
}

#restart-btn {
    display: block;
    margin: 0 auto;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .screen {
        padding: 20px 15px;
    }
    
    .disc-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .logo {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .disc-types {
        grid-template-columns: 1fr;
    }
}
