/* ═══════════════════════════════════════════════════════════════════════════
   WeDealize Design System V3 - Complete Redesign
   ─────────────────────────────────────────────────────────────────────────────
   Senior Product Designer Approach:
   • Onboarding-First: Transform empty states into actionable guidance
   • Visual Hierarchy: Clear information architecture with emphasis
   • Modern Aesthetics: Proper color system, shadows, typography
   • Engagement: Interactive elements, progress indicators, activity feeds
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* ─── Primary Brand ─── */
    --v3-primary-50: #EFF6FF;
    --v3-primary-100: #DBEAFE;
    --v3-primary-200: #BFDBFE;
    --v3-primary-300: #93C5FD;
    --v3-primary-400: #60A5FA;
    --v3-primary-500: #3B82F6;
    --v3-primary-600: #2563EB;
    --v3-primary-700: #1D4ED8;
    --v3-primary: #2563EB;

    /* ─── Semantic Colors ─── */
    --v3-success-50: #ECFDF5;
    --v3-success-100: #D1FAE5;
    --v3-success-500: #10B981;
    --v3-success-600: #059669;
    --v3-success: #10B981;

    --v3-warning-50: #FFFBEB;
    --v3-warning-100: #FEF3C7;
    --v3-warning-500: #F59E0B;
    --v3-warning-600: #D97706;
    --v3-warning: #F59E0B;

    --v3-danger-50: #FEF2F2;
    --v3-danger-100: #FEE2E2;
    --v3-danger-500: #EF4444;
    --v3-danger-600: #DC2626;
    --v3-danger: #EF4444;

    /* ─── Gray Scale ─── */
    --v3-gray-50: #F9FAFB;
    --v3-gray-100: #F3F4F6;
    --v3-gray-200: #E5E7EB;
    --v3-gray-300: #D1D5DB;
    --v3-gray-400: #9CA3AF;
    --v3-gray-500: #6B7280;
    --v3-gray-600: #4B5563;
    --v3-gray-700: #374151;
    --v3-gray-800: #1F2937;
    --v3-gray-900: #111827;

    /* ─── Surfaces ─── */
    --v3-bg: #F9FAFB;
    --v3-surface: #FFFFFF;
    --v3-surface-hover: #F9FAFB;
    --v3-surface-active: #F3F4F6;

    /* ─── Borders ─── */
    --v3-border: #E5E7EB;
    --v3-border-light: #F3F4F6;
    --v3-border-focus: #2563EB;

    /* ─── Text ─── */
    --v3-text: #111827;
    --v3-text-secondary: #6B7280;
    --v3-text-tertiary: #9CA3AF;
    --v3-text-inverse: #FFFFFF;

    /* ─── Shadows (Elevation System) ─── */
    --v3-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --v3-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --v3-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --v3-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --v3-shadow-hover: 0 4px 12px rgba(37, 99, 235, 0.15);

    /* ─── Typography ─── */
    --v3-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Pretendard', sans-serif;
    --v3-font-mono: 'SF Mono', 'Fira Code', monospace;

    /* ─── Spacing Scale ─── */
    --v3-space-1: 4px;
    --v3-space-2: 8px;
    --v3-space-3: 12px;
    --v3-space-4: 16px;
    --v3-space-5: 20px;
    --v3-space-6: 24px;
    --v3-space-8: 32px;
    --v3-space-10: 40px;
    --v3-space-12: 48px;
    --v3-space-16: 64px;

    /* ─── Border Radius ─── */
    --v3-radius-sm: 6px;
    --v3-radius: 8px;
    --v3-radius-md: 10px;
    --v3-radius-lg: 12px;
    --v3-radius-xl: 16px;
    --v3-radius-full: 9999px;

    /* ─── Layout ─── */
    --v3-sidebar-width: 220px;
    --v3-header-height: 56px;

    /* ─── Transitions ─── */
    --v3-transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --v3-transition-slow: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme {
    margin: 0;
    padding: 0;
    font-family: var(--v3-font);
    font-size: 14px;
    color: var(--v3-text);
    background: var(--v3-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.v3-theme * {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. LAYOUT STRUCTURE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Portal App */
body.v3-theme .portal-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
body.v3-theme .portal-header {
    height: var(--v3-header-height);
    background: var(--v3-surface);
    border-bottom: 1px solid var(--v3-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

body.v3-theme .header-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

body.v3-theme .logo {
    width: var(--v3-sidebar-width);
    height: var(--v3-header-height);
    background: var(--v3-gray-900);
    display: flex;
    align-items: center;
    padding: 0 var(--v3-space-5);
    gap: var(--v3-space-3);
    flex-shrink: 0;
}

body.v3-theme .logo img {
    height: 24px;
    filter: brightness(0) invert(1);
}

body.v3-theme .logo::after {
    display: none;
}

body.v3-theme .portal-badge {
    display: none;
}

body.v3-theme .header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 var(--v3-space-6);
    gap: var(--v3-space-4);
}

body.v3-theme .user-menu {
    display: flex !important;
    align-items: center;
    gap: var(--v3-space-3);
}

body.v3-theme .user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--v3-text);
}

body.v3-theme .btn-logout {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-sm);
    font-size: 13px;
    color: var(--v3-text-secondary);
    cursor: pointer;
    transition: all var(--v3-transition);
}

body.v3-theme .btn-logout:hover {
    background: var(--v3-gray-50);
    border-color: var(--v3-gray-300);
}

/* Main Layout */
body.v3-theme .portal-main {
    display: flex;
    margin-top: var(--v3-header-height);
    min-height: calc(100vh - var(--v3-header-height));
}

/* Dashboard Section */
body.v3-theme .dashboard-section {
    flex: 1;
    display: flex;
}

body.v3-theme .dashboard-container {
    display: flex;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. SIDEBAR - Direction 6: Navigation Improvements
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-sidebar {
    width: var(--v3-sidebar-width);
    min-width: var(--v3-sidebar-width);
    background: var(--v3-gray-900);
    height: calc(100vh - var(--v3-header-height));
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

body.v3-theme .wd-sidebar::-webkit-scrollbar {
    width: 4px;
}

body.v3-theme .wd-sidebar::-webkit-scrollbar-thumb {
    background: var(--v3-gray-700);
    border-radius: 2px;
}

body.v3-theme .wd-sidebar-header,
body.v3-theme .wd-workspace-switcher {
    display: none !important;
}

body.v3-theme .wd-sidebar-nav {
    flex: 1;
    padding: var(--v3-space-3) 0;
}

/* Nav Section Labels */
body.v3-theme .wd-nav-section-label {
    padding: var(--v3-space-4) var(--v3-space-4) var(--v3-space-2);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--v3-gray-500);
}

/* Nav Items */
body.v3-theme .wd-nav-item {
    display: flex;
    align-items: center;
    gap: var(--v3-space-3);
    padding: 10px var(--v3-space-4);
    margin: 2px var(--v3-space-2);
    color: var(--v3-gray-400);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--v3-transition);
    border-radius: var(--v3-radius-sm);
    border: none;
    background: transparent;
}

body.v3-theme .wd-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--v3-gray-200);
}

