/*-----------------------------------
    Modern Sidebar Styles  
----------------------------------*/

/* Modern Sidebar Container */
.modern-sidebar {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(241, 137, 68, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-sidebar:hover {
    box-shadow: 0 8px 30px rgba(241, 137, 68, 0.15);
}

.sidebar-inner {
    padding: 25px 0;
}

/* User Profile Section */
.sidebar-user-section {
    padding: 0 25px 25px 25px;
    border-bottom: 2px solid var(--color-lighter);
    margin-bottom: 20px;
}

.user-avatar-modern {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(241, 137, 68, 0.3);
    transition: all 0.3s ease;
}

.avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(241, 137, 68, 0.4);
}

.user-info-modern {
    text-align: center;
}

.user-name-modern {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-heading);
    margin: 0 0 12px 0;
}

.user-stats-modern {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-body);
}

.stat-item-modern i {
    color: var(--color-primary);
    font-size: 14px;
}

/* Sidebar Navigation */
.sidebar-nav-modern {
    padding: 0 15px;
}

.sidebar-menu-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item-modern {
    margin: 0;
}

.menu-link-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-heading);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-link-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.menu-link-modern:hover {
    background: var(--color-lighter);
    color: var(--color-primary);
    transform: translateX(5px);
}

.menu-link-modern:hover::before {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.menu-link-modern.active {
    background: linear-gradient(135deg, rgba(241, 137, 68, 0.1), rgba(255, 197, 82, 0.1));
    color: var(--color-primary);
    font-weight: 600;
}

.menu-link-modern.active::before {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    width: 4px;
}

.menu-link-modern.active .menu-icon-wrapper {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(241, 137, 68, 0.3);
}

.menu-link-logout {
    color: #f5576c;
}

.menu-link-logout:hover {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
}

.menu-link-logout .menu-icon-wrapper {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
}

.menu-link-logout:hover .menu-icon-wrapper {
    background: linear-gradient(135deg, #f5576c, #fa709a);
    color: var(--color-white);
}

.menu-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.menu-link-modern:hover .menu-icon-wrapper {
    background: rgba(241, 137, 68, 0.1);
    transform: scale(1.1);
}

.menu-text-modern {
    flex: 1;
    font-weight: inherit;
}

.menu-badge-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, #f5576c, #fa709a);
    color: var(--color-white);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.menu-divider-modern {
    height: 1px;
    background: var(--color-lighter);
    margin: 10px 0;
    border: none;
}

.sidebar-divider-modern {
    height: 1px;
    background: var(--color-lighter);
    margin: 20px 25px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .modern-sidebar {
        margin-bottom: 30px;
    }

    .sidebar-inner {
        padding: 20px 0;
    }

    .sidebar-user-section {
        padding: 0 20px 20px 20px;
    }

    .avatar-circle {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .user-name-modern {
        font-size: 16px;
    }

    .user-stats-modern {
        gap: 15px;
    }

    .sidebar-nav-modern {
        padding: 0 10px;
    }

    .menu-link-modern {
        padding: 12px 15px;
        font-size: 14px;
    }

    .menu-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .modern-sidebar {
        border-radius: 12px;
    }

    .sidebar-inner {
        padding: 15px 0;
    }

    .sidebar-user-section {
        padding: 0 15px 15px 15px;
    }

    .avatar-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .user-name-modern {
        font-size: 15px;
    }

    .user-stats-modern {
        flex-direction: column;
        gap: 8px;
    }

    .stat-item-modern {
        font-size: 12px;
    }

    .sidebar-nav-modern {
        padding: 0 8px;
    }

    .menu-link-modern {
        padding: 10px 12px;
        font-size: 13px;
    }

    .menu-icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .menu-badge-modern {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/*-----------------------------------
    Matching Quiz Indigo Theme
----------------------------------*/
:root {
    --primary-indigo: #6366f1;
    --primary-indigo-light: #818cf8;
    --primary-indigo-dark: #4f46e5;
    --success-green: #10b981;
    --error-red: #ef4444;
    --border-indigo: #e0e7ff;
}

.matching-quiz-wrapper {
    padding: 2.5rem;
    background: #fdfdff;
    border-radius: 20px;
}

.matching-quiz-wrapper .matching-question {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border-indigo);
    transition: transform 0.3s ease;
}

.matching-quiz-wrapper .question-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.matching-quiz-wrapper .question-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.matching-quiz-wrapper .question-number {
    background: var(--primary-indigo);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
}

.matching-quiz-wrapper .matching-container {
    position: relative;
    margin-top: 2.5rem;
}

.matching-quiz-wrapper .matching-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.matching-quiz-wrapper .matching-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: linear-gradient(to right, #f8fafc, #eff6ff);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.matching-quiz-wrapper .matching-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.matching-quiz-wrapper .matching-item {
    padding: 1.5rem 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    position: relative;
    min-height: 80px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.matching-quiz-wrapper .left-item::before {
    content: none;
    /* Remove drag handle dots for cleaner look */
}

.matching-quiz-wrapper .matching-item:hover:not(.matched) {
    border-color: var(--primary-indigo-light);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.08);
    transform: translateY(-3px);
    background: #fafdff;
}

.matching-quiz-wrapper .matching-item.selected {
    border-color: var(--primary-indigo);
    background: #eef2ff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Dynamic Color Pairing Style */
.matching-quiz-wrapper .matching-item.item-paired,
.matching-quiz-wrapper .matching-item.matched {
    /* Background color will be set by JS dynamically */
    border-color: var(--primary-indigo) !important;
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}

/* Hide numbers completely as per user request */
.matching-quiz-wrapper .matching-item-number {
    display: none !important;
}

/* Incorrect styles removed as per user request */

.matching-quiz-wrapper .matching-item-text {
    flex: 1;
    font-size: 1.1rem;
    /* Slightly larger */
    font-weight: 600;
    /* Bolder */
    color: #1e293b;
    /* Darker slate */
    line-height: 1.5;
}

.matching-quiz-wrapper .matching-item-number {
    background: var(--primary-indigo);
    color: white;
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.matching-quiz-wrapper .right-item .matching-item-number {
    display: none;
    background: var(--success-green);
    transform: scale(0.5);
    opacity: 0;
}

.matching-quiz-wrapper .right-item.matched .matching-item-number {
    display: flex;
    transform: scale(1);
    opacity: 1;
}

.matching-quiz-wrapper .matching-item.dragging {
    opacity: 0.4;
    border-style: dashed;
    border-color: var(--primary-indigo);
    transform: scale(0.98);
}

.matching-quiz-wrapper .matching-feedback {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .matching-quiz-wrapper .matching-columns {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .matching-quiz-wrapper .matching-item {
        min-height: 60px;
        padding: 1rem 1.25rem;
    }

    .matching-quiz-wrapper {
        padding: 1.5rem;
    }
}