:root {
    --bg-base: #f8fafc;
    --bg-panel: rgba(255, 255, 255, 0.85);
    --bg-panel-solid: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --danger-color: #e11d48;
    --danger-hover: #be123c;
    --success-color: #059669;
    --success-hover: #047857;
    --accent-color: #3b82f6;
    --sidebar-width: 280px;
    --topbar-height: 70px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.03), 0 2px 6px -1px rgba(0,0,0,0.01);
    --shadow-lg: 0 12px 28px -5px rgba(0,0,0,0.04), 0 8px 16px -6px rgba(0,0,0,0.02);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-base); color: var(--text-primary); line-height: 1.5; }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

.app-container { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* Sidebar (now Horizontal Top Navbar) */
.sidebar {
    width: 100%;
    height: 70px;
    background-color: var(--bg-panel-solid);
    border-bottom: 1px solid var(--border-color);
    border-right: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: relative;
    z-index: 100;
}
.sidebar-header { padding: 0; border-bottom: none; display: flex; align-items: center; }

/* Sidebar Toggle Button */
.btn-toggle-sidebar {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}
.btn-toggle-sidebar:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    transform: scale(1.05);
}
.btn-toggle-sidebar:active {
    transform: scale(0.95);
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
    --sidebar-width: 70px;
}
.sidebar.collapsed .logo-text,
.sidebar.collapsed .sidebar-stats,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .category-list,
.sidebar.collapsed .sidebar-user-profile .user-info {
    display: none !important;
}
.sidebar.collapsed .sidebar-header {
    padding: 20px 10px;
}
.sidebar.collapsed .logo-container {
    justify-content: center;
}
.sidebar.collapsed .logo-icon {
    display: none !important;
}
.sidebar.collapsed .sidebar-nav {
    padding: 20px 8px !important;
}
.sidebar.collapsed .btn-sidebar-link {
    font-size: 0 !important;
    justify-content: center !important;
    padding: 12px 0 !important;
    border-radius: var(--radius-md) !important;
}
.sidebar.collapsed .btn-sidebar-link i,
.sidebar.collapsed .btn-sidebar-link svg {
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}
.sidebar.collapsed .btn-sidebar-link .count-badge {
    display: none !important;
}
.sidebar.collapsed .dropdown-chevron,
.sidebar.collapsed #btn-add-category,
.sidebar.collapsed .btn-icon-small,
.sidebar.collapsed .btn-sidebar-link .dropdown-chevron,
.sidebar.collapsed .btn-sidebar-link svg.dropdown-chevron,
.sidebar.collapsed .btn-sidebar-link i.dropdown-chevron {
    display: none !important;
}
.sidebar.collapsed .sidebar-footer {
    padding: 15px 8px;
}
.sidebar.collapsed .btn-logout-premium {
    font-size: 0 !important;
    justify-content: center !important;
    padding: 12px 0 !important;
}
.sidebar.collapsed .btn-logout-premium i,
.sidebar.collapsed .btn-logout-premium svg {
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}
.sidebar.collapsed .btn-toggle-sidebar {
    margin-left: 0;
    width: 100%;
}
.logo-container { display: flex; align-items: center; justify-content: flex-start; width: auto; gap: 12px; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-image { height: 44px; object-fit: contain; max-width: 190px; transition: all 0.2s; }
.logo-light { display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.sidebar.collapsed .logo-image { display: none !important; }
.logo-icon { color: var(--primary-color); }
.logo-text h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.logo-text h1 span { color: var(--primary-color); }
.logo-text p { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }

.sidebar-stats { padding: 0; display: flex; gap: 10px; border-bottom: none; align-items: center; }
.stat-card-mini { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--bg-base); border: 1px solid var(--border-color); border-radius: var(--radius-full); }
.stat-icon { color: var(--primary-color); display: flex; align-items: center; }
.stat-info { display: flex; flex-direction: row; gap: 4px; align-items: center; font-size: 0.8rem; }
.stat-val { font-weight: 700; font-size: 0.85rem; }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); }

.sidebar-nav { display: flex; align-items: center; gap: 20px; padding: 0; margin-left: 20px; flex: 1; overflow: visible; }
.nav-section-title { display: none; }
.btn-icon-small { background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 4px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; }
.btn-icon-small:hover { background: var(--bg-base); color: var(--primary-color); }

