/* ===================================
   Cybersecurity Assessment - Styles
   =================================== */

/* Reset and Base Styles */
* {
    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;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

/* Card */
.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* Framework List */
.framework-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.framework-list li {
    padding: 10px;
    margin: 10px 0;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

/* Form Styles */
.user-form, .question-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.category-identify {
    background: #e3f2fd;
    color: #1976d2;
}

.category-protect {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-detect {
    background: #fff3e0;
    color: #f57c00;
}

.category-respond {
    background: #fce4ec;
    color: #c2185b;
}

.category-recover {
    background: #e8f5e9;
    color: #388e3c;
}

/* Question Styles */
.question-text {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.options-container {
    margin: 25px 0;
}

.option-label {
    display: block;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateX(5px);
}

.option-label input[type="radio"] {
    margin-right: 12px;
}

.option-label input[type="radio"]:checked + .option-text {
    color: #667eea;
    font-weight: 600;
}

.option-text {
    display: inline-block;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Results Page */
.user-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.user-details p {
    margin: 8px 0;
}

.overall-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.overall-score h2 {
    color: white;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.score-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
}

.maturity-info {
    flex: 1;
}

.maturity-info h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.maturity-info p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
}

/* Category Scores */
.category-scores {
    margin-top: 20px;
}

.category-score-item {
    margin-bottom: 30px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-name {
    font-weight: 600;
    font-size: 1.2em;
    color: #333;
}

.category-percentage {
    font-weight: bold;
    font-size: 1.3em;
    color: #667eea;
}

.progress-bar-horizontal {
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill-horizontal {
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    padding-left: 15px;
    color: white;
    font-weight: bold;
}

.progress-fill-horizontal.category-identify {
    background: linear-gradient(90deg, #1976d2, #2196f3);
}

.progress-fill-horizontal.category-protect {
    background: linear-gradient(90deg, #7b1fa2, #9c27b0);
}

.progress-fill-horizontal.category-detect {
    background: linear-gradient(90deg, #f57c00, #ff9800);
}

.progress-fill-horizontal.category-respond {
    background: linear-gradient(90deg, #c2185b, #e91e63);
}

.progress-fill-horizontal.category-recover {
    background: linear-gradient(90deg, #388e3c, #4caf50);
}

.category-description {
    color: #666;
    font-size: 0.95em;
    margin-top: 8px;
}

/* Recommendations */
.recommendations {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.recommendations h2 {
    color: #d63031;
}

.recommendations-list {
    padding-left: 20px;
}

.recommendations-list li {
    margin: 15px 0;
    line-height: 1.8;
}

/* Action Buttons */
.action-buttons {
    text-align: center;
}

.action-buttons .button-group {
    justify-content: center;
}

/* Thank You Page */
.thank-you-card {
    text-align: center;
}

.thank-you-icon {
    margin: 20px 0;
}

.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.success-message p {
    color: #155724;
    margin: 10px 0;
}

.thank-you-content {
    text-align: left;
    margin: 30px 0;
}

.thank-you-content h3 {
    color: #667eea;
    margin: 20px 0 15px 0;
}

.next-steps-list, .resources-list {
    line-height: 2;
}

.resources-list a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.resources-list a:hover {
    text-decoration: underline;
}

.contact-info {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .card {
        padding: 20px;
    }
    
    .score-display {
        flex-direction: column;
        text-align: center;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .btn, .button-group {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
