/* QuizMaster Theme - User Panel Only */

.quizmaster-user-panel {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: hsl(220, 20%, 97%);
    color: hsl(224, 71%, 4%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100vh;
}

.quizmaster-user-panel body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.quizmaster-wrapper {
    display: flex;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

/* Sidebar - Hidden */
.quizmaster-sidebar {
    display: none !important;
}

.quizmaster-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Logo */
.quizmaster-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid hsl(220, 13%, 91%);
    height: 64px;
}

.quizmaster-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.quizmaster-logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    border-radius: 1.8rem;
    color: white;
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.4);
}

.quizmaster-logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quizmaster-sidebar-close {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(220, 9%, 46%);
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

@media (min-width: 1024px) {
    .quizmaster-sidebar-close {
        display: none;
    }
}

.quizmaster-sidebar-close:hover {
    background: hsl(220, 14%, 96%);
}

/* Navigation */
.quizmaster-nav {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quizmaster-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 1.8rem;
    text-decoration: none;
    color: hsl(220, 9%, 46%);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.quizmaster-nav-link:hover {
    background: hsl(243, 75%, 97%);
    color: hsl(243, 75%, 59%);
}

.quizmaster-nav-link.active {
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    color: white;
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.4);
}

.quizmaster-nav-link svg {
    flex-shrink: 0;
}

/* User Section */
.quizmaster-user-section {
    padding: 16px;
    border-top: 1px solid hsl(220, 13%, 91%);
}

.quizmaster-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 1.8rem;
    background: hsl(220, 14%, 96%);
    position: relative;
}

.quizmaster-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.quizmaster-user-info {
    flex: 1;
    min-width: 0;
}

.quizmaster-user-name {
    font-size: 14px;
    font-weight: 600;
    color: hsl(224, 71%, 4%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quizmaster-user-role {
    font-size: 12px;
    color: hsl(220, 9%, 46%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quizmaster-user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid hsl(220, 13%, 91%);
    border-radius: 1.8rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    display: none;
    z-index: 100;
}

.quizmaster-user-card:hover .quizmaster-user-dropdown {
    display: block;
}

.quizmaster-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: hsl(224, 71%, 4%);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    margin: 2px 4px;
}

.quizmaster-dropdown-item:first-of-type {
    margin-top: 0;
}

.quizmaster-dropdown-item:last-child {
    margin-bottom: 0;
}

.quizmaster-dropdown-item:hover {
    background: hsl(243, 75%, 97%);
    color: hsl(243, 75%, 59%);
}

.quizmaster-dropdown-item:hover svg {
    color: hsl(243, 75%, 59%);
}

.quizmaster-dropdown-item svg {
    flex-shrink: 0;
    color: hsl(220, 9%, 46%);
    transition: all 0.2s ease;
    transition: all 0.2s ease;
    color: hsl(220, 9%, 46%);
}

/* Main Content */
.quizmaster-main {
    flex: 1;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background: hsl(220, 20%, 97%);
}

@media (min-width: 1024px) {
    .quizmaster-main {
        margin-left: 0;
    }
}



/* Header */
.quizmaster-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(220, 13%, 91%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quizmaster-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quizmaster-header-left .quizmaster-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.quizmaster-header-left .quizmaster-logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    border-radius: 1.8rem;
    color: white;
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.4);
}

.quizmaster-header-left .quizmaster-logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quizmaster-header-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: hsl(220, 9%, 46%);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.quizmaster-header-nav:hover {
    background: hsl(220, 14%, 96%);
    color: hsl(224, 71%, 4%);
}

.quizmaster-header-nav.active {
    background: hsl(243, 75%, 97%);
    color: hsl(243, 75%, 59%);
}

.quizmaster-header-nav svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .quizmaster-header-nav span {
        display: none;
    }

    .quizmaster-header-nav {
        padding: 8px 10px;
    }
}

.quizmaster-header-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quizmaster-user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 12px;
    background: hsl(220, 20%, 97%);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quizmaster-user-profile-trigger:hover {
    background: hsl(220, 13%, 91%);
    border-color: hsl(220, 13%, 85%);
}

