/* WP Quiz Plugin - Optimized Design */
.wp-quiz-container {
    max-width: 1000px;
    margin: 1rem auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    color: white;
    position: relative;
    overflow: hidden;
}

.wp-quiz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.wp-quiz-container h2 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.wp-quiz-container h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.wp-quiz-form {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin: 1rem 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    color: #333;
}

.form-control:focus {
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 3px 10px rgba(149, 165, 166, 0.3);
    margin-bottom: 1rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

.questions-wrapper {
    margin: 1.5rem 0;
}

.question-block {
    background: white;
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.question-block:hover {
    transform: translateX(3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.question-text {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    color: #333;
}

.option-label:hover {
    background: #e3f2fd;
    border-color: #3498db;
}

.option-label input[type="radio"] {
    margin-right: 0.8rem;
    transform: scale(1.1);
}

.quizzes-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.quiz-item {
    background: white;
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #27ae60;
}

.quiz-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.quiz-header strong {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 700;
}

.quiz-meta {
    color: #7f8c8d;
    font-size: 0.8rem;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.quiz-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.quiz-url-input {
    padding: 0.6rem 0.8rem;
    border: 1px solid #e3f2fd;
    border-radius: 6px;
    background: #fafbfc;
    min-width: 250px;
    font-size: 0.8rem;
    color: #333;
}

.btn-copy-link {
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-copy-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(39, 174, 96, 0.4);
}

.quiz-stats {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.results-count {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.view-results-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.view-results-link:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
}

.results-list {
    list-style: none;
    padding: 0;
}

.result-item {
    background: white;
    padding: 1rem;
    margin: 0.8rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.result-score {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #7f8c8d;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.view-details-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-details-link:hover {
    background: #3498db;
    color: white;
    text-decoration: none;
}

.quiz-review, .student-quiz-review {
    margin: 1.5rem 0;
}

.review-question-block {
    background: white;
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #bdc3c7;
}

.review-question-block.correct {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #f8fff8, #f0fff0);
}

.review-question-block.incorrect {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fff8f8, #fff0f0);
}

.review-question-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.question-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-correct {
    background: linear-gradient(135deg, #27ae60, #219653);
    color: white;
}

.status-incorrect {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.question-options-review {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.option-review {
    padding: 0.8rem 1rem;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    color: #333;
}

.option-review.correct-answer {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #27ae60;
}

.option-review.wrong-answer {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #e74c3c;
}

.option-review label {
    display: flex;
    align-items: center;
    cursor: default;
    color: #333;
}

.option-review input[type="radio"] {
    margin-right: 0.8rem;
    transform: scale(1.1);
}

.correct-indicator, .wrong-indicator {
    margin-left: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.correct-indicator {
    background: #27ae60;
    color: white;
}

.wrong-indicator {
    background: #e74c3c;
    color: white;
}

.answer-feedback {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 6px;
    border-left: 3px solid #f39c12;
}

.answer-feedback p {
    margin: 0.3rem 0;
    font-weight: 600;
    color: #333;
}

.wp-quiz-message, .wp-quiz-error {
    padding: 1rem;
    border-radius: 8px;
    margin: 0.8rem 0;
    font-weight: 600;
    text-align: center;
}

.wp-quiz-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #27ae60;
    color: #155724;
}

.wp-quiz-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #e74c3c;
    color: #721c24;
}

.form-submit {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e8f4f8;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-back:hover {
    transform: translateX(-3px);
    box-shadow: 0 3px 8px rgba(149, 165, 166, 0.4);
    color: white;
    text-decoration: none;
}

.btn-remove-question {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
}

.btn-remove-question:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.4);
}

.wp-quiz-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.wp-quiz-table th,
.wp-quiz-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    color: #333;
}

.wp-quiz-table th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.wp-quiz-table tr:hover {
    background: #f8f9fa;
}

.wp-quiz-table tr:last-child td {
    border-bottom: none;
}

.quiz-statistics {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.8rem;
    font-weight: 600;
}

.percentage.high-score { 
    color: #27ae60; 
    font-weight: bold;
    background: #d4edda;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
}
.percentage.medium-score { 
    color: #f39c12; 
    font-weight: bold;
    background: #fff3cd;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
}
.percentage.low-score { 
    color: #e74c3c; 
    font-weight: bold;
    background: #f8d7da;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.btn-view-details {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-quiz-container > * {
    animation: fadeIn 0.4s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wp-quiz-container {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .wp-quiz-container h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .wp-quiz-container h3 {
        font-size: 1.1rem;
        margin: 1rem 0 0.8rem 0;
    }
    
    .wp-quiz-form {
        padding: 1rem;
        margin: 0.8rem 0;
    }
    
    .quiz-header,
    .quiz-actions,
    .result-header,
    .result-meta,
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .quiz-link {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
    }
    
    .quiz-url-input {
        min-width: 100%;
        margin: 0.3rem 0;
        font-size: 0.9rem;
    }
    
    .question-block,
    .quiz-item,
    .result-item,
    .review-question-block {
        padding: 1rem;
        margin: 0.8rem 0;
    }
    
    .question-options,
    .question-options-review {
        gap: 0.4rem;
    }
    
    .option-label,
    .option-review {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 0.8rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .wp-quiz-table {
        font-size: 0.8rem;
    }
    
    .wp-quiz-table th,
    .wp-quiz-table td {
        padding: 0.6rem 0.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        margin: 0.3rem 0;
    }
    
    .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .quiz-actions {
        gap: 0.5rem;
    }
    
    .quiz-stats {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .wp-quiz-container {
        margin: 0.3rem;
        padding: 0.8rem;
    }
    
    .wp-quiz-container h2 {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .wp-quiz-table {
        font-size: 0.7rem;
    }
    
    .wp-quiz-table th,
    .wp-quiz-table td {
        padding: 0.5rem 0.3rem;
    }
    
}

/* Fix: Student dashboard quiz titles should be dark */
.student-dashboard .wp-quiz-container h2,
.wp-quiz-container .student-dashboard h2 {
    color: #2c3e50 !important;
}

/* Fix: Quiz question text should be dark in reviews */
.review-question-block .question-text,
.student-quiz-review .question-text {
    color: #2c3e50 !important;
}

/* Fix: Reduce tutor quiz review title size */
.wp-quiz-container h1 {
    font-size: 1.4rem !important;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

/* Ensure all question text is readable */
.question-text,
.review-question-block .question-text {
    color: #2c3e50 !important;
}

/* Fix: Student dashboard quiz titles */
.result-item strong,
.result-header strong,
.quiz-item strong {
    color: #2c3e50 !important;
}

/* Fix: Student dashboard section titles */
.student-dashboard .wp-quiz-container h3,
.my-quizzes-section h3,
.quiz-results h3 {
    color: white !important;
}

/* Fix: Quiz list items in student dashboard */
.results-list strong,
.quizzes-list strong {
    color: #2c3e50 !important;
}

/* Fix: All text inside result items */
.result-item,
.quiz-item {
    color: #333 !important;
}

/* Fix: Quiz review question text color */
.wp-quiz-container .review-question-block h3,
.wp-quiz-container .student-quiz-review h3 {
    color: #2c3e50 !important;
}

/* Login form styles */
#quiz-login-form {
    max-width: 400px;
    margin: 0 auto;
}

#quiz-login-form p {
    margin-bottom: 1rem;
}

#quiz-login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

#quiz-login-form input[type="text"],
#quiz-login-form input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafbfc;
}

#quiz-login-form input[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#quiz-login-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Updated styles for profile menu and form */
.wp-quiz-profile-menu {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.profile-icon {
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.profile-icon .dashicons {
    font-size: 1.4rem;
    width: 1.4rem;
    height: 1.4rem;
    color: #2c3e50;
}

.profile-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-links {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border: 1px solid #e3f2fd;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 0.6rem;
    z-index: 1000;
    min-width: 150px;
}

.profile-links.active {
    display: block;
}

.profile-links a {
    display: block;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.profile-links a:hover {
    background: #e3f2fd;
    color: #3498db;
}

.btn-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    color: white;
}

.wp-quiz-profile-form {
    max-width: 500px;
    margin: 1rem auto;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.wp-quiz-profile-form .profile-header p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.wp-quiz-profile-form.tutor-profile .profile-header p,
.wp-quiz-profile-form.tutor-profile .form-group label,
.wp-quiz-profile-form.tutor-profile .form-group small {
    color: #000000;
}

.wp-quiz-profile-form.student-profile .profile-header p,
.wp-quiz-profile-form.student-profile .form-group label,
.wp-quiz-profile-form.student-profile .form-group small {
    color: #2c3e50;
}

.wp-quiz-profile-form .form-group label {
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}

.wp-quiz-profile-form .form-group small {
    font-size: 0.8rem;
    display: block;
    margin-top: 0.3rem;
}

.wp-quiz-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #27ae60;
    color: #155724;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-back-dashboard {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

/* Responsive adjustments for profile menu and form */
@media (max-width: 768px) {
    .wp-quiz-profile-menu {
        margin-bottom: 0.8rem;
    }
    
    .profile-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        padding: 0.4rem;
    }
    
    .profile-icon .dashicons {
        font-size: 1.2rem;
        width: 1.2rem;
        height: 1.2rem;
    }
    
    .profile-links {
        top: 40px;
        padding: 0.5rem;
        min-width: 130px;
    }
    
    .profile-links a {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .wp-quiz-profile-form {
        max-width: 100%;
        padding: 0.8rem;
        margin: 0.8rem 0;
    }
    
    .btn-back-dashboard {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wp-quiz-profile-menu {
        margin-bottom: 0.6rem;
    }
    
    .profile-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        padding: 0.3rem;
    }
    
    .profile-icon .dashicons {
        font-size: 1rem;
        width: 1rem;
        height: 1rem;
    }
    
    .profile-links {
        top: 36px;
        padding: 0.4rem;
        min-width: 120px;
    }
    
    .profile-links a {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .wp-quiz-profile-form {
        padding: 0.6rem;
        margin: 0.6rem 0;
    }
    
    .wp-quiz-profile-form .form-group small {
        font-size: 0.7rem;
    }
    
    .btn-back-dashboard {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }
}

.wp-quiz-profile-form h2 {
    color: #000000;
}

/* New styles for option checkboxes - Center text */
.option-with-checkbox {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e3f2fd;
}

.option-with-checkbox:hover {
    background: #e3f2fd;
    border-color: #3498db;
}

.option-input {
    width: 100%;
    margin-bottom: 0.8rem;
    border: 1px solid #e3f2fd;
    border-radius: 4px;
    padding: 0.6rem;
    background: white;
    display: block;
}

.option-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.correct-answer-selector {
    display: block;
}

.correct-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
    text-align: center !important;
}

.correct-answer-radio {
    margin: 0;
    display: block;
}

.correct-answer-instruction {
    margin: 1rem 0;
    padding: 0.8rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.correct-answer-instruction small {
    color: #1976d2;
    font-weight: 600;
}

/* Validation error styling */
.question-block.validation-error {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fff8f8, #fff0f0);
    animation: shake 0.5s ease-in-out;
}

.question-block.validation-error .correct-answer-instruction {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-left-color: #e74c3c;
}

.question-block.validation-error .correct-answer-instruction small {
    color: #c62828;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .option-with-checkbox {
        padding: 0.6rem;
    }
    
    .option-input {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .correct-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
}