/* Public CSS for Core Beliefs Inventory */

/* Container styling */
.cbi-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Introduction styling */
.cbi-intro {
    margin-bottom: 30px;
}

.cbi-intro h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.cbi-intro-text, .cbi-instructions {
    margin-bottom: 20px;
}

/* Progress bar styling */
.cbi-progress-container {
    margin-bottom: 30px;
}

.cbi-progress-text {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.cbi-progress-bar {
    height: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
}

.cbi-progress {
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

/* Question styling */
.cbi-question {
    margin-bottom: 30px;
}

.cbi-question-text {
    font-size: 18px;
    margin-bottom: 15px;
}

.cbi-question-number {
    font-weight: bold;
    margin-right: 5px;
}

/* True/False buttons styling */
.cbi-true-false-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cbi-true-false-btn {
    padding: 10px 30px;
    border: 2px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.cbi-true-false-btn:hover {
    border-color: #bbb;
}

.cbi-true-false-btn.selected {
    color: white;
    border-color: transparent;
}

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

.cbi-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    transition: opacity 0.2s ease;
}

.cbi-btn:hover {
    opacity: 0.9;
}

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

.cbi-btn-secondary {
    background-color: #2ecc71;
}

/* Results styling */
.cbi-results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cbi-results-container h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.cbi-results-intro {
    margin-bottom: 30px;
}

.cbi-chart-wrapper {
    margin-bottom: 30px;
}

.cbi-results-table-wrapper {
    margin-bottom: 30px;
    overflow-x: auto;
}

.cbi-results-table {
    width: 100%;
    border-collapse: collapse;
}

.cbi-results-table th, .cbi-results-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.cbi-results-table th {
    color: white;
}

.cbi-next-steps {
    margin-bottom: 30px;
}

.cbi-next-steps h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cbi-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Login required message */
.cbi-login-required {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Responsive styling */
@media (max-width: 768px) {
    .cbi-container, .cbi-results-container {
        padding: 15px;
    }
    
    .cbi-question-text {
        font-size: 16px;
    }
    
    .cbi-true-false-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .cbi-true-false-btn {
        width: 100%;
    }
    
    .cbi-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .cbi-btn {
        width: 100%;
    }
    
    .cbi-actions {
        flex-direction: column;
    }
}
