/* =============================================================
   QUIZHUB SHARED COMPONENTS CSS
   Consolidated reusable styles across all portal templates
   ============================================================= */

/* =============================================================
   1. PAGINATION COMPONENTS
   ============================================================= */

.qh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.qh-page-btn {
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    color: var(--t2);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.qh-page-btn:hover {
    border-color: var(--ac);
    color: #818cf8;
}

.qh-page-btn.active {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border-color: transparent;
    color: #fff;
}

.qh-page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* Arrow buttons */
.qh-page-arrow {
    padding: 10px 14px;
}

/* =============================================================
   2. EMPTY STATE COMPONENTS
   ============================================================= */

.qh-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
}

.qh-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.qh-empty-icon i {
    color: var(--t3);
}

.qh-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--t1);
    margin: 0 0 8px;
}

.qh-empty-text {
    font-size: 14px;
    color: var(--t3);
    margin: 0 0 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.qh-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qh-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    color: #fff;
}

/* Smaller empty state variant */
.qh-empty-sm {
    padding: 40px 20px;
}

.qh-empty-sm .qh-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.qh-empty-sm .qh-empty-title {
    font-size: 16px;
}

.qh-empty-sm .qh-empty-text {
    font-size: 13px;
}

/* =============================================================
   3. CARD COMPONENTS
   ============================================================= */

/* Base Card */
.qh-card {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    overflow: hidden;
}

.qh-card-sm {
    border-radius: 12px;
}

.qh-card-lg {
    border-radius: 16px;
}

/* Card with hover effect */
.qh-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.qh-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--ac);
}

/* Card Header */
.qh-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--brd);
}

.qh-card-header h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--t1);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qh-card-header-link {
    font-size: 13px;
    color: #818cf8;
    text-decoration: none;
}

.qh-card-header-link:hover {
    color: #a5b4fc;
}

/* Card Body */
.qh-card-body {
    padding: 20px;
}

.qh-card-body-sm {
    padding: 16px;
}

.qh-card-body-lg {
    padding: 24px;
}

/* Card Footer */
.qh-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--brd);
}

/* Panel variant (used for forms/sections) */
.qh-panel {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 16px;
    padding: 28px;
}

/* Info Card with left border accent */
.qh-info-card {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    padding: 18px;
    border-left: 3px solid var(--ac);
}

.qh-info-card.green { border-left-color: #22c55e; }
.qh-info-card.gold { border-left-color: #fbbf24; }
.qh-info-card.red { border-left-color: #ef4444; }
.qh-info-card.blue { border-left-color: #3b82f6; }
.qh-info-card.purple { border-left-color: #a855f7; }
.qh-info-card.cyan { border-left-color: #06b6d4; }

/* =============================================================
   4. BUTTON COMPONENTS
   ============================================================= */

/* Base Button */
.qh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Primary (Gradient) */
.qh-btn-primary {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
}

.qh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    color: #fff;
}

/* Secondary (Outline) */
.qh-btn-secondary {
    background: transparent;
    border: 1px solid var(--brd);
    color: var(--t1);
}

.qh-btn-secondary:hover {
    border-color: var(--ac);
    color: #818cf8;
}

/* Ghost (Minimal) */
.qh-btn-ghost {
    background: transparent;
    color: var(--t2);
}

.qh-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--t1);
}

/* Success */
.qh-btn-success {
    background: #22c55e;
    color: #fff;
}

.qh-btn-success:hover {
    background: #16a34a;
    color: #fff;
}

/* Danger */
.qh-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.qh-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Button Sizes */
.qh-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

.qh-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.qh-btn-block {
    width: 100%;
}

/* Icon Button */
.qh-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    color: var(--t2);
}

.qh-btn-icon:hover {
    border-color: var(--ac);
    color: #818cf8;
}

.qh-btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* =============================================================
   5. FORM COMPONENTS
   ============================================================= */

/* Form Group */
.qh-form-group {
    margin-bottom: 20px;
}

/* Form Label */
.qh-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 8px;
}

/* Form Input */
.qh-form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--brd);
    color: var(--t1);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.qh-form-input::placeholder {
    color: var(--t3);
}