.quizmaster-user-avatar-small {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.quizmaster-user-profile-trigger:hover .quizmaster-user-avatar-small {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.quizmaster-user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.quizmaster-user-name {
    font-weight: 600;
    font-size: 14px;
    color: hsl(224, 71%, 4%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quizmaster-user-role {
    font-size: 12px;
    color: hsl(220, 9%, 46%);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quizmaster-dropdown-arrow {
    color: hsl(220, 9%, 46%);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.quizmaster-header-user.active .quizmaster-dropdown-arrow {
    transform: rotate(180deg);
}

.quizmaster-user-dropdown-header {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    min-width: 240px;
    border: 1px solid hsl(220, 13%, 91%);
}

.quizmaster-header-user.active .quizmaster-user-dropdown-header {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quizmaster-dropdown-email-section {
    padding: 12px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, hsl(220, 20%, 97%) 0%, hsl(220, 13%, 91%) 100%);
    border-radius: 8px;
    border: 1px solid hsl(220, 13%, 85%);
}

.quizmaster-dropdown-email-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: hsl(220, 9%, 46%);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quizmaster-dropdown-email-label svg {
    color: hsl(243, 75%, 59%);
    flex-shrink: 0;
}

.quizmaster-dropdown-email-value {
    background: white;
    border: 1px solid hsl(220, 13%, 85%);
    border-radius: 8px;
    padding: 10px 12px;
    color: hsl(224, 71%, 4%);
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
    letter-spacing: -0.2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quizmaster-header-spacer {
    flex: 1;
}

.quizmaster-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .quizmaster-header-actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .quizmaster-header-actions {
        display: none;
    }
    
    .quizmaster-user-profile-trigger {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .quizmaster-user-info {
        display: none;
    }
    
    .quizmaster-dropdown-arrow {
        display: none;
    }
    
    .quizmaster-user-dropdown-header {
        min-width: 200px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .quizmaster-user-dropdown-header {
        min-width: calc(100vw - 40px);
        right: 0;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .quizmaster-header-user.active .quizmaster-user-dropdown-header {
        transform: translateX(-50%) translateY(0);
    }
}

.quizmaster-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.4);
}

.quizmaster-browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.6);
}

.quizmaster-browse-btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .quizmaster-browse-btn span {
        display: none;
    }

    .quizmaster-browse-btn {
        padding: 10px 12px;
    }
}

@media (min-width: 640px) {
    .quizmaster-browse-btn span {
        display: inline;
    }
}

.quizmaster-back-to-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(221, 83%, 53%) 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    white-space: nowrap;
}

.quizmaster-back-to-admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, hsl(217, 91%, 55%) 0%, hsl(221, 83%, 48%) 100%);
}

.quizmaster-back-to-admin-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .quizmaster-back-to-admin-btn span {
        display: none;
    }

    .quizmaster-back-to-admin-btn {
        padding: 10px 12px;
    }
}

@media (min-width: 640px) {
    .quizmaster-back-to-admin-btn span {
        display: inline;
    }
}

.quizmaster-switch-panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, hsl(142, 76%, 36%) 0%, hsl(142, 70%, 45%) 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 10px 40px -10px rgba(34, 197, 94, 0.4);
    cursor: pointer;
    white-space: nowrap;
}

.quizmaster-switch-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(34, 197, 94, 0.6);
    background: linear-gradient(135deg, hsl(142, 76%, 32%) 0%, hsl(142, 70%, 40%) 100%);
}

.quizmaster-switch-panel-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .quizmaster-switch-panel-btn span {
        display: none;
    }

    .quizmaster-switch-panel-btn {
        padding: 10px 12px;
    }
}

@media (min-width: 640px) {
    .quizmaster-switch-panel-btn span {
        display: inline;
    }
}

/* Content Area */
.quizmaster-content {
    flex: 1;
    padding: 20px;
    min-height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    background: hsl(220, 20%, 97%);
}

@media (min-width: 1024px) {
    .quizmaster-content {
        padding: 24px 40px;
    }
}

@media (min-width: 1280px) {
    .quizmaster-content {
        padding: 24px 60px;
    }
}

/* Remove any default margins/padding that might cause blank spaces */
.quizmaster-content > *:first-child {
    margin-top: 0 !important;
}

.quizmaster-content > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

.quizmaster-content > * {
    width: 100%;
    box-sizing: border-box;
}

/* Dashboard Styles */
.quizmaster-dashboard {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    min-height: auto;
}

.quizmaster-dashboard > *:first-child {
    margin-top: 0;
}

.quizmaster-dashboard > *:last-child {
    margin-bottom: 0;
    padding-bottom: 20px;
}