.category-list { display: flex; flex-direction: column; gap: 8px; }
.category-tab { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px 11px 24px; border-radius: var(--radius-md); cursor: pointer; color: var(--text-primary); transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent; position: relative; }
.category-tab::before { content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 3px; height: 0; background: transparent; border-radius: var(--radius-full); transition: all 0.22s ease; }
.category-tab:hover { background: rgba(13, 148, 136, 0.04); color: #0d9488; }
.category-tab.active { background: #f0fdfa; color: #0d9488; font-weight: 600; box-shadow: 0 2px 8px -2px rgba(13, 148, 136, 0.08); }
.category-tab.active::before { height: 18px; background: #0d9488; }
.category-tab.active .cat-count { background: #0d9488; color: white; }
.cat-count { font-size: 0.75rem; background: #f1f5f9; color: #64748b; padding: 2px 8px; border-radius: var(--radius-full); font-weight: 600; }
.btn-delete-cat { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 4px; border-radius: 4px; display: none; }
.category-tab:hover .btn-delete-cat { display: block; }
.btn-delete-cat:hover { color: var(--danger-color); background: #fee2e2; }

/* Sidebar Footer Redesign */
.sidebar-footer {
    padding: 0;
    border-top: none;
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}
.sidebar-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: #eff6ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}
.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.user-email {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.btn-logout-premium {
    width: auto;
    padding: 8px 16px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #ffe4e6;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.btn-logout-premium:hover {
    background: #ffe4e6;
    color: #be123c;
    border-color: #fecdd3;
    transform: translateY(-1px);
}
.btn-logout-premium:active {
    transform: scale(0.98);
}

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-base); }
.topbar {
    height: auto !important;
    background: transparent !important;
    border-bottom: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 12px 32px !important;
}
.search-container { display: flex; align-items: center; background: var(--bg-base); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 0 15px; width: 400px; height: 40px; transition: all 0.2s ease; }
.search-container:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); background: white; }
.search-container input { border: none; background: transparent; outline: none; padding: 0 10px; width: 100%; color: var(--text-primary); }
.search-container input::placeholder { color: #94a3b8; }
.search-icon { color: var(--text-secondary); width: 18px; }
.search-clear-btn { background: none; border: none; cursor: pointer; color: var(--text-secondary); }

/* Smart Search Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 32px -4px rgba(15,23,42,0.14), 0 2px 8px -2px rgba(15,23,42,0.08);
    z-index: 9999;
    overflow: hidden;
    max-height: 380px;
    overflow-y: auto;
    animation: suggestionFadeIn 0.15s ease;
}
@keyframes suggestionFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.search-suggestions-dropdown::-webkit-scrollbar { width: 5px; }
.search-suggestions-dropdown::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.suggestion-header {
    padding: 8px 14px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.12s ease;
    border-bottom: 1px solid #f8fafc;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover,
.suggestion-item.active { background: #eff6ff; }
.suggestion-item-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: #eff6ff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}
.suggestion-item-body { flex: 1; min-width: 0; }
.suggestion-motor-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Outfit', sans-serif;
}
.suggestion-motor-name mark {
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 2px;
    padding: 0 1px;
    font-weight: 700;
}
.suggestion-motor-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggestion-thrust-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}
.suggestion-no-results {
    padding: 20px 14px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.82rem;
}


.topbar-actions { display: flex; gap: 15px; align-items: center; }

/* Buttons */
a.btn-primary, a.btn-primary-sm, a.btn-secondary, a.btn-secondary-sm, a.btn-outline, a.btn-outline-sm, a.btn-danger, a.btn-cta-primary, a.btn-cta-secondary, a.btn-role-action, a.btn-hero-primary, a.btn-hero-secondary {
    text-decoration: none;
}
button { font-family: 'Inter', sans-serif; cursor: pointer; font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-md); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; gap: 8px; justify-content: center; outline: none; }
button:active { transform: scale(0.98); }
.btn-primary { background: var(--primary-color); color: white; border: none; padding: 10px 18px; font-weight: 600; box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.2); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 14px -2px rgba(37, 99, 235, 0.3); }
.btn-primary-sm { background: var(--primary-color); color: white; border: none; padding: 7px 14px; font-size: 0.8rem; font-weight: 600; box-shadow: 0 2px 6px -1px rgba(37, 99, 235, 0.15); }
.btn-primary-sm:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 10px -1px rgba(37, 99, 235, 0.25); }
.btn-secondary { background: white; color: var(--text-primary); border: 1px solid var(--border-color); padding: 10px 18px; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--bg-base); border-color: rgba(203, 213, 225, 0.8); }
.btn-secondary-sm { background: white; color: var(--text-primary); border: 1px solid var(--border-color); padding: 7px 14px; font-size: 0.8rem; box-shadow: var(--shadow-sm); }
.btn-secondary-sm:hover { background: var(--bg-base); border-color: rgba(203, 213, 225, 0.8); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); padding: 10px 18px; }
.btn-outline:hover { background: white; border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05); }
.btn-outline-sm { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); padding: 6px 12px; font-size: 0.8rem; border-radius: var(--radius-md); }
.btn-outline-sm:hover { background: white; border-color: var(--primary-color); color: var(--primary-color); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05); }
.btn-danger { background: var(--danger-color); color: white; border: none; padding: 10px 18px; font-weight: 600; box-shadow: 0 4px 10px -2px rgba(225, 29, 72, 0.15); }
.btn-danger:hover { background: var(--danger-hover); transform: translateY(-1px); box-shadow: 0 6px 14px -2px rgba(225, 29, 72, 0.25); }
.btn-text-sm { background: none; border: none; color: var(--text-secondary); font-size: 0.85rem; padding: 4px 8px; }
.btn-text-sm:hover { color: var(--text-primary); }
.btn-icon-smallClose { background: none; border: none; color: var(--text-secondary); padding: 4px; border-radius: 4px; }
.btn-icon-smallClose:hover { background: var(--bg-base); color: var(--danger-color); }
.btn-icon-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; border-radius: var(--radius-md); padding: 4px; }
.btn-icon-close:hover { background: var(--bg-base); color: var(--danger-color); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; right: 0; background: var(--bg-panel-solid); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-md); min-width: 200px; z-index: 10; margin-top: 5px; flex-direction: column; padding: 5px 0; }
.dropdown-menu-wide { min-width: 320px; }
.dropdown-menu.show { display: flex; }
.dropdown-item { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 16px; border: none; background: none; width: 100%; text-align: left; border-radius: 0; color: var(--text-primary); cursor: pointer; text-decoration: none; box-sizing: border-box; }
.dropdown-item:hover { background: var(--bg-base); color: var(--primary-color); }
.dropdown-item-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.85rem; }
.dropdown-item-desc { font-size: 0.72rem; color: var(--text-secondary); margin-left: 24px; white-space: normal; margin-top: 2px; }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 5px 0; }