body.v3-theme .wd-nav-item.active {
    background: var(--v3-primary);
    color: var(--v3-text-inverse);
}

body.v3-theme .wd-nav-item .wd-nav-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    opacity: 0.8;
    flex-shrink: 0;
}

body.v3-theme .wd-nav-item.active .wd-nav-icon {
    opacity: 1;
}

/* Nav Badge */
body.v3-theme .wd-nav-badge {
    margin-left: auto;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    background: var(--v3-danger);
    color: white;
    border-radius: var(--v3-radius-full);
}

/* Nav Groups */
body.v3-theme .wd-nav-group {
    margin-bottom: var(--v3-space-1);
}

body.v3-theme .wd-nav-arrow {
    width: 14px;
    height: 14px;
    margin-left: auto;
    opacity: 0.5;
    transition: transform var(--v3-transition);
}

body.v3-theme .wd-nav-group.expanded .wd-nav-arrow {
    transform: rotate(180deg);
}

body.v3-theme .wd-nav-submenu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    margin: var(--v3-space-1) var(--v3-space-2);
    border-radius: var(--v3-radius-sm);
    padding: var(--v3-space-1) 0;
}

body.v3-theme .wd-nav-group.expanded .wd-nav-submenu {
    display: block;
}

body.v3-theme .wd-nav-child {
    padding: 8px var(--v3-space-4) 8px var(--v3-space-10);
    font-size: 12px;
    margin: 0;
    border-radius: 0;
}

