/* Global Vars & Reset */
:root {
    --bg-dark: #0F172A;
    --card-bg: #1E293B;
    --card-surface: #334155;
    --primary: #34D399;
    /* Mint Green */
    --secondary: #60A5FA;
    /* Blue */
    --gold: #FBBF24;
    --red: #F87171;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --border: #334155;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);

    --sidebar-width: 260px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    /* App-like feel */
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.4));
}

.feature-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.badge {
    font-size: 0.7rem;
    background: var(--card-surface);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.15), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
}

.user-info h4 {
    font-size: 0.9rem;
}

.user-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.logout-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

.logout-btn:hover {
    color: var(--red);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: radial-gradient(circle at top right, #1a273f, var(--bg-dark));
}

.top-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid var(--border);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    width: 300px;
    border: 1px solid var(--border);
}

.search-bar i {
    color: var(--text-muted);
    margin-right: 8px;
}

.search-bar input {
    background: none;
    border: none;
    outline: none;
    color: white;
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.icon-btn:hover {
    background: var(--card-surface);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

/* Views */
.view-section {
    padding: 2rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.date-filter {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(145deg, var(--card-bg), var(--card-surface));
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.mint {
    background: rgba(52, 211, 153, 0.2);
    color: var(--primary);
}

.stat-icon.gold {
    background: rgba(251, 191, 36, 0.2);
    color: var(--gold);
}

.stat-icon.blue {
    background: rgba(96, 165, 250, 0.2);
    color: var(--secondary);
}

.stat-icon.red {
    background: rgba(248, 113, 113, 0.2);
    color: var(--red);
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 500;
}

.positive {
    color: var(--primary);
}

.negative {
    color: var(--red);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.content-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
}

.content-card.full {
    background: var(--card-bg);
    /* Opaque for tables */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    padding-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    font-size: 0.9rem;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}

.status-pill {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pill.active {
    background: rgba(52, 211, 153, 0.1);
    color: var(--primary);
}

.status-pill.pending {
    background: rgba(251, 191, 36, 0.1);
    color: var(--gold);
}

.status-pill.blocked {
    background: rgba(248, 113, 113, 0.1);
    color: var(--red);
}

/* List Items */
.list-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.2s;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: white;
    color: black;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 0.9rem;
    font-weight: 500;
}

.item-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-action {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.amount {
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--card-surface);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

/* Modals */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    width: 400px;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.modal-content.large {
    width: 600px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: var(--red);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: white;
    font-family: inherit;
    outline: none;
    transition: 0.2s;
}

select option {
    background: var(--bg-dark);
    color: white;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.full-width {
    width: 100%;
    padding: 12px;
    margin-top: 1rem;
}

/* Quiz Management Layout */
.quiz-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 140px);
    /* Fill remaining height */
    overflow: hidden;
}

.categories-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.categories-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-muted);
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.category-item.active {
    background: rgba(52, 211, 153, 0.15);
    color: var(--primary);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.cat-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    /* Show on hover */
    transition: 0.2s;
}

.category-item:hover .cat-actions {
    opacity: 1;
}

.questions-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.questions-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
}

.questions-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.question-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    transition: 0.2s;
}

.question-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.q-number {
    width: 30px;
    height: 30px;
    background: var(--card-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.q-content {
    flex: 1;
}

.q-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.q-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

.q-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

/* Custom Message Modal */
.msg-modal-body {
    text-align: center;
    padding: 1rem;
}

.msg-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.msg-icon.success {
    color: var(--primary);
}

.msg-icon.error {
    color: var(--red);
}

/* Chip style for bonus buttons */
.btn-xs-chip {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-xs-chip:hover {
    background: var(--primary);
    color: #000;
}

/* Responsive Design for Edit User Modal */
@media (max-width: 900px) {

    /* Stack columns vertically on tablets */
    #modal-edit-user .modal-content {
        max-width: 600px !important;
        width: 95% !important;
    }

    #modal-edit-user form>div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {

    /* Mobile optimization */
    #modal-edit-user .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }

    #modal-edit-user form {
        max-height: calc(100vh - 70px) !important;
    }

    /* Stack action buttons vertically on mobile */
    #modal-edit-user form>div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Adjust card padding for mobile */
    #modal-edit-user .modal-content>div>div[style*="padding: 24px"],
    #modal-edit-user .modal-content>div>div[style*="padding: 20px"] {
        padding: 16px !important;
    }

    /* Make quiz stats stack better on mobile */
    #modal-edit-user div[style*="grid-template-columns: repeat(3, 1fr)"] {
        gap: 8px !important;
    }
}

