/* CIS Practice Exams - Frontend Styles */

.cis-exam-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.cis-exam-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #2E75B6;
    padding-bottom: 20px;
}

.cis-exam-header h1 {
    margin: 0 0 10px 0;
    color: #2E75B6;
}

.cis-exam-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
    font-size: 14px;
}

.cis-exam-info-item {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.cis-exam-info-item strong {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.cis-question-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #2E75B6;
    border-radius: 4px;
}

.cis-question-number {
    display: inline-block;
    background: #2E75B6;
    color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
}

.cis-question-text {
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0;
    color: #333;
}

.cis-question-marks {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.cis-question-content {
    margin-left: 40px;
}

/* MCQ Styles */
.cis-mcq-options {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.cis-mcq-options li {
    margin: 10px 0;
}

.cis-mcq-options label {
    display: block;
    padding: 10px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.cis-mcq-options label:hover {
    background: #f0f0f0;
}

.cis-mcq-options input[type="radio"] {
    margin-right: 10px;
}

.cis-mcq-options input[type="radio"]:checked + label {
    border-color: #2E75B6;
    background: #e7f0f7;
}

/* True/False Styles */
.cis-tf-options {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.cis-tf-options label {
    flex: 1;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.cis-tf-options label:hover {
    border-color: #2E75B6;
}

.cis-tf-options input[type="radio"]:checked + label {
    border-color: #2E75B6;
    background: #e7f0f7;
    color: #2E75B6;
}

/* Fill in the Blank Styles */
.cis-fill-blank-input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin: 10px 0;
}

.cis-fill-blank-input:focus {
    outline: none;
    border-color: #2E75B6;
    box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.1);
}

/* Short Answer & Essay Styles */
.cis-text-area {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    resize: vertical;
    margin: 10px 0;
}

.cis-text-area:focus {
    outline: none;
    border-color: #2E75B6;
    box-shadow: 0 0 0 3px rgba(46, 117, 182, 0.1);
}

.cis-char-count {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Student Dashboard */
.cis-student-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.cis-exams-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cis-exam-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.2s;
}

.cis-exam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cis-exam-card h3 {
    margin: 0 0 10px 0;
    color: #2E75B6;
}

.cis-exam-card .subject {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.cis-exam-card .action {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #2E75B6;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.cis-exam-card .action:hover {
    background: #1e5a96;
}

/* Results & Analytics */
.cis-result-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #2E75B6;
}

.cis-result-score {
    font-size: 48px;
    font-weight: bold;
    color: #2E75B6;
    margin: 10px 0;
}

.cis-result-percentage {
    font-size: 24px;
    color: #666;
}

.cis-result-feedback {
    margin-top: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    line-height: 1.6;
}

/* Buttons */
.cis-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2E75B6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.cis-btn:hover {
    background: #1e5a96;
}

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

.cis-btn-secondary:hover {
    background: #5a6268;
}

.cis-btn-danger {
    background: #dc3545;
}

.cis-btn-danger:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .cis-exam-container {
        padding: 15px;
    }
    
    .cis-exam-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cis-question-content {
        margin-left: 0;
    }
    
    .cis-tf-options {
        flex-direction: column;
    }
}