body.v3-theme .wd-nav-child::before {
    display: none;
}

/* Sidebar Footer */
body.v3-theme .wd-sidebar-footer {
    padding: var(--v3-space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

body.v3-theme .wd-user-profile {
    display: flex;
    align-items: center;
    gap: var(--v3-space-3);
}

body.v3-theme .wd-user-avatar {
    width: 36px;
    height: 36px;
    background: var(--v3-primary);
    border-radius: var(--v3-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.v3-theme .wd-user-avatar svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

body.v3-theme .wd-user-name {
    color: var(--v3-text-inverse);
    font-size: 13px;
    font-weight: 500;
}

body.v3-theme .wd-user-email {
    color: var(--v3-gray-500);
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .dashboard-content {
    flex: 1;
    padding: var(--v3-space-6);
    background: var(--v3-bg);
    min-height: calc(100vh - var(--v3-header-height));
    overflow-y: auto;
}

body.v3-theme .dashboard-panel {
    display: none;
}

body.v3-theme .dashboard-panel.active {
    display: block;
    animation: v3-fadeIn 0.3s ease;
}

@keyframes v3-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Header */
body.v3-theme .wd-page-header {
    margin-bottom: var(--v3-space-6);
}

body.v3-theme .wd-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--v3-text);
    margin: 0;
    letter-spacing: -0.5px;
}

body.v3-theme .wd-page-subtitle {
    font-size: 14px;
    color: var(--v3-text-secondary);
    margin: var(--v3-space-1) 0 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. GETTING STARTED - Direction 2: Onboarding
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-getting-started {
    background: linear-gradient(135deg, var(--v3-primary-600) 0%, var(--v3-primary-700) 100%);
    border-radius: var(--v3-radius-lg);
    padding: var(--v3-space-5);
    margin-bottom: var(--v3-space-6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--v3-space-6);
}

body.v3-theme .wd-getting-started-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 var(--v3-space-2) 0;
}

body.v3-theme .wd-getting-started-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

body.v3-theme .wd-getting-started-progress {
    display: flex;
    align-items: center;
    gap: var(--v3-space-3);
    position: relative;
}

body.v3-theme .wd-progress-ring {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

body.v3-theme .wd-progress-text {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

body.v3-theme .wd-progress-steps {
    font-size: 13px;
    opacity: 0.9;
}

body.v3-theme .wd-getting-started-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--v3-space-2);
    padding: 12px 24px;
    background: white;
    color: var(--v3-primary);
    border: none;
    border-radius: var(--v3-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--v3-transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.v3-theme .wd-getting-started-btn:hover {
    background: var(--v3-gray-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.v3-theme .wd-getting-started-btn svg {
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. STATS CARDS - Direction 1 & 3: Hierarchy & Visual
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-stats-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--v3-space-4);
    margin-bottom: var(--v3-space-6);
}

body.v3-theme .wd-stat-card {
    background: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-lg);
    padding: var(--v3-space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--v3-space-4);
    transition: all var(--v3-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

body.v3-theme .wd-stat-card:hover {
    border-color: var(--v3-primary-200);
    box-shadow: var(--v3-shadow-hover);
    transform: translateY(-2px);
}

/* Primary stat (Revenue) - larger */
body.v3-theme .wd-stat-card.primary {
    border-left: 4px solid var(--v3-success);
}

body.v3-theme .wd-stat-card.primary .wd-stat-value {
    font-size: 32px;
    color: var(--v3-success);
}

body.v3-theme .wd-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--v3-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.v3-theme .wd-stat-icon svg {
    width: 22px;
    height: 22px;
}

body.v3-theme .wd-stat-icon-success {
    background: var(--v3-success-100);
    color: var(--v3-success);
}

body.v3-theme .wd-stat-icon-primary {
    background: var(--v3-primary-100);
    color: var(--v3-primary);
}

body.v3-theme .wd-stat-icon-teal {
    background: #CCFBF1;
    color: #0D9488;
}

body.v3-theme .wd-stat-icon-blue {
    background: var(--v3-primary-100);
    color: var(--v3-primary);
}

body.v3-theme .wd-stat-content {
    flex: 1;
    min-width: 0;
}

body.v3-theme .wd-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--v3-text);
    line-height: 1.2;
    margin-bottom: var(--v3-space-1);
}

body.v3-theme .wd-stat-label {
    font-size: 13px;
    color: var(--v3-text-secondary);
}

/* Mini sparkline placeholder */
body.v3-theme .wd-stat-sparkline {
    height: 24px;
    margin-top: var(--v3-space-2);
    background: linear-gradient(90deg, var(--v3-gray-100) 0%, var(--v3-gray-50) 100%);
    border-radius: var(--v3-radius-sm);
    position: relative;
    overflow: hidden;
}

body.v3-theme .wd-stat-sparkline::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--v3-gray-200);
    transform: translateY(-50%);
}

/* Trend badge */
body.v3-theme .wd-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--v3-radius-full);
    margin-top: var(--v3-space-2);
}

body.v3-theme .wd-stat-trend.up {
    background: var(--v3-success-100);
    color: var(--v3-success-600);
}

body.v3-theme .wd-stat-trend.down {
    background: var(--v3-danger-100);
    color: var(--v3-danger-600);
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. DASHBOARD GRID - Direction 4: Layout Efficiency
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--v3-space-5);
}