/* Hover effects for cards */
#modal-edit-user .modal-content>form>div>div>div {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#modal-edit-user .modal-content>form>div>div>div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Button hover effects */
#modal-edit-user button:not([type="submit"]):hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

#modal-edit-user button[type="submit"]:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.4);
}

/* Responsive Design for Transaction History Modal */
@media (max-width: 700px) {
    #modal-user-history .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }

    #modal-user-history .modal-content>div:first-child {
        padding: 20px 20px !important;
    }

    #modal-user-history .modal-content>div:first-child h2 {
        font-size: 1.3rem !important;
    }

    #modal-user-history .modal-content>div:first-child p {
        font-size: 0.8rem !important;
    }
}

/* Responsive Design for Bulk Upload Modal */
@media (max-width: 900px) {
    #modal-bulk-upload .modal-content {
        max-width: 95% !important;
        height: 95vh !important;
    }

    #modal-bulk-upload .code-editor-container {
        height: 350px !important;
    }
}

@media (max-width: 600px) {
    #modal-bulk-upload .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }

    #modal-bulk-upload .modal-content>div:first-child {
        padding: 20px !important;
    }

    #modal-bulk-upload .modal-content>div:first-child h2 {
        font-size: 1.3rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    #modal-bulk-upload .modal-content>div:first-child p {
        padding-left: 0 !important;
    }

    #modal-bulk-upload .code-editor-container {
        height: 300px !important;
    }

    /* Stack buttons vertically on mobile */
    #modal-bulk-upload button[type="submit"] {
        font-size: 0.95rem !important;
        padding: 12px !important;
    }
}

/* ==========================================
   DUPLICATE MANAGEMENT STYLES
   ========================================== */

/* Duplicate Cards */
.duplicate-card,
.similar-card {
    transition: all 0.3s ease;
}

.duplicate-card:hover,
.similar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Scan Progress Animation */
#scan-progress-circle {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.8));
    }
}

/* Duplicate Stats Dashboard */
#duplicate-stats-dashboard .stat-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#duplicate-stats-dashboard .stat-card:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Migration Progress Bar Animation */
#migration-progress-bar {
    position: relative;
    overflow: hidden;
}

#migration-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Duplicate Action Buttons */
#duplicate-actions button {
    transition: all 0.2s ease;
}

#duplicate-actions button:hover {
    transform: translateY(-2px);
}

#btn-resolve-all:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Filter Dropdowns */
#dup-filter-category,
#dup-filter-type {
    transition: all 0.2s ease;
}

#dup-filter-category:hover,
#dup-filter-type:hover {
    border-color: var(--primary);
}

/* Question Comparison Panels */
.similar-card>div:last-child>div {
    transition: background 0.2s ease;
}

.similar-card>div:last-child>div:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Duplicate Section Headers */
.duplicate-section>div:first-child {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Table Row Highlight */
.duplicate-card table tbody tr:hover {
    background: rgba(52, 211, 153, 0.05) !important;
}

/* Radio Button Styling */
.duplicate-card input[type="radio"] {
    accent-color: var(--primary);
    cursor: pointer;
}

/* Responsive Design for Duplicate Management */
@media (max-width: 1200px) {
    #duplicate-actions {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .similar-card>div:last-child {
        grid-template-columns: 1fr !important;
    }

    .similar-card>div:last-child>div:first-child {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    #duplicate-stats-dashboard {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .duplicate-card .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .duplicate-card table {
        font-size: 0.8rem;
    }

    .duplicate-card table th,
    .duplicate-card table td {
        padding: 8px 10px !important;
    }
}

@media (max-width: 480px) {
    #duplicate-stats-dashboard {
        grid-template-columns: 1fr !important;
    }

    #scan-progress>div:first-child {
        width: 100px !important;
        height: 100px !important;
    }

    #scan-progress svg {
        width: 100px !important;
        height: 100px !important;
    }

    #scan-progress-percent {
        font-size: 1.2rem !important;
    }
}

/* Tooltip for Copy Button */
.duplicate-card button[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: var(--bg-dark);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    margin-top: 25px;
    margin-left: -20px;
    z-index: 1000;
}

/* Tab Buttons */
.dup-tabs-container {
    display: flex;
    gap: 0;
}

.dup-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 16px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    font-family: inherit;
}

.dup-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.dup-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), transparent);
}

.dup-tab i {
    font-size: 0.85rem;
}

.tab-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.dup-tab.active .tab-count {
    background: rgba(52, 211, 153, 0.2);
    color: var(--primary);
}

.tab-count-red {
    background: rgba(248, 113, 113, 0.2) !important;
    color: #EF4444 !important;
}