/* Content Body */
.content-body {
    flex: 1;
    padding: 16px 32px 32px 32px !important;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.glass-panel { background: var(--bg-panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 24px; }

/* Category Header */
.category-header-panel {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: transparent !important;
    padding: 0 0 12px 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 8px !important;
}
.badge-accent { background: #dbeafe; color: var(--primary-color); font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.8rem; display: inline-block; margin-bottom: 8px; }
.category-header-info h2 { font-size: 1.8rem; margin: 0 0 5px 0; }
.category-header-info p { color: var(--text-secondary); margin: 0; }
.category-quick-stats { display: flex; gap: 30px; }
.quick-stat-item { display: flex; flex-direction: column; align-items: flex-end; }
.quick-stat-item .value { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.quick-stat-item .label { font-size: 0.8rem; color: var(--text-secondary); }

/* Stats Visualization */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0; }
.stats-grid-visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-container { height: 250px; position: relative; }

/* Motors Table Panel */
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.table-title { display: flex; align-items: center; gap: 15px; }
.table-title h3 { margin: 0; font-size: 1.2rem; }
.count-badge { background: var(--bg-base); padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.8rem; color: var(--text-secondary); border: 1px solid var(--border-color); }
.table-filters { display: flex; gap: 15px; }
.filter-group { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); }
.filter-group select { padding: 6px 10px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-base); outline: none; }

.table-responsive { overflow-x: auto; }
.motors-table { width: 100%; border-collapse: collapse; text-align: left; }
.motors-table th, .motors-table td { padding: 14px 20px; border-bottom: 1px solid var(--border-color); }
.motors-table th { font-weight: 600; color: var(--text-secondary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; background: #f8fafc; border-bottom: 2px solid #e2e8f0; }
.motors-table tbody tr { transition: background-color 0.15s ease; }
.motors-table tbody tr:hover { background: rgba(241, 245, 249, 0.6); }
.motors-table td { font-size: 0.9rem; color: var(--text-primary); }

.action-links { display: flex; gap: 10px; justify-content: center; }
.action-links a { color: var(--text-secondary); transition: color 0.2s; }
.action-links a:hover { color: var(--primary-color); }
.action-links a.disabled { color: #cbd5e1; pointer-events: none; }

.row-actions { display: inline-flex; gap: 10px; justify-content: flex-end; align-items: center; vertical-align: middle; }
.btn-edit, .btn-delete { background: none; border: none; cursor: pointer; padding: 4px; border-radius: 4px; }
.btn-edit { color: var(--accent-color); }
.btn-edit:hover { background: #eff6ff; }
.btn-delete { color: var(--danger-color); }
.btn-delete:hover { background: #fee2e2; }

.empty-state { text-align: center; padding: 40px 20px; }
.empty-icon { width: 48px; height: 48px; color: var(--text-secondary); margin-bottom: 15px; opacity: 0.5; }
.empty-state h4 { font-size: 1.2rem; margin-bottom: 10px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

/* Modals */
.modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); display: none; justify-content: center; align-items: center; z-index: 100; }
.modal-backdrop.show { display: flex; }
.modal-container { background: var(--bg-panel-solid); border-radius: var(--radius-lg); width: 600px; max-width: 95%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal-sm { width: 400px; }
.comparison-modal-container { width: 900px; }
.modal-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 10px; }

/* Forms */
.form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { padding: 10px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s; background: var(--bg-base); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-color); }
.form-help { font-size: 0.75rem; color: var(--text-secondary); }
.form-section-title { font-size: 1rem; margin: 20px 0 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }

/* Comparison Drawer */
.comparison-drawer { position: fixed; bottom: -400px; right: 30px; width: 350px; background: var(--bg-panel-solid); border: 1px solid var(--border-color); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); z-index: 50; transition: bottom 0.3s; display: flex; flex-direction: column; }
.comparison-drawer.show { bottom: 0; }
.drawer-header { padding: 15px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: var(--primary-color); color: white; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.drawer-title { display: flex; align-items: center; gap: 10px; }
.drawer-title h3 { margin: 0; font-size: 1rem; }
.compare-count { background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: var(--radius-full); font-size: 0.8rem; }
.drawer-actions { display: flex; gap: 10px; align-items: center; }
.drawer-actions .btn-text-sm { color: rgba(255,255,255,0.8); }
.drawer-actions .btn-text-sm:hover { color: white; }
.drawer-actions .btn-icon-smallClose { color: white; }
.drawer-content { padding: 15px; max-height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.compare-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: var(--bg-base); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.compare-item-info { font-size: 0.9rem; font-weight: 500; }
.compare-item-brand { font-size: 0.75rem; color: var(--text-secondary); }

/* Comparison Table */
.comparison-table-wrapper { overflow-x: auto; }
.comparison-result-table { width: 100%; border-collapse: collapse; }
.comparison-result-table th, .comparison-result-table td { padding: 12px; border: 1px solid var(--border-color); text-align: left; }
.comparison-result-table th { background: var(--bg-base); font-weight: 600; width: 200px; }

/* History List */
.history-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.history-item { padding: 15px; border: 1px solid var(--border-color); border-radius: var(--radius-md); display: flex; justify-content: space-between; align-items: center; background: var(--bg-base); }
.history-info-date { font-weight: 600; margin-bottom: 5px; }
.history-info-summary { font-size: 0.85rem; color: var(--text-secondary); }
.history-actions { display: flex; gap: 10px; }

/* Utilities */
.spin-slow { animation: spin 4s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.text-success { color: var(--success-color); }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Premium UI Additions */
.badge-thrust {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.verification-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.verification-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.notes-chevron {
    transition: transform 0.3s ease;
}

.verification-notes-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}
.verification-notes-header:hover {
    background-color: #f8fafc;
}

/* Custom Scrollbars for Premium Look */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Row hover interactive details */
.motors-table tbody tr {
    transition: background-color 0.15s ease;
}

/* Action Links container alignment */
.action-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.action-links a {
    color: var(--text-secondary);
    display: inline-flex;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}
.action-links a:hover {
    color: var(--primary-color);
    background: #eff6ff;
}

/* Form Helper enhancements */
.form-help {
    margin-top: 4px;
}

/* Modal Overlay animations */
.modal-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Adjust comparison item spacing */
.compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    box-shadow: var(--shadow-sm);
}
.compare-item-details {
    display: flex;
    flex-direction: column;
}

/* Landing Page Styles */
.landing-body {
    background: radial-gradient(circle at 10% 20%, rgba(248, 250, 252, 1) 0%, rgba(239, 246, 255, 0.5) 90%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.landing-header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.landing-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-link {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 6px 4px;
    position: relative;
}
.nav-link:hover {
    color: var(--primary-color);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.22s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.landing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px 80px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 60px;
}
.hero-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.hero-content h2 span {
    color: var(--primary-color);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.hero-ctas {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.btn-hero-primary {
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}
.btn-hero-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.btn-hero-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.btn-hero-secondary:hover {
    background: var(--bg-base);
    border-color: rgba(203, 213, 225, 0.8);
    transform: translateY(-2px);
}
.hero-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
}
.visual-card-wrapper {
    position: relative;
    width: 380px;
    height: 290px;
}
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 230px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
}
.mock-window {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}
.window-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
}
.window-dots {
    display: flex;
    gap: 6px;
}
.window-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: var(--radius-full);
}
.window-dots .dot.red { background: #fca5a5; }
.window-dots .dot.yellow { background: #fde047; }
.window-dots .dot.green { background: #86efac; }
.window-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.window-body {
    display: flex;
    flex: 1;
}
.window-sidebar {
    width: 110px;
    border-right: 1px solid var(--border-color);
    background: #f8fafc;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-item {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-item.active {
    background: #eff6ff;
    color: var(--primary-color);
    font-weight: 600;
}
.window-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.content-category {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}
.badge-status-green {
    font-size: 0.65rem;
    background: #ecfdf5;
    color: var(--success-color);
    border: 1px solid #a7f3d0;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
}
.mock-chart-container {
    height: 90px;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    padding: 8px;
    display: flex;
    align-items: flex-end;
}
.mock-chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.chart-tooltip {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #1e293b;
    color: white;
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 500;
    pointer-events: none;
}
.content-stats {
    display: flex;
    gap: 12px;
}
.mini-stat {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mini-stat .label {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.mini-stat .val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}



/* Capabilities Layout */
.landing-features {
    padding: 100px 50px;
    background: #f8fafc;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 12px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 50px;
    line-height: 1.6;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.7);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -10px rgba(37, 99, 235, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.15);
    background: white;
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: #eff6ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.25rem;
}
.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}
.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Showcase Component */
.landing-showcase {
    padding: 100px 50px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.showcase-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.showcase-header h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
}
.showcase-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}
.showcase-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
    align-items: stretch;
}
.showcase-tabs {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.showcase-tab {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.showcase-tab:hover {
    background: white;
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateX(4px);
}
.showcase-tab.active {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px -10px rgba(37, 99, 235, 0.1);
    transform: translateX(8px);
}
.tab-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.showcase-tab.active .tab-icon-wrapper {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--primary-color);
}
.tab-text-wrapper h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0f172a;
}
.tab-text-wrapper p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}
.showcase-viewport {
    flex: 1.1;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 8px;
    min-height: 340px;
    display: flex;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.03);
}
.viewport-screen {
    flex: 1;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 24px;
    overflow: hidden;
    position: relative;
}
.view-panel {
    display: none;
    height: 100%;
    animation: fadeIn 0.3s ease-in-out forwards;
}
.view-panel.active {
    display: flex;
    flex-direction: column;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Viewport Inner Elements */
.viewport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.search-bar-mock {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 60%;
    color: var(--text-muted);
}
.search-bar-mock .mock-text {
    font-size: 0.75rem;
}
.filters-mock {
    display: flex;
    gap: 8px;
}
.filter-pill {
    background: #eff6ff;
    color: var(--primary-color);
    border: 1px solid #bfdbfe;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
}
.table-mock {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.table-mock-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    font-size: 0.8rem;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid transparent;
}
.table-mock-row.header {
    background: white;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding-top: 0;
}
.table-mock-row:not(.header):hover {
    background: white;
    border-color: #bfdbfe;
    box-shadow: var(--shadow-sm);
}
.motor-name-mock {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.thrust-badge-mock {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Compare Viewport Mock */
.compare-mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 15px;
}
.compare-columns {
    display: flex;
    gap: 15px;
    flex: 1;
}
.compare-col {
    flex: 1;
    background: #f8fafc;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.compare-col.divider-left {
    border-left: 2px dashed var(--border-color);
}
.col-head {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}
.col-spec-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Metrics Viewport Mock */
.metrics-grid-mock {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}
.metric-card-mock {
    flex: 1;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.metric-card-mock .m-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.metric-card-mock .m-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
}
.metric-card-mock .m-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.chart-mock-visual {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    height: 140px;
    background: white;
}
.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100px;
    border-bottom: 1px solid var(--border-color);
}
.bar-mock {
    width: 25px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: flex;
    justify-content: center;
    position: relative;
    transition: all 0.3s;
}
.bar-mock:hover {
    background: var(--primary-color);
}
.bar-val {
    position: absolute;
    top: -16px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.chart-bar-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 6px;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}



/* Role matrix styles */
.landing-roles {
    padding: 100px 50px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}
.role-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all 0.3s;
}
.role-card:hover {
    transform: translateY(-5px);
    background: white;
    border-color: #bfdbfe;
    box-shadow: 0 16px 32px -10px rgba(37, 99, 235, 0.08);
}
.role-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.role-icon-box.guest { background: rgba(37, 99, 235, 0.06); color: #2563eb; }
.role-icon-box.intern { background: rgba(217, 119, 6, 0.06); color: #d97706; }
.role-icon-box.admin { background: rgba(225, 29, 72, 0.06); color: #e11d48; }

.role-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}
.role-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    min-height: 70px;
}
.role-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}
.role-features span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.role-features span i {
    width: 14px;
    color: var(--success-color);
}
.btn-role-action {
    display: block;
    text-align: center;
    padding: 10px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}
.role-card:hover .btn-role-action {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}



/* Accordion FAQs */
.landing-faqs {
    padding: 100px 50px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.faq-accordion {
    max-width: 760px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #f8fafc;
    overflow: hidden;
    transition: all 0.25s ease;
}
.faq-item:hover {
    border-color: #bfdbfe;
    background: white;
}
.faq-item.active {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px -10px rgba(37, 99, 235, 0.06);
}
.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
}
.faq-chevron {
    transition: transform 0.25s ease;
    color: var(--text-secondary);
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
    padding: 0 25px;
    text-align: left;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 20px;
}
.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Glow CTA Section */
.landing-cta {
    padding: 80px 50px;
    background: white;
    border-bottom: 1px solid var(--border-color);
}
.cta-glow-box {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.cta-glow-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}
.cta-glow-box h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    z-index: 1;
    letter-spacing: -0.02em;
}
.cta-glow-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    z-index: 1;
}
.cta-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    z-index: 1;
}
.btn-cta-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.btn-cta-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.btn-cta-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-cta-secondary:hover {
    background: var(--bg-base);
    transform: translateY(-2px);
}