body.v3-theme .wd-dashboard-left {
    display: flex;
    flex-direction: column;
    gap: var(--v3-space-5);
}

body.v3-theme .wd-dashboard-right {
    display: flex;
    flex-direction: column;
    gap: var(--v3-space-5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. CARDS - Modern Design
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-card {
    background: var(--v3-surface);
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius-lg);
    overflow: hidden;
    transition: all var(--v3-transition);
}

body.v3-theme .wd-card:hover {
    box-shadow: var(--v3-shadow-md);
}

body.v3-theme .wd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--v3-space-4) var(--v3-space-5);
    border-bottom: 1px solid var(--v3-border-light);
}

body.v3-theme .wd-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--v3-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--v3-space-2);
}

body.v3-theme .wd-card-title svg {
    width: 18px;
    height: 18px;
    color: var(--v3-text-secondary);
}

body.v3-theme .wd-card-badge {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    background: var(--v3-danger);
    color: white;
    border-radius: var(--v3-radius-full);
}

body.v3-theme .wd-card-link {
    font-size: 12px;
    color: var(--v3-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--v3-transition);
}

body.v3-theme .wd-card-link:hover {
    color: var(--v3-primary-700);
}

body.v3-theme .wd-card-body {
    padding: var(--v3-space-5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. EMPTY STATES - Direction 2: Transform into Onboarding
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-empty-state {
    text-align: center;
    padding: var(--v3-space-8) var(--v3-space-5);
}

body.v3-theme .wd-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--v3-space-4);
    background: var(--v3-gray-100);
    border-radius: var(--v3-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.v3-theme .wd-empty-icon svg {
    width: 28px;
    height: 28px;
    color: var(--v3-gray-400);
}

body.v3-theme .wd-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--v3-text);
    margin: 0 0 var(--v3-space-2) 0;
}

body.v3-theme .wd-empty-text {
    font-size: 13px;
    color: var(--v3-text-secondary);
    margin: 0 0 var(--v3-space-4) 0;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

body.v3-theme .wd-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--v3-space-2);
    padding: 10px 16px;
    background: var(--v3-primary);
    color: white;
    border: none;
    border-radius: var(--v3-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--v3-transition);
}

body.v3-theme .wd-empty-cta:hover {
    background: var(--v3-primary-700);
    transform: translateY(-1px);
}

body.v3-theme .wd-empty-cta svg {
    width: 16px;
    height: 16px;
}

/* Compact empty state for small cards */
body.v3-theme .wd-card-action-required .wd-empty-state {
    padding: var(--v3-space-4);
}

