/**
 * MockMaster Custom Styles
 */

/* General Styles */
html {
    scroll-behavior: smooth;
}

/* Ad Container Styles */
.ad-container {
    min-height: 90px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container ins {
    display: block !important;
}

/* Navigation Dropdown */
.group:hover .group-hover\:block {
    display: block;
}

/* Question Option Styles */
.option-label {
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    background-color: #f0fdf4;
    border-color: #10b981;
}

.option-label.selected {
    background-color: #d1fae5;
    border-color: #10b981;
}

.option-label.correct {
    background-color: #dcfce7;
    border-color: #22c55e;
}

.option-label.incorrect {
    background-color: #fee2e2;
    border-color: #ef4444;
}

/* Quiz Palette Button Styles */
.palette-btn {
    transition: all 0.2s ease;
}

.palette-btn:hover {
    transform: scale(1.05);
}

.palette-btn.answered {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

.palette-btn.marked {
    background-color: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.palette-btn.current {
    box-shadow: 0 0 0 3px #fbbf24;
}

/* Timer Warning Animation */
.timer-warning {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Progress Bar Animation */
.progress-bar {
    transition: width 0.3s ease;
}

/* Loader Spinner */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print Styles */
@media print {
    .no-print,
    .ad-container,
    nav,
    footer,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .bg-gradient-to-r {
        background: #10b981 !important;
        -webkit-print-color-adjust: exact;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .ad-container {
        min-height: 50px;
    }

    .palette-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* Prose Adjustments */
.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin: 1rem 0;
}

.prose p {
    margin-bottom: 1rem;
}

/* Focus States for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    font-weight: 600;
    background-color: #f8fafc;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Empty State */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}
