/* Compass Modern - Stylesheet */

:root {
    --primary-color: #009FB3;
    --background-color: #C0DCE7;
    --text-color: #333;
    --white: #ffffff;
    --green: #28a745;
    --yellow: #ffc107;
    --red: #dc3545;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--background-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
}

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

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-image: url('../img/compass.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.welcome-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(192, 220, 231, 0.7);
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.main-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--white);
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 1rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-input {
    width: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #008799;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.question-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin: 1rem 0;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.answer-options {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
}

.answer-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.answer-option input[type="radio"] {
    margin-bottom: 0.5rem;
    transform: scale(1.2);
}

.answer-option label {
    font-weight: 500;
    cursor: pointer;
}

.progress-bar {
    background-color: #e9ecef;
    border-radius: var(--border-radius);
    height: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    background-color: var(--primary-color);
    height: 100%;
    transition: width 0.3s ease;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

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

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

.score-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    color: var(--white);
}

.score-green { background-color: var(--green); }
.score-yellow { background-color: var(--yellow); color: var(--text-color); }
.score-red { background-color: var(--red); }

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.dimension-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.dimension-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .answer-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .answer-option {
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
    }
    
    .answer-option input[type="radio"] {
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
}