/* Cybersecurity Survey Styles */
#cybersecurity-survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.survey-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.survey-header h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.survey-subtitle {
    color: #7f8c8d;
    font-size: 18px;
    margin: 0;
}

.survey-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
}

.survey-description p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.6;
}

/* Progress Bar */
.survey-progress {
    margin-bottom: 30px;
    text-align: center;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Question Styles */
.question-container {
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease-in;
}

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

.question-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.question-section {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.question-title {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.question-text {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.question-instruction {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
    margin: 0 0 20px 0;
}

/* Options Styles */
.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.option-item:hover {
    border-color: #3498db;
    background: #f8f9fa;
    transform: translateX(2px);
}

.option-item.selected {
    border-color: #3498db;
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-item label {
    flex: 1;
    cursor: pointer;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.option-item.selected label {
    font-weight: 500;
    color: #1976d2;
}

/* Navigation */
.survey-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-success {
    background: #27ae60;
    color: white;
    font-weight: 600;
}

.btn-success:hover:not(:disabled) {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Loading */
.survey-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.survey-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Success Message */
.survey-success {
    text-align: center;
    padding: 40px 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
}

.survey-success h2 {
    color: #155724;
    margin-bottom: 15px;
}

.survey-success p {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Results Styles */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.results-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.question-result {
    background: #fff;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question-result h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.answer-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.answer-option:last-child {
    border-bottom: none;
}

.answer-text {
    flex: 1;
    color: #495057;
}

.answer-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.answer-count {
    font-weight: 600;
    color: #2c3e50;
}

.answer-percentage {
    color: #6c757d;
    font-size: 14px;
}

.answer-bar {
    width: 100px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.answer-bar-fill {
    height: 100%;
    background: #3498db;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    #cybersecurity-survey-container {
        margin: 10px;
        padding: 15px;
    }
    
    .survey-header h2 {
        font-size: 20px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .option-item {
        padding: 12px;
    }
    
    .option-item label {
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .survey-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .results-container {
        margin: 10px;
        padding: 15px;
    }
    
    .answer-stats {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }
    
    .answer-bar {
        width: 80px;
    }
}

/* Print Styles */
@media print {
    .survey-navigation,
    .survey-loading,
    .btn {
        display: none !important;
    }
    
    .question-container {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .option-item {
        border: 1px solid #ccc;
        margin-bottom: 5px;
    }
}