/* Survey Page Specific Styles */
.survey-page {
    background-color: #f8f9fa;
}

.survey-header {
    background: var(--primary-color);
    color: white;
    padding-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
}

.user-info i {
    margin-right: 8px;
    font-size: 18px;
}

/* Survey Container */
.survey-container {
    max-width: 800px;
    margin: 30px auto 60px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    min-height: 500px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

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

.progress-text {
    font-size: 14px;
    color: #777;
    text-align: right;
}

/* Survey Sections */
.survey-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.survey-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Survey Intro */
.survey-intro h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.survey-instructions {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.survey-instructions h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.survey-instructions ul {
    padding-left: 20px;
}

.survey-instructions li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.survey-instructions li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Question Container */
#question-container h2 {
    margin-bottom: 30px;
    color: var(--dark-color);
}

/* Likert Scale */
.likert-scale {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.likert-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.likert-option:hover {
    background-color: #f8f9fa;
}

.likert-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(26, 82, 118, 0.05);
}

.likert-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.likert-option label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
}

/* Navigation Buttons */
.survey-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Results Section */
.results-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.results-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.results-categories {
    flex: 1;
    min-width: 280px;
}

.results-categories h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.category-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-label {
    min-width: 150px;
    font-weight: 500;
}

.bar-container {
    flex: 1;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 1s ease;
    border-radius: 10px;
}

.bar-container span {
    position: absolute;
    right: 10px;
    color: white;
    font-weight: 500;
    font-size: 12px;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Development Plan */
.development-plan {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.development-plan h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.plan-section {
    margin-bottom: 25px;
}

.plan-section h4 {
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.plan-section h4 i {
    color: var(--secondary-color);
}

.plan-section ul {
    padding-left: 20px;
}

.plan-section li {
    margin-bottom: 10px;
}

.results-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .survey-container {
        padding: 20px;
        margin: 20px 15px 40px;
    }
    
    .results-summary {
        flex-direction: column;
        align-items: center;
    }
    
    .category-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .category-label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions button {
        width: 100%;
    }
}

.likert-scale {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 30px 0;
}

/* For desktop, make the Likert scale horizontal */
@media (min-width: 768px) {
    .likert-scale {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .likert-option {
        flex-direction: column;
        flex: 1;
        text-align: center;
        padding: 15px 10px;
    }
    
    .likert-option input[type="radio"] {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Survey Footer */
.survey-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.survey-footer p {
    opacity: 0.7;
}