/* Enterprise Footer */
.landing-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 80px 50px 30px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 50px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.brand-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success-color);
    align-self: flex-start;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background: var(--success-color);
}
.status-dot.pulsing {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
    animation: pulseStatus 2s infinite;
}
@keyframes pulseStatus {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(5, 150, 105, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links-col h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.footer-links-col a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links-col a:hover {
    color: var(--primary-color);
}
.footer-links-col p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.newsletter-form input {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    outline: none;
    flex: 1;
    color: var(--text-primary);
}
.newsletter-form input:focus {
    border-color: var(--primary-color);
    background: white;
}
.newsletter-form button {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.newsletter-form button:hover {
    background: var(--primary-hover);
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-legal-links {
    display: flex;
    gap: 20px;
}
.footer-legal-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal-links a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .landing-hero {
        flex-direction: column;
        padding-top: 60px;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        align-items: center;
    }
    .badge-hero {
        align-self: center;
    }
    .hero-ctas {
        justify-content: center;
    }
    .showcase-container {
        flex-direction: column;
        gap: 30px;
    }
    .showcase-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .showcase-tab {
        flex: 1;
        min-width: 200px;
    }
    .developer-grid {
        flex-direction: column;
        gap: 40px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .landing-header {
        padding: 0 20px;
    }
    .landing-nav {
        display: none;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .landing-hero, .landing-features, .landing-showcase, .landing-developer, .landing-roles, .landing-faqs, .landing-cta, .landing-footer {
        padding: 60px 20px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* Login Page Styles */
/* Login Page Styles */
.login-body {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.04) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(16, 185, 129, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-bg-blob {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(120px);
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}
.blob-1 {
    top: 5%;
    left: 5%;
    width: 350px;
    height: 350px;
    background: rgba(37, 99, 235, 0.08);
}
.blob-2 {
    bottom: 5%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: rgba(5, 150, 105, 0.05);
}
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.login-card {
    padding: 40px 36px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.01),
        0 20px 40px -4px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.login-card:hover {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.01),
        0 24px 48px -4px rgba(15, 23, 42, 0.08);
}
.login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.login-logo-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}
.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 15px 0 8px;
    letter-spacing: -0.025em;
}
.login-header h2 span {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-header p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon i, .input-with-icon svg {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    width: 18px;
    height: 18px;
    transition: color 0.2s ease;
    pointer-events: none;
}
.input-with-icon input {
    padding: 12px 16px 12px 44px;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.925rem;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
}
.input-with-icon input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.input-with-icon input:focus ~ i,
.input-with-icon input:focus ~ svg {
    color: #2563eb;
}
.login-btn {
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.login-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}
.login-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}
.login-btn.loading {
    background: linear-gradient(90deg, #1d4ed8, #2563eb, #1d4ed8) !important;
    background-size: 200% 100% !important;
    animation: tv-shimmer-btn 1.5s infinite linear !important;
    pointer-events: none !important;
    opacity: 0.9;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
}
@keyframes tv-shimmer-btn {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}
.spinner-dual {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-bottom-color: #ffffff;
    border-radius: 50%;
    animation: tv-spin-dual 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes tv-spin-dual {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.login-footer {
    text-align: center;
    margin-top: 24px;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}
.credentials-helper {
    padding: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04);
}
.credentials-helper h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 14px;
}
.quick-credentials {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}
.quick-credentials li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.quick-credentials li:hover {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
    transform: translateY(-1px);
}
.quick-credentials li:active {
    transform: scale(0.99);
}
.quick-credentials li .role-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quick-credentials li .role-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.quick-credentials li.admin-item .role-icon-wrapper {
    background: rgba(225, 29, 72, 0.06);
    color: #e11d48;
}
.quick-credentials li.intern-item .role-icon-wrapper {
    background: rgba(217, 119, 6, 0.06);
    color: #d97706;
}
.quick-credentials li.guest-item .role-icon-wrapper {
    background: rgba(37, 99, 235, 0.06);
    color: #2563eb;
}
.quick-credentials li .role-label {
    font-weight: 600;
    font-size: 0.85rem;
}
.quick-credentials li.admin-item .role-label { color: #be123c; }
.quick-credentials li.intern-item .role-label { color: #b45309; }
.quick-credentials li.guest-item .role-label { color: #1e40af; }
.quick-credentials li .user-email-text {
    font-size: 0.775rem;
    color: #64748b;
    margin-top: 2px;
}
.quick-credentials li .autofill-action {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color 0.2s ease;
}
.quick-credentials li:hover .autofill-action {
    color: #2563eb;
}

/* User Role Badges */
.badge-role {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.role-admin { background: rgba(225, 29, 72, 0.08); color: #be123c; border: 1px solid rgba(225, 29, 72, 0.15); }
.role-intern { background: rgba(217, 119, 6, 0.08); color: #b45309; border: 1px solid rgba(217, 119, 6, 0.15); }
.role-guest { background: rgba(71, 85, 105, 0.08); color: #334155; border: 1px solid rgba(71, 85, 105, 0.15); }

/* Dashboard Guest Alerts */
.banner-alert {
    padding: 12px 25px;
    border-radius: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.banner-alert.info {
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Sidebar Navigation Updates */
.sidebar-menu-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}
.btn-sidebar-link {
    background: none;
    border: none;
    width: auto;
    text-align: left;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
}
.btn-sidebar-link:hover {
    background: var(--bg-base);
    color: var(--text-primary);
}
.btn-sidebar-link.active {
    background: #eff6ff;
    color: var(--primary-color);
    font-weight: 600;
}

/* =========================================================================
   MOTOR PROFILE VIEW OVERLAY STYLES
   ========================================================================= */

.motor-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-base);
    z-index: 900;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism elements */
.profile-card {
    background: var(--bg-panel);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: all 0.25s ease;
}
.profile-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.profile-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.profile-card h3 i {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
}

/* Header bar styling */
.profile-header-bar {
    height: 80px;
    background: var(--bg-panel-solid);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 30px;
    box-shadow: var(--shadow-sm);
}

.btn-profile-back {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 18px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-profile-back:hover {
    background: var(--bg-base);
    border-color: var(--text-muted);
}

.btn-profile-back i {
    transition: transform 0.2s;
}

.btn-profile-back:hover i {
    transform: translateX(-4px);
}

.profile-header-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-header-title-container h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.profile-header-badges {
    display: flex;
    gap: 8px;
}

.badge-profile-brand {
    background: #eff6ff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.badge-profile-category {
    background: #f0fdf4;
    color: var(--success-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

/* Content grid */
.profile-content-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 30px;
    padding: 30px 40px;
    align-items: start;
    flex: 1;
}

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

/* Specifications Table */
.profile-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.profile-specs-table tr:last-child {
    border-bottom: none;
}

.profile-specs-table td {
    padding: 12px 0;
    font-size: 0.9rem;
}

.profile-specs-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 45%;
}

.profile-specs-table td:last-child {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

/* Links card */
.profile-links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.profile-link-btn:hover {
    background: #eff6ff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.profile-link-btn span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-link-btn span i {
    width: 16px;
    height: 16px;
}

.profile-link-btn .arrow-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.profile-link-btn:hover .arrow-icon {
    opacity: 1;
    transform: translateX(2px);
}

/* Stats grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.profile-stat-box {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-stat-box .stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-stat-box .stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

/* Test runs list selection panel */
.test-runs-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

.test-run-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-run-item:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.test-run-item.active {
    border-color: var(--primary-color);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.test-run-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.test-run-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.test-run-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

.test-run-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.test-run-meta i {
    width: 12px;
    height: 12px;
}

.test-run-tester {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Active telemetry run card styles */
.telemetry-details-card {
    border-left: 4px solid var(--primary-color);
}

.telemetry-details-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.telemetry-details-header h4 {
    margin: 0;
    font-size: 1.15rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.telemetry-details-header p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.telemetry-charts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 1400px) {
    .telemetry-charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .telemetry-charts-grid {
        grid-template-columns: 1fr;
    }
}

.profile-chart-container {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    height: 230px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.profile-chart-container h5 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-chart-container canvas {
    flex: 1;
    width: 100% !important;
    height: 100% !important;
}

.profile-telemetry-table th {
    background: var(--bg-base);
    font-size: 0.72rem;
}

.profile-telemetry-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
}

.motor-profile-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.15s;
}

.motor-profile-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}





/* ============================================================
   THRUSTVAULT ONBOARDING TOUR
   ============================================================ */

/* Dark overlay backdrop */
.tv-ob-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 15, 30, 0.72);
        transition: opacity 0.3s ease;
    pointer-events: all;
}

/* Spotlight cutout  glowing border around target element */
.tv-ob-spotlight {
    position: fixed;
    pointer-events: none;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.55),
        0 0 0 9999px rgba(10, 15, 30, 0.72);
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Tour card */
.tv-ob-card {
    position: fixed;
    width: 360px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(37,99,235,0.1);
    padding: 28px 26px 22px;
    z-index: 100001;
    transition: opacity 0.14s ease, transform 0.14s ease;
    font-family: 'Inter', sans-serif;
}

.tv-ob-card--center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.tv-ob-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tv-ob-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
}
.tv-ob-icon-wrap svg { width: 20px; height: 20px; color: #fff; }

.tv-ob-step-counter {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    margin-left: 2px;
}

.tv-ob-skip {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 0.78rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    transition: color 0.15s, background 0.15s;
}
.tv-ob-skip:hover { color: #e11d48; background: #fef2f2; }

.tv-ob-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.2;
}

.tv-ob-body {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 18px;
}
.tv-ob-body p { margin: 0; }
.tv-ob-body strong { color: #1e293b; }
.tv-ob-body em { color: #2563eb; font-style: normal; font-weight: 500; }
.tv-ob-body kbd {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.78rem;
    font-family: monospace;
    color: #334155;
    line-height: 1.4;
}

.tv-ob-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 18px;
}
.tv-ob-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}
.tv-ob-dot.active {
    background: #2563eb;
    width: 20px;
    border-radius: 4px;
}
.tv-ob-dot:hover:not(.active) { background: #94a3b8; }

.tv-ob-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tv-ob-btn-prev {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s ease;
}
.tv-ob-btn-prev:hover { background: #f8fafc; border-color: #cbd5e1; color: #334155; }

.tv-ob-btn-next {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 14px -3px rgba(37, 99, 235, 0.45);
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}
.tv-ob-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px rgba(37, 99, 235, 0.55);
}
.tv-ob-btn-next:active { transform: translateY(0); }

.tv-ob-help-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    margin-bottom: 8px;
    transition: all 0.15s ease;
}
.tv-ob-help-btn:hover { background: #dbeafe; border-color: #93c5fd; }

/* Password Visibility Toggle */
.input-with-icon .btn-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 5;
}
.input-with-icon .btn-password-toggle:hover {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
}
.input-with-icon input.with-toggle {
    padding-right: 44px;
}

/* Password Strength Meter */
.strength-meter-container {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.strength-bar-track {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.strength-bar-fill {
    height: 100%;
    width: 0;
    background-color: #ef4444;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.strength-text-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    display: flex;
    justify-content: space-between;
}

/* Caps Lock Warning */
.caps-lock-warning {
    display: none;
    font-size: 0.78rem;
    color: #e11d48;
    font-weight: 500;
    margin-top: 6px;
    align-items: center;
    gap: 6px;
}

/* View Transitions */
.login-view {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.login-view.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   DARK THEME OVERRIDES (DEEP BLACK THEME)
   ========================================================================= */
[data-theme="dark"] {
    --bg-base: #000000;
    --bg-panel: rgba(12, 12, 12, 0.75);
    --bg-panel-solid: #080808;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
}

/* Sidebar in dark mode */
[data-theme="dark"] .sidebar {
    background-color: #080808;
}
[data-theme="dark"] .sidebar-footer {
    background: #080808;
}
[data-theme="dark"] .btn-sidebar-link.active {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

/* Inputs in dark mode */
[data-theme="dark"] input, 
[data-theme="dark"] select, 
[data-theme="dark"] textarea {
    background: #0c0c0c !important;
    color: #f8fafc !important;
}

/* Search bar overrides in dark mode */
[data-theme="dark"] .search-container {
    background: #080808 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .search-container:focus-within {
    background: #0c0c0c !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}
[data-theme="dark"] .search-container input {
    background: transparent !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .search-container input::placeholder {
    color: var(--text-muted) !important;
}
[data-theme="dark"] .search-icon {
    color: var(--text-secondary) !important;
}
[data-theme="dark"] .search-clear-btn {
    color: var(--text-secondary) !important;
}

/* Suggestions Dropdown in dark mode */
[data-theme="dark"] .search-suggestions-dropdown {
    background: #080808 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.8), 0 2px 8px -2px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="dark"] .search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
}
[data-theme="dark"] .suggestion-header {
    background: #0c0c0c !important;
    color: var(--text-muted) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .suggestion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] .suggestion-item:hover,
[data-theme="dark"] .suggestion-item.active {
    background: rgba(59, 130, 246, 0.15) !important;
}
[data-theme="dark"] .suggestion-item-icon {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
}
[data-theme="dark"] .suggestion-motor-name {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .suggestion-item mark {
    background: rgba(59, 130, 246, 0.4) !important;
    color: #93c5fd !important;
}
[data-theme="dark"] .suggestion-motor-meta {
    color: var(--text-muted) !important;
}
[data-theme="dark"] .suggestion-thrust-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
[data-theme="dark"] .suggestion-no-results {
    color: var(--text-muted) !important;
}


/* Cards & panels */
[data-theme="dark"] .glass-panel {
    background: rgba(12, 12, 12, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Table header & rows */
[data-theme="dark"] .motors-table th {
    background: #0c0c0c;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}
[data-theme="dark"] .motors-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Button & badges overrides for dark mode */
[data-theme="dark"] .btn-secondary {
    background: #080808;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .btn-secondary:hover {
    background: #121212;
}
[data-theme="dark"] .btn-secondary-sm {
    background: #080808;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .btn-secondary-sm:hover {
    background: #121212;
}
[data-theme="dark"] .btn-logout-premium {
    background: rgba(225, 29, 72, 0.1);
    border-color: rgba(225, 29, 72, 0.2);
}
[data-theme="dark"] .btn-logout-premium:hover {
    background: rgba(225, 29, 72, 0.2);
}
[data-theme="dark"] .badge-thrust {
    background: #0c0c0c;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .cat-count {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}
[data-theme="dark"] .category-tab:hover {
    background: rgba(45, 212, 191, 0.04);
    color: #2dd4bf;
}
[data-theme="dark"] .category-tab.active {
    background: rgba(13, 148, 136, 0.15);
    border-color: transparent;
    color: #2dd4bf;
}
[data-theme="dark"] .category-tab.active::before {
    background: #2dd4bf;
}
[data-theme="dark"] .category-tab.active .cat-count {
    background: #0d9488;
    color: #ffffff;
}

/* Overriding inline styling for colors */
[data-theme="dark"] [style*="color:#0f172a"],
[data-theme="dark"] [style*="color: #0f172a"],
[data-theme="dark"] [style*="color:#000000"],
[data-theme="dark"] [style*="color: #000000"] {
    color: #f8fafc !important;
}
[data-theme="dark"] [style*="color:#334155"],
[data-theme="dark"] [style*="color: #334155"],
[data-theme="dark"] [style*="color:#475569"],
[data-theme="dark"] [style*="color: #475569"] {
    color: #cbd5e1 !important;
}
[data-theme="dark"] [style*="background:#eff6ff"],
[data-theme="dark"] [style*="background: #eff6ff"] {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
}
[data-theme="dark"] [style*="background:#f8fafc"],
[data-theme="dark"] [style*="background: #f8fafc"],
[data-theme="dark"] [style*="background:#f1f5f9"],
[data-theme="dark"] [style*="background: #f1f5f9"] {
    background: #0c0c0c !important;
}
[data-theme="dark"] [style*="background:#e2e8f0"],
[data-theme="dark"] [style*="background: #e2e8f0"] {
    background: #1e1e1e !important;
}
[data-theme="dark"] [style*="border-bottom:1px solid #cbd5e1"],
[data-theme="dark"] [style*="border-bottom: 1px solid #cbd5e1"] {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Calendar heatmap adjustments for dark mode */
[data-theme="dark"] .contrib-cell.contrib-lvl-0 { background-color: #161b22; }
[data-theme="dark"] .contrib-cell.contrib-lvl-1 { background-color: #0e4429; }
[data-theme="dark"] .contrib-cell.contrib-lvl-2 { background-color: #006d32; }
[data-theme="dark"] .contrib-cell.contrib-lvl-3 { background-color: #26a641; }
[data-theme="dark"] .contrib-cell.contrib-lvl-4 { background-color: #39d353; }

/* Sidebar collapsed theme button support */
.sidebar.collapsed .btn-theme-toggle {
    font-size: 0 !important;
    justify-content: center !important;
    padding: 12px 0 !important;
}
.sidebar.collapsed .btn-theme-toggle span {
    display: none !important;
}
.sidebar.collapsed .btn-theme-toggle i,
.sidebar.collapsed .btn-theme-toggle svg {
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Table contrast overrides in dark mode */
[data-theme="dark"] table {
    background-color: #0c0c0c !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] thead {
    background-color: #080808 !important;
}
[data-theme="dark"] th {
    background-color: #0c0c0c !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] td {
    background-color: #080808 !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] tr:hover td {
    background-color: #121212 !important;
}

/* Audit Logs specific overrides in dark mode */
[data-theme="dark"] .metric-card-premium {
    background: #080808 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}
[data-theme="dark"] .filter-panel-premium {
    background: #080808 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}
[data-theme="dark"] .timeline-card {
    background: #080808 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}
[data-theme="dark"] .timeline-card-body {
    background: #0c0c0c !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}
[data-theme="dark"] .pagination-container {
    background: #080808 !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .pagination-btn {
    background: #0c0c0c !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}
[data-theme="dark"] .pagination-btn:hover:not(:disabled) {
    background: #121212 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
[data-theme="dark"] .pagination-number {
    color: #cbd5e1 !important;
}
[data-theme="dark"] .pagination-number:hover:not(.active) {
    background: #1e1e1e !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* View mode / selector buttons in dark mode */
[data-theme="dark"] .view-mode-selector {
    background: #0c0c0c !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .view-mode-btn {
    color: #94a3b8 !important;
}
[data-theme="dark"] .view-mode-btn.active {
    background: #1e1e1e !important;
    color: #3b82f6 !important;
}
[data-theme="dark"] th.sort-header:hover {
    background: #1e1e1e !important;
}
[data-theme="dark"] .log-detail-row:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}
[data-theme="dark"] .expanded-details {
    background: #080808 !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .timeline-container::before {
    background: rgba(255, 255, 255, 0.15) !important;
}
[data-theme="dark"] .timeline-badge {
    background: #080808 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .risk-info,
[data-theme="dark"] .timeline-badge.risk-info {
    background: rgba(3, 105, 161, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(3, 105, 161, 0.3) !important;
}
[data-theme="dark"] .risk-warning,
[data-theme="dark"] .timeline-badge.risk-warning {
    background: rgba(217, 119, 6, 0.15) !important;
    color: #fbbf24 !important;
    border-color: rgba(217, 119, 6, 0.3) !important;
}
[data-theme="dark"] .risk-suspicious,
[data-theme="dark"] .timeline-badge.risk-suspicious {
    background: rgba(185, 28, 28, 0.15) !important;
    color: #fca5a5 !important;
    border-color: rgba(185, 28, 28, 0.3) !important;
}
[data-theme="dark"] .metric-icon-box {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}
[data-theme="dark"] .metric-card-premium.danger .metric-icon-box {
    background: rgba(225, 29, 72, 0.15) !important;
    color: #f43f5e !important;
}
[data-theme="dark"] .metric-card-premium.warning .metric-icon-box {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
}

/* Exporter specific overrides in dark mode */
[data-theme="dark"] .selector-card {
    background: #080808 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .selector-card:hover {
    border-color: #3b82f6 !important;
}
[data-theme="dark"] .selector-card.selected {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
}
[data-theme="dark"] .selector-card-info-btn {
    background: #0c0c0c !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}
[data-theme="dark"] .selector-card-info-btn:hover {
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.05) !important;
}
[data-theme="dark"] .selector-card-info-btn.active {
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    background: #3b82f6 !important;
}
[data-theme="dark"] .selector-badge {
    background: #121212 !important;
    color: #cbd5e1 !important;
}
[data-theme="dark"] .selector-badge.primary {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}
[data-theme="dark"] .download-modal-card {
    background: rgba(8, 8, 8, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .download-modal-icon {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}
[data-theme="dark"] .progress-bar-container {
    background: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] #preview-grid-box {
    background: #080808 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* User profiles, alerts, and modals in dark mode */
[data-theme="dark"] .contribution-calendar-wrapper {
    background: rgba(12, 12, 12, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .modal-container {
    background: #080808 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .banner-alert.info {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #60a5fa !important;
}

/* =========================================================================
   REDESIGNED UI & PREMIUM LAYOUT SYSTEM
   ========================================================================= */

.catalog-workspace-layout {
    display: flex;
    gap: 24px;
    position: relative;
    padding-top: 10px;
    align-items: flex-start;
}
.catalog-table-container {
    flex: 1;
    min-width: 0;
}

/* Sidebar Workspace Dropdown */
.workspace-selector {
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}
.workspace-selector:hover {
    background: #f1f5f9;
}
.workspace-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.workspace-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}
.workspace-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.kpi-card {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}
.kpi-header i, .kpi-header svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}
.kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}
.kpi-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.kpi-indicator.up { color: #059669; }
.kpi-indicator.down { color: #e11d48; }
.kpi-footer-text { color: var(--text-muted); font-weight: 500; }
.kpi-visual {
    margin-left: auto;
}

/* Visuals Grid (Treemap, Top 10, Insights) */
.visuals-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
    flex-shrink: 0;
}
@media(min-width: 1024px) {
    .visuals-row {
        grid-template-columns: 1.3fr 1fr 0.8fr;
    }
}
.visual-card {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    height: 360px;
    box-sizing: border-box;
}
.visual-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.visual-card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

/* Treemap Styling */
.treemap-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-height: 180px;
}
.treemap-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    border-radius: 6px;
    color: #ffffff;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}
.treemap-block:hover {
    transform: scale(0.99);
    filter: brightness(0.95);
}
.treemap-block-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.treemap-block-pct {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}
.treemap-block-sub {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-top: auto;
}

/* Top 10 bar list visualization */
.top-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    justify-content: flex-start;
}
.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    padding: 2px 0;
}
.bar-num {
    color: var(--text-muted);
    font-weight: 600;
    width: 14px;
}
.bar-label {
    font-weight: 600;
    color: var(--text-secondary);
    width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bar-track {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
    border-radius: 3px;
}
.bar-value {
    font-weight: 700;
    color: var(--text-primary);
    width: 50px;
    text-align: right;
}

/* Insights list styling */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.insight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.insight-item:hover {
    background: #f8fafc;
}
.insight-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    flex-shrink: 0;
}
.insight-icon-box i, .insight-icon-box svg {
    width: 14px;
    height: 14px;
}
.insight-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.insight-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}
.insight-desc {
    color: var(--text-secondary);
    font-weight: 600;
}
.insight-val {
    margin-left: auto;
    font-weight: 700;
    color: var(--text-primary);
}

/* Filters row styling */
.filter-pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.filter-pills-row select {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-panel-solid);
    color: var(--text-secondary);
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-pills-row select:hover {
    border-color: var(--primary-color);
}
.filter-pill-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 6px;
    cursor: pointer;
}
.filter-pill-active i, .filter-pill-active svg {
    width: 12px;
    height: 12px;
}

/* Custom table badges, images and indicators */
.motor-thumbnail {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.efficiency-bar-track {
    width: 60px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
.efficiency-bar-fill {
    height: 100%;
    border-radius: 3px;
}
.efficiency-bar-fill.high { background: #059669; }
.efficiency-bar-fill.med { background: #d97706; }
.efficiency-bar-fill.low { background: #e11d48; }

.status-dot-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.in-stock { background: #059669; }
.status-dot.limited { background: #d97706; }
.status-dot.out-of-stock { background: #e11d48; }

.comparison-sidebar {
    width: 320px;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
}
.comparison-sidebar.show {
    display: flex;
}
.comparison-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.comparison-sidebar-header h3 {
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}
.comparison-sidebar-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.compare-thumbs-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 0;
}
.compare-thumb-box {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.compare-thumb-box.active {
    background: var(--bg-base);
    border-style: solid;
    border-color: var(--primary-color);
}
.compare-thumb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.15);
}
.compare-thumb-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e11d48;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    z-index: 10;
}
.compare-thumb-box i, .compare-thumb-box svg {
    color: var(--text-muted);
}
.compare-check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}
.compare-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}
.compare-check-item input {
    cursor: pointer;
}
.comparison-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comparison-sidebar-footer button {
    width: 100%;
}

/* =========================================================================
   DARK THEME OVERRIDES FOR REDESIGNED ELEMENTS
   ========================================================================= */

[data-theme="dark"] .workspace-selector {
    background: #080808;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .workspace-selector:hover {
    background: #121212;
}
[data-theme="dark"] .kpi-card {
    background: #080808;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .kpi-card:hover {
    border-color: #3b82f6;
}
[data-theme="dark"] .visual-card {
    background: #080808;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .visual-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .bar-track {
    background: #121212;
}
[data-theme="dark"] .insight-item:hover {
    background: #121212;
}
[data-theme="dark"] .insight-icon-box {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
[data-theme="dark"] .filter-pills-row {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .filter-pills-row select {
    background: #0c0c0c;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .filter-pills-row select:hover {
    border-color: #3b82f6;
}
[data-theme="dark"] .filter-pill-active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}
[data-theme="dark"] .motor-thumbnail {
    background: #121212;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .efficiency-bar-track {
    background: #1e1e1e;
}
[data-theme="dark"] .comparison-sidebar {
    background: #080808;
    border-left-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .compare-thumb-box {
    background: #0c0c0c;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .compare-thumb-box.active {
    background: #000000;
    border-color: #3b82f6;
}
[data-theme="dark"] .compare-thumb-avatar {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}
[data-theme="dark"] .compare-check-list {
    border-top-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .comparison-sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* =========================================================================
   SHIMMER SKELETON LOADERS
   ========================================================================= */
.shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite linear;
    border-radius: 6px;
    display: inline-block;
}
[data-theme="dark"] .shimmer {
    background-image: linear-gradient(90deg, #0c0c0c 25%, #181818 50%, #0c0c0c 75%);
}
@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
}
.skeleton-title-shimmer {
    height: 24px;
    border-radius: 6px;
    width: 120px;
}
.skeleton-badge-shimmer {
    height: 18px;
    border-radius: 4px;
    width: 60px;
}
.skeleton-circle-shimmer {
    border-radius: 50%;
}

/* Sidebar Dropdown Accordion */
.sidebar-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.sidebar-dropdown-wrapper .category-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    flex-direction: column;
    gap: 8px;
}
.sidebar-dropdown-wrapper.expanded .category-list {
    display: flex;
}
.sidebar-dropdown-wrapper .dropdown-chevron {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-dropdown-wrapper.expanded .dropdown-chevron {
    transform: rotate(180deg);
}

/* Explorer Layout & Components */
.explorer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
}
.explorer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    gap: 15px;
    flex-wrap: wrap;
}
.explorer-toolbar-section {
    display: flex;
    align-items: center;
    gap: 10px;
}
.explorer-toolbar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.explorer-select {
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-base);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border 0.15s;
}
.explorer-select:focus {
    border-color: var(--primary-color);
}
.explorer-btn-group {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.explorer-btn-view {
    background: var(--bg-panel-solid);
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.explorer-btn-view:hover {
    background: var(--bg-base);
    color: var(--primary-color);
}
.explorer-btn-view.active {
    background: var(--primary-color);
    color: #ffffff;
}

.explorer-viewport {
    display: flex;
    flex: 1;
    gap: 20px;
    min-height: 0;
}
.explorer-content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.explorer-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.explorer-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    user-select: none;
}
.explorer-group-header .group-chevron {
    transition: transform 0.2s;
    color: var(--text-secondary);
}
.explorer-group.collapsed .explorer-group-header .group-chevron {
    transform: rotate(-90deg);
}
.explorer-group.collapsed .explorer-group-items {
    display: none !important;
}

/* View Mode Layouts */
.explorer-table {
    width: 100%;
    border-collapse: collapse;
}
.explorer-table th, .explorer-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.explorer-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
}
.explorer-row {
    cursor: pointer;
    transition: background 0.15s;
}
.explorer-row:hover {
    background: rgba(13, 148, 136, 0.03);
}
.explorer-row.selected {
    background: rgba(13, 148, 136, 0.08);
}
[data-theme="dark"] .explorer-row:hover {
    background: rgba(45, 212, 191, 0.03);
}
[data-theme="dark"] .explorer-row.selected {
    background: rgba(45, 212, 191, 0.08);
}

.view-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.list-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s;
    gap: 12px;
}
.list-item:hover {
    background: rgba(13, 148, 136, 0.03);
}
.list-item.selected {
    background: rgba(13, 148, 136, 0.08);
}
[data-theme="dark"] .list-item:hover {
    background: rgba(45, 212, 191, 0.03);
}
[data-theme="dark"] .list-item.selected {
    background: rgba(45, 212, 191, 0.08);
}

.view-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.tile-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-panel-solid);
    gap: 12px;
}
.tile-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.tile-item.selected {
    background: rgba(13, 148, 136, 0.06);
    border-color: #0d9488;
}
[data-theme="dark"] .tile-item.selected {
    background: rgba(45, 212, 191, 0.08);
    border-color: #2dd4bf;
}

.view-large-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.large-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-panel-solid);
    gap: 12px;
}
.large-icon-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.large-icon-item.selected {
    background: rgba(13, 148, 136, 0.06);
    border-color: #0d9488;
}
[data-theme="dark"] .large-icon-item.selected {
    background: rgba(45, 212, 191, 0.08);
    border-color: #2dd4bf;
}
.large-icon-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Right side Collapsible Pane */
.explorer-panel {
    width: 320px;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    transition: all 0.2s ease;
}
.explorer-panel.collapsed {
    width: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.panel-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Custom Context Menu */
.explorer-context-menu {
    position: fixed;
    z-index: 1000;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    display: none;
    flex-direction: column;
    padding: 4px 0;
}
.context-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.context-menu-item:hover {
    background: var(--bg-base);
    color: var(--primary-color);
}
.context-menu-item.danger:hover {
    background: #fee2e2;
    color: var(--danger-color);
}

/* Floating Actions Bar for Multi-select */
.explorer-action-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 10px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 900;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.explorer-action-bar.show {
    transform: translateX(-50%) translateY(0);
}
.action-bar-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Shimmer styling for Explorer skeletons */
/* Shimmer styling for Explorer skeletons */
.explorer-skeleton-row {
    height: 40px;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* =========================================================================
   COMPLETELY REDESIGNED MINIMAL & PROFESSIONAL NAV BAR (JUNE 2026 UPDATE)
   ========================================================================= */

/* Navbar Glassmorphism and Layout */
.sidebar {
    width: 100% !important;
    height: 64px !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-right: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 32px !important;
    position: relative !important;
    z-index: 1000 !important;
    transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .sidebar {
    background: rgba(15, 23, 42, 0.75) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Nav Links Minimalism (No Bulky Backgrounds!) */
.btn-sidebar-link {
    background: none !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-sidebar-link:hover {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .btn-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

.btn-sidebar-link.active {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.08) !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .btn-sidebar-link.active {
    background: rgba(37, 99, 235, 0.15) !important;
}

/* Hide Stats & Legacy Collapsed Sidebar Elements from Navbar */
.sidebar.collapsed {
    height: 64px !important;
}
.sidebar-stats {
    display: none !important; /* Hide motor/level stats badges */
}

/* User Menu & Dropdown */
.user-profile-menu-wrapper {
    position: relative;
    display: inline-block;
}

.user-avatar-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    transition: background-color 0.15s;
    cursor: pointer;
}

.user-avatar-trigger:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .user-avatar-trigger:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.avatar-chevron {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    transition: transform 0.15s;
}

.user-profile-menu-wrapper:hover .avatar-chevron {
    transform: translateY(1px);
}

/* Dropdown Card */
.user-dropdown-card {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    z-index: 1010;
    flex-direction: column;
    gap: 6px;
    animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-profile-menu-wrapper:hover .user-dropdown-card {
    display: flex;
}

/* User details inside dropdown */
.dropdown-user-details {
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-user-details .user-email {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.dropdown-user-details .badge-role {
    align-self: flex-start;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Style dynamic theme toggle inside user dropdown */
.btn-theme-toggle {
    width: 100% !important;
    padding: 8px 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    cursor: pointer !important;
    color: var(--text-secondary) !important;
    transition: all 0.15s !important;
    box-sizing: border-box !important;
}

.btn-theme-toggle:hover {
    background: var(--bg-base) !important;
    color: var(--text-primary) !important;
}

/* Hide theme label text in standard sidebar since we now use it in dropdown */
.btn-theme-toggle span {
    display: inline-block !important; /* show text in dropdown */
}

/* Log Out Dropdown Item styling */
.btn-logout-premium {
    width: 100% !important;
    padding: 8px 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #e11d48 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    box-sizing: border-box !important;
}

.btn-logout-premium:hover {
    background: #fff1f2 !important;
    color: #be123c !important;
}

[data-theme="dark"] .btn-logout-premium:hover {
    background: rgba(225, 29, 72, 0.15) !important;
    color: #fda4af !important;
}

.btn-logout-premium i {
    width: 16px;
    height: 16px;
}

/* Thrust Levels absolute dropdown list container padding */
.category-list {
    min-width: 200px !important;
}

.category-tab {
    padding: 8px 12px !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.82rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: background 0.15s !important;
}

.category-tab span {
    font-weight: 500 !important;
}

.category-tab .cat-count {
    font-size: 0.72rem !important;
    padding: 1px 6px !important;
}

/* Enable hover dropdown for navigation dropdowns on desktop */
@media (min-width: 768px) {
    .sidebar-dropdown-wrapper:hover .category-list {
        display: flex !important;
    }
    .sidebar-dropdown-wrapper:hover .dropdown-chevron {
        transform: rotate(180deg) !important;
    }
}

/* Redesigned dropdown links within custom management dropdowns */
.category-list .btn-sidebar-link {
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-panel-solid);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-size-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.page-size-select {
    padding: 6px 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-base);
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.page-size-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pagination-page-btn:hover {
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--text-primary);
}

.pagination-page-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

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

.pagination-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.pagination-nav-btn:hover:not(.disabled) {
    background-color: var(--bg-base);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

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