/**
 * CUCET Mock Test Plugin Styles
 */

/* Global Styles */
.cucet-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.cucet-register-box,
.cucet-login-box {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cucet-register-box h2,
.cucet-login-box h2 {
    color: #d32f2f;
    text-align: center;
    margin-bottom: 10px;
}

.cucet-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Form Styles */
.cucet-form-group {
    margin-bottom: 20px;
}

.cucet-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.cucet-form-group input[type="text"],
.cucet-form-group input[type="email"],
.cucet-form-group input[type="tel"],
.cucet-form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.cucet-form-group input:focus {
    outline: none;
    border-color: #d32f2f;
}

.required {
    color: #d32f2f;
}

/* Button Styles */
.cucet-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cucet-btn-primary {
    background: #d32f2f;
    color: #fff;
    width: 100%;
}

.cucet-btn-primary:hover {
    background: #b71c1c;
}

.cucet-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 5px;
}

.cucet-btn-link {
    background: none;
    color: #d32f2f;
    text-decoration: underline;
    padding: 5px;
}

.cucet-btn-danger {
    background: #f44336;
    color: #fff;
}

/* Alert Styles */
.cucet-alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cucet-alert.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.cucet-alert.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Modal Styles */
.cucet-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cucet-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cucet-modal-content.large {
    max-width: 800px;
}

.cucet-close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.cucet-close:hover {
    color: #000;
}

/* OTP Verification */
.cucet-otp-section {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.cucet-otp-section h4 {
    margin-top: 0;
}

.cucet-status {
    margin-top: 10px;
}

.cucet-status .success {
    color: #4caf50;
    font-weight: bold;
}

.cucet-status .error {
    color: #f44336;
}

/* Dashboard Styles */
.cucet-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cucet-header {
    text-align: center;
    margin-bottom: 40px;
}

.cucet-header h1 {
    color: #d32f2f;
    margin-bottom: 10px;
}

.cucet-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cucet-course-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.cucet-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cucet-course-card h3 {
    color: #d32f2f;
    margin-top: 0;
}

.cucet-progress {
    margin: 15px 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s;
}

/* Table Styles */
.cucet-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

.cucet-table th,
.cucet-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cucet-table th {
    background: #d32f2f;
    color: #fff;
    font-weight: 600;
}

.cucet-table tr:hover {
    background: #f5f5f5;
}

/* Test Interface Styles */
.cucet-test-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.cucet-test-header {
    grid-column: 1 / -1;
    background: #d32f2f;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cucet-test-header h2 {
    margin: 0;
    color: #fff;
}

.test-timer {
    font-size: 24px;
    font-weight: bold;
}

.timer-value.warning {
    color: #ffeb3b;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

/* Question Navigation */
.cucet-question-nav {
    grid-column: 1 / -1;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

#question-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.question-number-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.question-number-box:hover {
    background: #f5f5f5;
}

.question-number-box.current {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

.question-number-box.answered {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

.question-number-box.review {
    background: #ff9800;
    color: #fff;
    border-color: #ff9800;
}

/* Question Display */
.cucet-question-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.question-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.question-options {
    margin: 20px 0;
}

.option-label {
    display: block;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-label:hover {
    background: #f5f5f5;
    border-color: #2196f3;
}

.option-label input[type="radio"] {
    margin-right: 10px;
}

.option-label input[type="radio"]:checked + .option-text {
    font-weight: bold;
}

/* Test Controls */
.cucet-test-controls {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-buttons {
    margin-left: auto;
}

/* Test Sidebar */
.cucet-test-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cucet-test-sidebar h3 {
    margin-top: 0;
    color: #d32f2f;
}

.summary-stats {
    margin: 20px 0;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.stat-value {
    font-weight: bold;
    color: #d32f2f;
}

.legend {
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.legend-item .box {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    margin-right: 10px;
    border-radius: 3px;
}

.legend-item .box.answered {
    background: #4caf50;
    border-color: #4caf50;
}

.legend-item .box.review {
    background: #ff9800;
    border-color: #ff9800;
}

.legend-item .box.current {
    background: #2196f3;
    border-color: #2196f3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cucet-test-container {
        grid-template-columns: 1fr;
    }

    .cucet-test-header {
        flex-direction: column;
        gap: 10px;
    }

    .cucet-courses-grid {
        grid-template-columns: 1fr;
    }

    .cucet-test-sidebar {
        position: static;
    }
}