body.v3-theme .wd-card-action-required .wd-empty-icon {
    width: 48px;
    height: 48px;
    background: var(--v3-success-100);
}

body.v3-theme .wd-card-action-required .wd-empty-icon svg {
    width: 24px;
    height: 24px;
    color: var(--v3-success);
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. QUICK ACTIONS - Hero Section for New Users
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-quick-actions-card {
    background: linear-gradient(180deg, var(--v3-primary-50) 0%, var(--v3-surface) 100%);
}

body.v3-theme .wd-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--v3-space-4);
}

body.v3-theme .wd-quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--v3-space-5);
    background: var(--v3-surface);
    border: 2px dashed var(--v3-border);
    border-radius: var(--v3-radius-lg);
    cursor: pointer;
    transition: all var(--v3-transition);
}

body.v3-theme .wd-quick-action-btn:hover {
    border-color: var(--v3-primary);
    border-style: solid;
    background: var(--v3-primary-50);
    transform: translateY(-2px);
    box-shadow: var(--v3-shadow-md);
}

body.v3-theme .wd-quick-action-icon {
    width: 52px;
    height: 52px;
    background: var(--v3-primary-100);
    border-radius: var(--v3-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--v3-space-3);
    transition: all var(--v3-transition);
}

body.v3-theme .wd-quick-action-btn:hover .wd-quick-action-icon {
    background: var(--v3-primary);
}

body.v3-theme .wd-quick-action-icon svg {
    width: 24px;
    height: 24px;
    color: var(--v3-primary);
    stroke: var(--v3-primary);
    transition: all var(--v3-transition);
}

body.v3-theme .wd-quick-action-btn:hover .wd-quick-action-icon svg {
    color: white;
    stroke: white;
}

body.v3-theme .wd-quick-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.v3-theme .wd-quick-action-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--v3-text);
}

body.v3-theme .wd-quick-action-desc {
    font-size: 12px;
    color: var(--v3-text-secondary);
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. ANALYTICS CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--v3-space-3);
    margin-bottom: var(--v3-space-4);
}

body.v3-theme .wd-analytics-item {
    text-align: center;
    padding: var(--v3-space-3);
    background: var(--v3-gray-50);
    border-radius: var(--v3-radius);
}

body.v3-theme .wd-analytics-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--v3-text);
    margin-bottom: 2px;
}

body.v3-theme .wd-analytics-label {
    font-size: 11px;
    color: var(--v3-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   13. ACTIVITY FEED - Direction 5: Engagement
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-activity-list {
    display: flex;
    flex-direction: column;
}

body.v3-theme .wd-activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--v3-space-3);
    padding: var(--v3-space-3) 0;
    border-bottom: 1px solid var(--v3-border-light);
}

body.v3-theme .wd-activity-item:last-child {
    border-bottom: none;
}

body.v3-theme .wd-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--v3-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

body.v3-theme .wd-activity-icon.order { background: var(--v3-success-100); }
body.v3-theme .wd-activity-icon.inquiry { background: var(--v3-primary-100); }
body.v3-theme .wd-activity-icon.product { background: var(--v3-warning-100); }

body.v3-theme .wd-activity-content {
    flex: 1;
    min-width: 0;
}

body.v3-theme .wd-activity-text {
    font-size: 13px;
    color: var(--v3-text);
    margin: 0 0 2px 0;
}

body.v3-theme .wd-activity-time {
    font-size: 11px;
    color: var(--v3-text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   14. ACTION ITEMS
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-action-list {
    display: flex;
    flex-direction: column;
    gap: var(--v3-space-2);
}

body.v3-theme .wd-action-item {
    display: flex;
    align-items: center;
    gap: var(--v3-space-3);
    padding: var(--v3-space-3);
    background: var(--v3-warning-50);
    border: 1px solid var(--v3-warning-100);
    border-radius: var(--v3-radius);
    cursor: pointer;
    transition: all var(--v3-transition);
}

body.v3-theme .wd-action-item:hover {
    background: var(--v3-warning-100);
    transform: translateX(4px);
}

body.v3-theme .wd-action-icon {
    font-size: 16px;
}

body.v3-theme .wd-action-text {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--v3-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   15. LIST ITEMS
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--v3-space-3) 0;
    border-bottom: 1px solid var(--v3-border-light);
}

body.v3-theme .wd-list-item:last-child {
    border-bottom: none;
}

body.v3-theme .wd-list-item .name {
    font-size: 13px;
    color: var(--v3-text);
}

body.v3-theme .wd-list-item .value {
    font-size: 13px;
    font-weight: 600;
    color: var(--v3-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--v3-space-2);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--v3-radius);
    cursor: pointer;
    transition: all var(--v3-transition);
    border: 1px solid transparent;
}