/* Remove body margin/padding */
.quizmaster-user-panel,
.quizmaster-user-panel * {
    box-sizing: border-box;
}

/* Ensure no extra spacing */
.quizmaster-user-panel html,
.quizmaster-user-panel body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Sidebar Backdrop for Mobile */
@media (max-width: 1023px) {
    .quizmaster-sidebar.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(4px);
        z-index: -1;
    }
}

/* Override existing styles for user panel */
.quizmaster-user-panel .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.quizmaster-user-panel .stat-card {
    background: white;
    border: 1px solid hsl(220, 13%, 91%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.quizmaster-user-panel .stat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.quizmaster-user-panel .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quizmaster-user-panel .stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: hsl(224, 71%, 4%);
}

.quizmaster-user-panel .stat-content p {
    font-size: 13px;
    color: hsl(220, 9%, 46%);
    margin: 0;
}

/* Quiz Cards */
.quizmaster-user-panel .exam-card {
    background: white;
    border: 1px solid hsl(220, 13%, 91%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.quizmaster-user-panel .exam-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.quizmaster-user-panel .exam-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: hsl(142, 76%, 36%);
    transition: width 0.3s;
}

.quizmaster-user-panel .exam-card:hover::before {
    width: 6px;
}

/* Buttons */
.quizmaster-user-panel .btn-primary {
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.4);
}

.quizmaster-user-panel .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.6);
}

/* Breadcrumb */
.quizmaster-user-panel .breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: hsl(220, 9%, 46%);
}

.quizmaster-user-panel .breadcrumb a {
    color: hsl(243, 75%, 59%);
    text-decoration: none;
}

.quizmaster-user-panel .breadcrumb a:hover {
    text-decoration: underline;
}


/* Welcome Banner */
.quizmaster-welcome-banner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 32px;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(271, 81%, 56%) 50%, hsl(280, 85%, 65%) 100%);
    color: white;
    margin: 0;
}

.quizmaster-sparkles-icon {
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}


.quizmaster-welcome-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.quizmaster-welcome-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.quizmaster-welcome-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .quizmaster-welcome-title {
        font-size: 36px;
    }
}

.quizmaster-welcome-text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.5;
}

.quizmaster-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    border-radius: 1.4rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    line-height: 1.5rem;
}

.quizmaster-start-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.quizmaster-welcome-decorations {
    position: absolute;
    right: 0;
    top: 0;
    width: 33%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
}

.quizmaster-deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(40px);
}

.quizmaster-deco-circle.deco-1 {
    right: 32px;
    top: 32px;
    width: 128px;
    height: 128px;
}

.quizmaster-deco-circle.deco-2 {
    right: 96px;
    bottom: 32px;
    width: 96px;
    height: 96px;
}

.quizmaster-deco-circle.deco-3 {
    right: -64px;
    top: -64px;
    width: 256px;
    height: 256px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    filter: none;
}

/* Stats Grid */
.quizmaster-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0;
}

@media (max-width: 1024px) {
    .quizmaster-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .quizmaster-stats-grid {
        grid-template-columns: 1fr;
    }
}

.quizmaster-stat-card {
    background: transparent;
    border: none;
    border-radius: 1.8rem;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.quizmaster-stat-card[href] {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.quizmaster-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.quizmaster-stat-card[href]:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    cursor: pointer;
}

.quizmaster-stat-card.stat-primary {
    background: transparent;
}

.quizmaster-stat-card.stat-success {
    background: transparent;
}

.quizmaster-stat-card.stat-info {
    background: transparent;
}

.quizmaster-stat-card.stat-warning {
    background: transparent;
}


.quizmaster-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    align-self: center;
}

.quizmaster-stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-primary .quizmaster-stat-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.stat-success .quizmaster-stat-icon {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
}

.stat-info .quizmaster-stat-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.stat-warning .quizmaster-stat-icon {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.quizmaster-stat-content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.quizmaster-stat-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quizmaster-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: hsl(220, 9%, 46%);
    margin: 0;
}

.quizmaster-stat-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.quizmaster-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: hsl(224, 71%, 4%);
    line-height: 1.2;
}

.quizmaster-stat-trend {
    font-size: 12px;
    font-weight: 600;
    color: hsl(142, 76%, 36%);
}

.quizmaster-stat-trend.trend-positive {
    color: hsl(142, 76%, 36%);
}