.tab-count-gold {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #FBBF24 !important;
}

/* Unified Duplicate Cards */
.unified-duplicate-card {
    transition: all 0.3s ease;
}

.unified-duplicate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Fade out animation */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Checkbox styling */
.question-checkbox {
    accent-color: var(--primary);
    cursor: pointer;
}

/* Stat Card Clickable */
.stat-card-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-card-clickable:hover {
    border-color: var(--primary);
}

/* Tab responsive adjustments */
@media (max-width: 1200px) {
    .dup-tabs-container {
        flex-wrap: wrap;
    }

    .dup-tab {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .dup-tab {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .dup-tab span.tab-count {
        display: none;
    }

    .unified-duplicate-card {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .dup-tabs-container {
        width: 100%;
    }

    .dup-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
    }
}
 
 / *   A n i m a t i o n s   f o r   n o t i f i c a t i o n s   a n d   h i n t s   * / 
 @ k e y f r a m e s   s l i d e I n R i g h t   { 
         f r o m   { 
                 o p a c i t y :   0 ; 
                 t r a n s f o r m :   t r a n s l a t e X ( 1 0 0 p x ) ; 
         } 
         t o   { 
                 o p a c i t y :   1 ; 
                 t r a n s f o r m :   t r a n s l a t e X ( 0 ) ; 
         } 
 } 
 
 @ k e y f r a m e s   s l i d e O u t R i g h t   { 
         f r o m   { 
                 o p a c i t y :   1 ; 
                 t r a n s f o r m :   t r a n s l a t e X ( 0 ) ; 
         } 
         t o   { 
                 o p a c i t y :   0 ; 
                 t r a n s f o r m :   t r a n s l a t e X ( 1 0 0 p x ) ; 
         } 
 } 
 
 @ k e y f r a m e s   p u l s e   { 
         0 % % ,   1 0 0 % %   { 
                 t r a n s f o r m :   s c a l e ( 1 ) ; 
                 o p a c i t y :   1 ; 
         } 
         5 0 % %   { 
                 t r a n s f o r m :   s c a l e ( 1 . 0 5 ) ; 
                 o p a c i t y :   0 . 9 ; 
         } 
 } 
 
 / *   B u t t o n   h o v e r   i m p r o v e m e n t s   * / 
 . u n i f i e d - d u p l i c a t e - c a r d   b u t t o n : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 0 , 0 , 0 , 0 . 2 ) ; 
 } 
 
 . u n i f i e d - d u p l i c a t e - c a r d   b u t t o n : a c t i v e   { 
         t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 } 
 
 / *   S t a t   c a r d   c l i c k   e f f e c t   * / 
 . s t a t - c a r d - c l i c k a b l e : a c t i v e   { 
         t r a n s f o r m :   s c a l e ( 0 . 9 8 ) ; 
 } 
 
 / *   I m p r o v e d   c h e c k b o x   v i s u a l   * / 
 . q u e s t i o n - c h e c k b o x : h o v e r   { 
         t r a n s f o r m :   s c a l e ( 1 . 1 ) ; 
 } 
  
 
 
 / *   F a d e   i n   a n i m a t i o n s   * / 
 @ k e y f r a m e s   f a d e I n U p   { 
         f r o m   { 
                 o p a c i t y :   0 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( 2 0 p x ) ; 
         } 
         t o   { 
                 o p a c i t y :   1 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
         } 
 } 
 
 @ k e y f r a m e s   f a d e I n D o w n   { 
         f r o m   { 
                 o p a c i t y :   0 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( - 2 0 p x ) ; 
         } 
         t o   { 
                 o p a c i t y :   1 ; 
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
         } 
 } 
 
 / *   I m p r o v e   s t a t   c a r d   a p p e a r a n c e   * / 
 . s t a t s - g r i d   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 2 4 0 p x ,   1 f r ) ) ; 
         g a p :   2 0 p x ; 
 } 
 
 . s t a t - c a r d   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 4 5 d e g ,   r g b a ( 3 0 ,   4 1 ,   5 9 ,   0 . 9 ) ,   r g b a ( 1 5 ,   2 3 ,   4 2 ,   0 . 9 5 ) ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
         b o r d e r - r a d i u s :   1 6 p x ; 
         p a d d i n g :   2 0 p x ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
 } 
 
 . s t a t - c a r d : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 4 p x ) ; 
         b o x - s h a d o w :   0   1 2 p x   4 0 p x   r g b a ( 0 , 0 , 0 , 0 . 3 ) ; 
         b o r d e r - c o l o r :   v a r ( - - p r i m a r y ) ; 
 } 
  
 