/**
 * CK Mock Test System - Main Styles
 */

/* Global Styles */
.ck-mock-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Messages */
.ck-mock-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
}

.ck-mock-message.ck-mock-info {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    color: #1976D2;
}

.ck-mock-message.ck-mock-success {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    color: #2e7d32;
}

.ck-mock-message.ck-mock-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.ck-mock-message.ck-mock-warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
}

/* Buttons */
.ck-mock-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ck-mock-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.ck-mock-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.ck-mock-btn-secondary {
    background: #6c757d;
    color: #fff;
}

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

.ck-mock-btn-danger {
    background: #dc3545;
    color: #fff;
}

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

.ck-mock-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

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

/* Forms */
.ck-mock-form {
    max-width: 500px;
    margin: 0 auto;
}

.ck-mock-form-group {
    margin-bottom: 20px;
}

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

.ck-mock-form-group input[type="text"],
.ck-mock-form-group input[type="email"],
.ck-mock-form-group input[type="tel"],
.ck-mock-form-group input[type="password"],
.ck-mock-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.ck-mock-form-group input:focus,
.ck-mock-form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.ck-mock-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.ck-mock-form-message {
    margin-top: 15px;
}

/* Auth Container */
.ck-mock-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    padding: 20px;
}

.ck-mock-auth-form {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.ck-mock-auth-form h2 {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.ck-mock-auth-links {
    margin-top: 20px;
    text-align: center;
}

.ck-mock-auth-links a {
    color: #667eea;
    text-decoration: none;
}

.ck-mock-auth-links a:hover {
    text-decoration: underline;
}

/* OTP Verification */
.ck-mock-otp-verification {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ck-mock-otp-verification h3 {
    margin-top: 0;
    font-size: 18px;
}

.ck-mock-otp-method {
    margin-bottom: 15px;
}

.ck-mock-otp-method label {
    display: inline-block;
    margin-right: 20px;
}

.ck-mock-otp-verified {
    padding: 15px;
    background: #e8f5e9;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 600;
}

.ck-mock-success-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #4CAF50;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
}

/* Tests Grid */
.ck-mock-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.ck-mock-test-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ck-mock-test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ck-mock-test-badge {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.stream-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.stream-badge.science {
    background: #e3f2fd;
    color: #1976d2;
}

.stream-badge.arts {
    background: #f3e5f5;
    color: #7b1fa2;
}

.stream-badge.commerce {
    background: #fff3e0;
    color: #f57c00;
}

.free-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #4caf50;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ck-mock-test-title {
    margin: 15px 0;
    font-size: 20px;
    color: #333;
}

.ck-mock-test-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.meta-icon {
    font-size: 16px;
}

.ck-mock-test-description {
    margin: 15px 0;
    color: #666;
    line-height: 1.6;
}

.ck-mock-test-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ck-mock-test-stats .stat {
    text-align: center;
}

.ck-mock-test-stats .stat strong {
    display: block;
    font-size: 24px;
    color: #667eea;
}

.ck-mock-test-stats .stat span {
    font-size: 12px;
    color: #666;
}

.ck-mock-test-actions {
    margin-top: 20px;
}

.ck-mock-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

/* Dashboard */
.ck-mock-dashboard {
    padding: 20px;
}

.ck-mock-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ck-mock-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ck-mock-stat-card {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ck-mock-stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.ck-mock-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.ck-mock-dashboard-section {
    margin-bottom: 40px;
}

.ck-mock-dashboard-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Table */
.ck-mock-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ck-mock-table thead {
    background: #f8f9fa;
}

.ck-mock-table th,
.ck-mock-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.ck-mock-table th {
    font-weight: 600;
    color: #333;
}

.ck-mock-table tbody tr:hover {
    background: #f8f9fa;
}

.ck-mock-score {
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
}

.ck-mock-score-pass {
    background: #e8f5e9;
    color: #2e7d32;
}

.ck-mock-score-fail {
    background: #ffebee;
    color: #c62828;
}

.ck-mock-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.ck-mock-status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.ck-mock-status-in_progress {
    background: #fff3e0;
    color: #f57c00;
}

/* Responsive */
@media (max-width: 768px) {
    .ck-mock-tests-grid {
        grid-template-columns: 1fr;
    }

    .ck-mock-dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .ck-mock-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .ck-mock-table {
        font-size: 14px;
    }

    .ck-mock-table th,
    .ck-mock-table td {
        padding: 10px;
    }
}

/* Loading */
.ck-mock-loading {
    text-align: center;
    padding: 40px;
}

.ck-mock-loading:after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: ck-mock-spin 1s linear infinite;
}

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