.qh-form-input:focus {
    border-color: var(--ac);
}

/* Form Select */
.qh-form-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--brd);
    color: var(--t1);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

.qh-form-select:focus {
    border-color: var(--ac);
}

/* Form Textarea */
.qh-form-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--brd);
    color: var(--t1);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.15s ease;
}

.qh-form-textarea:focus {
    border-color: var(--ac);
}

/* Form Hint */
.qh-form-hint {
    font-size: 12px;
    color: var(--t3);
    margin-top: 6px;
}

/* Search Input */
.qh-search-input {
    position: relative;
}

.qh-search-input input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border-radius: 10px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    color: var(--t1);
    font-size: 13px;
    outline: none;
}

.qh-search-input input:focus {
    border-color: var(--ac);
}

.qh-search-input i,
.qh-search-input svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--t3);
    font-size: 14px;
}

/* =============================================================
   6. ALERT COMPONENTS
   ============================================================= */

.qh-alert {
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.qh-alert-icon {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.qh-alert-content {
    flex: 1;
}

.qh-alert-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}

.qh-alert-text {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

/* Alert Variants */
.qh-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.qh-alert-success .qh-alert-icon { color: #22c55e; }
.qh-alert-success .qh-alert-title { color: #22c55e; }
.qh-alert-success .qh-alert-text { color: #4ade80; }

.qh-alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.qh-alert-warning .qh-alert-icon { color: #fbbf24; }
.qh-alert-warning .qh-alert-title { color: #fbbf24; }
.qh-alert-warning .qh-alert-text { color: #fcd34d; }

.qh-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.qh-alert-danger .qh-alert-icon { color: #ef4444; }
.qh-alert-danger .qh-alert-title { color: #ef4444; }
.qh-alert-danger .qh-alert-text { color: #f87171; }

.qh-alert-info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.qh-alert-info .qh-alert-icon { color: #6366f1; }
.qh-alert-info .qh-alert-title { color: #818cf8; }
.qh-alert-info .qh-alert-text { color: #a5b4fc; }

/* =============================================================
   7. AVATAR COMPONENTS
   ============================================================= */

/* Avatar Base */
.qh-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Avatar Placeholder */
.qh-avatar-placeholder {
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Avatar Sizes */
.qh-avatar-xs, .qh-avatar-placeholder-xs { width: 24px; height: 24px; font-size: 10px; }
.qh-avatar-sm, .qh-avatar-placeholder-sm { width: 32px; height: 32px; font-size: 12px; }
.qh-avatar-md, .qh-avatar-placeholder-md { width: 40px; height: 40px; font-size: 14px; }
.qh-avatar-lg, .qh-avatar-placeholder-lg { width: 48px; height: 48px; font-size: 16px; }
.qh-avatar-xl, .qh-avatar-placeholder-xl { width: 64px; height: 64px; font-size: 20px; }
.qh-avatar-xxl, .qh-avatar-placeholder-xxl { width: 80px; height: 80px; font-size: 28px; }

/* Avatar with online indicator */
.qh-avatar-wrap {
    position: relative;
    display: inline-block;
}

.qh-avatar-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid var(--bg);
}

.qh-avatar-online-sm {
    width: 10px;
    height: 10px;
}

/* Avatar with badge */
.qh-avatar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================================
   8. TAB / FILTER PILL COMPONENTS
   ============================================================= */

/* Tab Container */
.qh-tabs {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: var(--bg2);
    border-radius: 12px;
    border: 1px solid var(--brd);
    overflow-x: auto;
}

/* Tab Item */
.qh-tab {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t2);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qh-tab:hover {
    color: var(--t1);
    background: var(--bg);
}

.qh-tab.active {
    background: #6366f1;
    color: #fff;
}

/* Underline Tab Variant */
.qh-tabs-underline {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--brd);
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.qh-tab-underline {
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--t3);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    font-family: inherit;
}

.qh-tab-underline:hover {
    color: var(--t1);
    background: rgba(255, 255, 255, 0.03);
}

.qh-tab-underline.active {
    color: #818cf8;
    border-bottom-color: #6366f1;
}

/* Filter Pills */
.qh-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qh-pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--t2);
    background: var(--bg2);
    border: 1px solid var(--brd);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    font-family: inherit;
}

.qh-pill:hover {
    border-color: var(--ac);
    color: var(--ac);
}

.qh-pill.active {
    background: var(--ac);
    border-color: var(--ac);
    color: #fff;
}

/* =============================================================
   9. STATS CARD / GRID COMPONENTS
   ============================================================= */

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

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

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

/* Stat Card */
.qh-stat-card {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.qh-stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 18px;
}

.qh-stat-card-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--t1);
    margin: 0;
    line-height: 1.2;
}

.qh-stat-card-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--t3);
    margin: 4px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stat Card Color Variants */
.qh-stat-card.primary .qh-stat-card-icon { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.qh-stat-card.green .qh-stat-card-icon { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.qh-stat-card.green .qh-stat-card-value { color: #22c55e; }
.qh-stat-card.gold .qh-stat-card-icon { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.qh-stat-card.gold .qh-stat-card-value { color: #fbbf24; }
.qh-stat-card.cyan .qh-stat-card-icon { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.qh-stat-card.cyan .qh-stat-card-value { color: #06b6d4; }
.qh-stat-card.red .qh-stat-card-icon { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.qh-stat-card.purple .qh-stat-card-icon { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

/* Highlighted Stat Card */
.qh-stat-card.highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border-color: rgba(251, 191, 36, 0.3);
}

.qh-stat-card.highlight .qh-stat-card-value {
    color: #fbbf24;
}

/* =============================================================
   10. PAGE HEADER COMPONENTS
   ============================================================= */

.qh-page-header {
    margin-bottom: 24px;
}

.qh-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--t1);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.qh-page-title i {
    font-size: 24px;
}

.qh-page-subtitle {
    font-size: 14px;
    color: var(--t3);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .qh-page-title {
        font-size: 24px;
    }
    
    .qh-page-title i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .qh-page-title {
        font-size: 20px;
    }
}

/* Section Header */
.qh-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.qh-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--t1);
    margin: 0;
}

/* Breadcrumb */
.qh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--t3);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.qh-breadcrumb a {
    color: var(--t2);
    text-decoration: none;
}

.qh-breadcrumb a:hover {
    color: #818cf8;
}

.qh-breadcrumb span {
    color: var(--t3);
}

/* =============================================================
   11. PROGRESS BAR COMPONENTS
   ============================================================= */

.qh-progress {
    height: 8px;
    background: var(--brd);
    border-radius: 4px;
    overflow: hidden;
}

.qh-progress-sm {
    height: 6px;
}

.qh-progress-lg {
    height: 12px;
}

.qh-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.qh-progress-fill.green {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.qh-progress-fill.gold {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.qh-progress-fill.red {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Progress with label */
.qh-progress-wrapper {
    margin-bottom: 12px;
}

.qh-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.qh-progress-label {
    color: var(--t2);
    font-weight: 500;
}

.qh-progress-value {
    color: var(--t1);
    font-weight: 600;
}

/* =============================================================
   12. TRANSACTION / LIST ROW COMPONENTS
   ============================================================= */

.qh-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--brd);
    transition: background 0.15s ease;
}

.qh-list-item:last-child {
    border-bottom: none;
}

.qh-list-item:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 8px;
}

.qh-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.qh-list-icon.green { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.qh-list-icon.red { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.qh-list-icon.blue { background: rgba(99, 102, 241, 0.12); color: #818cf8; }
.qh-list-icon.gold { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }

.qh-list-content {
    flex: 1;
    min-width: 0;
}

.qh-list-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--t1);
    margin: 0;
}

.qh-list-meta {
    font-size: 12px;
    color: var(--t3);
    margin: 2px 0 0;
}

.qh-list-value {
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.qh-list-value.green { color: #22c55e; }
.qh-list-value.red { color: #ef4444; }

/* =============================================================
   13. BADGE / TAG COMPONENTS
   ============================================================= */

.qh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.qh-badge-primary { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.qh-badge-success { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.qh-badge-warning { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.qh-badge-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.qh-badge-info { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.qh-badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

/* Pill Badge (rounded) */
.qh-badge-pill {
    border-radius: 20px;
    padding: 5px 12px;
}

/* Solid Badge */
.qh-badge-solid-primary { background: #6366f1; color: #fff; }
.qh-badge-solid-success { background: #22c55e; color: #fff; }
.qh-badge-solid-warning { background: #fbbf24; color: #000; }
.qh-badge-solid-danger { background: #ef4444; color: #fff; }

/* =============================================================
   14. TOOLTIP / DROPDOWN COMPONENTS
   ============================================================= */

/* Simple Dropdown */
.qh-dropdown {
    position: relative;
    display: inline-block;
}

.qh-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.15s ease;
}

.qh-dropdown.open .qh-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qh-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--t2);
    text-decoration: none;
    transition: all 0.15s ease;
}

.qh-dropdown-item:hover {
    background: var(--bg);
    color: var(--t1);
}

.qh-dropdown-item i {
    width: 16px;
    color: var(--t3);
}

.qh-dropdown-divider {
    height: 1px;
    background: var(--brd);
    margin: 8px 0;
}

/* =============================================================
   15. UTILITY CLASSES
   ============================================================= */

/* Text Colors */
.text-primary { color: #818cf8 !important; }
.text-success { color: #22c55e !important; }
.text-warning { color: #fbbf24 !important; }
.text-danger { color: #ef4444 !important; }
.text-muted { color: var(--t3) !important; }

/* Background Colors (with transparency) */
.bg-primary-soft { background: rgba(99, 102, 241, 0.12) !important; }
.bg-success-soft { background: rgba(34, 197, 94, 0.12) !important; }
.bg-warning-soft { background: rgba(251, 191, 36, 0.12) !important; }
.bg-danger-soft { background: rgba(239, 68, 68, 0.12) !important; }

/* Flex Utilities */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm { gap: 8px; }
.flex-gap-md { gap: 12px; }
.flex-gap-lg { gap: 16px; }

/* Spacing */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }

/* =============================================================
   16. RESPONSIVE GRID LAYOUTS
   ============================================================= */

/* Common responsive grid patterns */
.qh-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.qh-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.qh-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.qh-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) {
    .qh-grid-6 { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1024px) {
    .qh-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .qh-grid-6 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .qh-grid-2 { grid-template-columns: 1fr; }
    .qh-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .qh-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .qh-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .qh-grid-3 { grid-template-columns: 1fr; }
    .qh-grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .qh-grid-4 { grid-template-columns: 1fr; }
}

/* Two-column layout (content + sidebar) */
.qh-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

@media (max-width: 1024px) {
    .qh-layout-sidebar {
        grid-template-columns: 1fr;
    }
}

/* =============================================================
   17. ANIMATION CLASSES
   ============================================================= */

/* Spin animation (for loading) */
@keyframes qh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.qh-spin {
    animation: qh-spin 1s linear infinite;
}

/* Pulse animation */
@keyframes qh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.qh-pulse {
    animation: qh-pulse 2s ease-in-out infinite;
}

/* Fade in */
@keyframes qh-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qh-fade-in {
    animation: qh-fade-in 0.3s ease-out;
}

/* Live indicator dot */
.qh-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: qh-pulse 2s infinite;
}