body.v3-theme .wd-btn-primary {
    background: var(--v3-primary);
    color: white;
}

body.v3-theme .wd-btn-primary:hover {
    background: var(--v3-primary-700);
}

/* ═══════════════════════════════════════════════════════════════════════════
   17. BADGES
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--v3-radius-full);
}

body.v3-theme .wd-badge-success {
    background: var(--v3-success-100);
    color: var(--v3-success-600);
}

body.v3-theme .wd-badge-warning {
    background: var(--v3-warning-100);
    color: var(--v3-warning-600);
}

body.v3-theme .wd-badge-danger {
    background: var(--v3-danger-100);
    color: var(--v3-danger-600);
}

/* ═══════════════════════════════════════════════════════════════════════════
   18. CHART PLACEHOLDER
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-chart-placeholder {
    height: 180px;
    background: var(--v3-gray-50);
    border-radius: var(--v3-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--v3-space-2);
}

body.v3-theme .wd-chart-placeholder svg {
    width: 32px;
    height: 32px;
    color: var(--v3-gray-300);
}

body.v3-theme .wd-chart-placeholder span {
    font-size: 12px;
    color: var(--v3-text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   19. SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.v3-theme ::-webkit-scrollbar-track {
    background: transparent;
}

body.v3-theme ::-webkit-scrollbar-thumb {
    background: var(--v3-gray-300);
    border-radius: var(--v3-radius-full);
}

body.v3-theme ::-webkit-scrollbar-thumb:hover {
    background: var(--v3-gray-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   20. DASHBOARD OPTIMIZATION - Single Screen View
   ═══════════════════════════════════════════════════════════════════════════ */
/* Hide secondary cards to keep dashboard in one screen */
body.v3-theme .wd-dashboard-left > .wd-card:nth-child(n+4),
body.v3-theme .wd-dashboard-right > .wd-card:nth-child(n+3) {
    display: none;
}

/* Performance Grid - Compact */
body.v3-theme .wd-performance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--v3-space-3);
}

body.v3-theme .wd-performance-item {
    text-align: center;
    padding: var(--v3-space-3);
    background: var(--v3-gray-50);
    border-radius: var(--v3-radius);
}

body.v3-theme .wd-performance-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--v3-text);
    margin-bottom: 2px;
}

body.v3-theme .wd-performance-label {
    font-size: 11px;
    color: var(--v3-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   21. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    body.v3-theme .wd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.v3-theme .wd-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.v3-theme .wd-sidebar {
        display: none;
    }

    body.v3-theme .wd-stats-grid {
        grid-template-columns: 1fr;
    }

    body.v3-theme .wd-quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   22. AUTH SECTION OVERRIDE
   ═══════════════════════════════════════════════════════════════════════════ */
body.v3-theme .wd-auth-section {
    margin-left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--v3-header-height));
    background: linear-gradient(135deg, var(--v3-gray-50) 0%, var(--v3-primary-50) 100%);
}

body.v3-theme .wd-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--v3-surface);
    border-radius: var(--v3-radius-xl);
    box-shadow: var(--v3-shadow-lg);
    padding: var(--v3-space-8);
}

body.v3-theme .wd-input {
    padding: 12px 14px;
    border: 1px solid var(--v3-border);
    border-radius: var(--v3-radius);
    font-size: 14px;
    transition: all var(--v3-transition);
}

body.v3-theme .wd-input:focus {
    outline: none;
    border-color: var(--v3-primary);
    box-shadow: 0 0 0 3px var(--v3-primary-100);
}