.quizmaster-stat-trend.trend-negative {
    color: hsl(0, 84%, 60%);
}

.quizmaster-stat-subtitle {
    font-size: 12px;
    color: hsl(220, 9%, 46%);
    margin: 0;
}

/* Progress Cards */
.quizmaster-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 0;
}

.quizmaster-progress-card {
    background: white;
    border: 1px solid hsl(220, 13%, 91%);
    border-radius: 1.25rem;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quizmaster-flame-icon {
    color: #f59e0b;
    animation: pulse 2s ease-in-out infinite;
}

.quizmaster-trending-icon {
    color: hsl(243, 75%, 59%);
}

.quizmaster-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.quizmaster-progress-title {
    font-size: 18px;
    font-weight: 600;
    color: hsl(224, 71%, 4%);
    margin: 0;
}

.quizmaster-progress-icon {
    flex-shrink: 0;
}

.quizmaster-progress-icon {
    flex-shrink: 0;
}

.quizmaster-progress-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.quizmaster-streak-days {
    font-size: 36px;
    font-weight: 700;
    color: #f59e0b;
}

.quizmaster-streak-label {
    font-size: 16px;
    color: hsl(220, 9%, 46%);
}

.quizmaster-streak-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.quizmaster-streak-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: hsl(220, 14%, 96%);
    transition: background 0.3s;
}

.quizmaster-streak-bar.active {
    background: #f59e0b;
}

.quizmaster-level-text {
    font-size: 20px;
    font-weight: 700;
    color: hsl(243, 75%, 59%);
}

.quizmaster-level-next {
    font-size: 18px;
    color: hsl(220, 9%, 46%);
}

.quizmaster-level-arrow {
    font-size: 18px;
    color: hsl(220, 9%, 46%);
}

.quizmaster-level-next {
    font-size: 18px;
    color: hsl(220, 9%, 46%);
}

.quizmaster-level-progress {
    position: relative;
    height: 12px;
    border-radius: 6px;
    background: hsl(220, 14%, 96%);
    overflow: hidden;
    margin-bottom: 12px;
}

.quizmaster-level-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    border-radius: 6px;
    transition: width 1s ease-out;
}

.quizmaster-progress-text {
    font-size: 13px;
    color: hsl(220, 9%, 46%);
    margin: 0;
}

/* Sections */
.quizmaster-section {
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quizmaster-section:first-of-type {
    margin-top: 0;
}

.quizmaster-section:last-of-type {
    margin-bottom: 0;
}

.quizmaster-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.quizmaster-section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quizmaster-live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsl(142, 76%, 36%);
    animation: pulse 2s ease-in-out infinite;
}

.quizmaster-section-title {
    font-size: 20px;
    font-weight: 700;
    color: hsl(224, 71%, 4%);
    margin: 0;
}

.quizmaster-section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: hsl(243, 75%, 59%);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.quizmaster-section-link:hover {
    color: hsl(280, 85%, 65%);
}

.quizmaster-quiz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0;
}

.quizmaster-quiz-grid > :only-child {
    max-width: 50%;
}

@media (max-width: 1024px) {
    .quizmaster-quiz-grid {
        grid-template-columns: 1fr;
    }

    .quizmaster-quiz-grid > :only-child {
        max-width: 100%;
    }
}

/* Remove extra spacing */
.quizmaster-user-panel .breadcrumb {
    display: none !important;
}

.quizmaster-user-panel .alert {
    margin-bottom: 16px;
    margin-top: 0;
}


/* Responsive */
@media (max-width: 640px) {
    .quizmaster-content {
        padding: 16px;
    }

    .quizmaster-dashboard {
        gap: 24px;
    }

    .quizmaster-welcome-banner {
        padding: 24px;
    }

    .quizmaster-welcome-title {
        font-size: 24px;
    }

    .quizmaster-welcome-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .quizmaster-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quizmaster-progress-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quizmaster-quiz-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quizmaster-stat-card {
        padding: 14px;
    }

    .quizmaster-stat-value {
        font-size: 24px;
    }

    .quizmaster-stat-icon {
        width: 36px;
        height: 36px;
    }

    .quizmaster-stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .quizmaster-content {
        padding: 16px 20px;
    }

    .quizmaster-progress-card {
        padding: 20px;
    }

    .quizmaster-streak-days {
        font-size: 32px;
    }
}

/* ============================================
   QuizMaster Login & Auth Pages Styles
   ============================================ */

.quizmaster-login-page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.quizmaster-login-wrapper {
    min-height: 100vh;
    display: flex;
    background: hsl(220, 20%, 97%);
}

.quizmaster-login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Side - Branding */
.quizmaster-login-branding {
    flex: 1;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .quizmaster-login-branding {
        display: flex;
    }
}

.quizmaster-login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.quizmaster-login-brand-content {
    position: relative;
    z-index: 1;
}

.quizmaster-login-logo-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.quizmaster-login-brand-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.quizmaster-login-brand-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px 0;
}

.quizmaster-login-brand-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 400px;
}

.quizmaster-login-brand-footer {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Right Side - Login Form */
.quizmaster-login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: hsl(220, 20%, 97%);
}

.quizmaster-login-form-container {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: 1.8rem;
    padding: 40px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    border: 1px solid hsl(220, 13%, 91%);
}

/* Mobile Logo */
.quizmaster-login-mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid hsl(220, 13%, 91%);
}

@media (min-width: 1024px) {
    .quizmaster-login-mobile-logo {
        display: none;
    }
}

.quizmaster-login-logo-icon-small {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    border-radius: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.4);
}

.quizmaster-login-mobile-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.quizmaster-login-header {
    margin-bottom: 32px;
}

.quizmaster-login-title {
    font-size: 28px;
    font-weight: 700;
    color: hsl(224, 71%, 4%);
    margin: 0 0 8px 0;
}

.quizmaster-login-subtitle {
    font-size: 15px;
    color: hsl(220, 9%, 46%);
    margin: 0;
}

/* Form Styles */
.quizmaster-login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quizmaster-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quizmaster-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: hsl(224, 71%, 4%);
}

.quizmaster-form-icon {
    color: hsl(220, 9%, 46%);
    flex-shrink: 0;
}

.quizmaster-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid hsl(220, 13%, 91%);
    border-radius: 1.8rem;
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: hsl(224, 71%, 4%);
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
}

.quizmaster-form-input::placeholder {
    color: hsl(220, 9%, 60%);
}

.quizmaster-form-input:focus {
    outline: none;
    border-color: hsl(243, 75%, 59%);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.quizmaster-input-error {
    border-color: #ef4444;
}

.quizmaster-input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.quizmaster-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.quizmaster-password-wrapper .quizmaster-form-input {
    padding-right: 50px;
}

.quizmaster-password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(220, 9%, 46%);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.quizmaster-password-toggle:hover {
    color: hsl(243, 75%, 59%);
}

.quizmaster-eye-icon {
    display: block;
}

.quizmaster-eye-icon.hidden {
    display: none;
}

.quizmaster-error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
}

.quizmaster-error-message svg {
    flex-shrink: 0;
}

/* Form Options */
.quizmaster-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.quizmaster-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.quizmaster-checkbox {
    display: none;
}

.quizmaster-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid hsl(220, 13%, 91%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: white;
}

.quizmaster-checkbox:checked + .quizmaster-checkbox-custom {
    background: hsl(243, 75%, 59%);
    border-color: hsl(243, 75%, 59%);
}

.quizmaster-checkbox:checked + .quizmaster-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.quizmaster-checkbox-text {
    font-size: 14px;
    color: hsl(224, 71%, 4%);
}

.quizmaster-forgot-link {
    color: hsl(243, 75%, 59%);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.quizmaster-forgot-link:hover {
    color: hsl(280, 85%, 65%);
    text-decoration: underline;
}

.quizmaster-login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, hsl(243, 75%, 59%) 0%, hsl(280, 85%, 65%) 100%);
    color: white;
    border: none;
    border-radius: 1.8rem;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.4);
}

.quizmaster-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.6);
}

.quizmaster-login-button:active {
    transform: translateY(0);
}

.quizmaster-login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.quizmaster-alert {
    padding: 16px 20px;
    border-radius: 1.8rem;
    margin-bottom: 24px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quizmaster-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #065f46;
}

.quizmaster-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #991b1b;
}

.quizmaster-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #92400e;
}

.quizmaster-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #1e40af;
}

/* Responsive */
@media (max-width: 640px) {
    .quizmaster-login-form-container {
        padding: 32px 24px;
    }
    
    .quizmaster-login-title {
        font-size: 24px;
    }
    
    .quizmaster-login-subtitle {
        font-size: 14px;
    }
}

