/* ============================================
   DRIVE FEATURE - Reusable across all apps
   Includes: Knowledge Hub, File Management, Assets
   ============================================ */

/* ========== Knowledge Article Cards ========== */

.knowledge-article {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: all var(--transition-base);
  cursor: pointer;
}

.knowledge-article:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-300);
  transform: translateY(-2px);
}

.knowledge-article-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.knowledge-article-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-100);
  color: var(--color-primary-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.knowledge-article-content {
  flex: 1;
  min-width: 0;
}

.knowledge-article-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.knowledge-article-description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.knowledge-article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-gray-600);
}

.knowledge-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-gray-200);
}

/* ========== File/Asset Grid ========== */

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-6);
}

.asset-card {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.asset-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary-300);
}

.asset-card-thumbnail {
  width: 100%;
  height: 160px;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.asset-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-card-icon {
  font-size: 48px;
  color: var(--color-gray-400);
}

.asset-card-body {
  padding: var(--space-4);
}

.asset-card-title {
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-gray-600);
}

.asset-card-type {
  padding: var(--space-1) var(--space-2);
  background: var(--color-gray-100);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== File List View ========== */

.files-list-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.files-table {
  width: 100%;
  border-collapse: collapse;
}

.files-table thead {
  background: var(--color-gray-50);
  border-bottom: 2px solid var(--color-gray-200);
}

.files-table th {
  padding: var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.files-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-gray-200);
  font-size: var(--text-sm);
  color: var(--color-gray-900);
}

.files-table tbody tr:hover {
  background: var(--color-gray-50);
}

.files-table tbody tr:last-child td {
  border-bottom: none;
}

.file-name-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.file-icon {
  width: 32px;
  height: 32px;
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.file-name {
  font-weight: var(--font-medium);
  color: var(--color-gray-900);
}

/* ========== Folder Navigation ========== */

.folder-breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: white;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: var(--text-sm);
}

.breadcrumb-item {
  color: var(--color-gray-600);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.breadcrumb-item:hover {
  color: var(--color-primary-600);
}

.breadcrumb-item.active {
  color: var(--color-gray-900);
  font-weight: var(--font-medium);
  cursor: default;
}

.breadcrumb-separator {
  color: var(--color-gray-400);
}

/* ========== Upload Zone ========== */

.upload-zone {
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  background: var(--color-gray-50);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--color-primary-500);
  background: var(--color-primary-50);
}

.upload-zone.dragging {
  border-color: var(--color-primary-500);
  background: var(--color-primary-100);
}

.upload-zone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  opacity: 0.3;
}

.upload-zone-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.upload-zone-description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

/* ========== File Preview ========== */

.file-preview-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.file-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-gray-200);
}

.file-preview-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
}

.file-preview-content {
  margin-bottom: var(--space-6);
}

.file-preview-image {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.file-preview-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
}

.file-preview-meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.file-preview-meta-label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.file-preview-meta-value {
  font-size: var(--text-sm);
  color: var(--color-gray-900);
}

/* ========== Tags ========== */

.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.asset-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

/* ========== Storage Stats ========== */

.storage-stats {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.storage-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.storage-stats-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
}

.storage-stats-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.storage-stats-label {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.storage-progress {
  width: 100%;
  height: 8px;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-4);
}

.storage-progress-bar {
  height: 100%;
  background: var(--color-primary-500);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
  .assets-grid {
    grid-template-columns: 1fr;
  }
  
  .file-preview-meta {
    grid-template-columns: 1fr;
  }
  
  .folder-breadcrumbs {
    flex-wrap: wrap;
  }
}
/**
 * Knowledge Hub - Combined & Optimized CSS
 * ===========================================
 * 
 * This file combines the following CSS files for better performance:
 * - knowledge_hub_modern.css (Base layout and design tokens)
 * - knowledge_hub_home.css (Home view, sidebar, stats dashboard)
 * - knowledge_hub_assets_v2.css (Asset grid and list views)
 * - asset_wizard.css (Asset creation wizard)
 * - asset_detail_view.css (Asset detail view)
 * 
 * Loaded via: application/controllers/Crm_admin.php
 * Used in: application/views/admin/crm/partials/knowledge_hub.php
 */

/**
 * Knowledge Hub - Enterprise UI/UX
 * World-class, elegant, professional design
 * 
 * Z-INDEX HIERARCHY:
 * ==================
 * Level 1: Base content (z-index: 1)
 *   - .knowledge-hub-enhanced
 *   - .hub-sidebar
 *   - .hub-main-content
 * 
 * Level 2: Dropdowns & Popovers (z-index: 100-500)
 *   - Filter dropdowns
 *   - Context menus
 * 
 * Level 3: Sticky Headers (z-index: 999)
 *   - .menu-sticky (from general.css)
 * 
 * Level 4: Overlays & Modals (z-index: 9999+)
 *   - .modal-overlay
 *   - .menu-sticky-bottom (z-index: 9999)
 *   - Notifications (z-index: 1100)
 * 
 * This ensures Knowledge Hub content stays below sticky menus and modals
 */

/* Design Tokens */
:root {
  /* Primary Colors */
  --primary-600: #2563eb;
  --primary-500: #3b82f6;
  --primary-400: #60a5fa;
  --primary-100: #dbeafe;
  --primary-50: #eff6ff;
  
  /* Neutral Palette */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Surface Colors */
  --surface-primary: #ffffff;
  --surface-secondary: #fafbfc;
  --surface-tertiary: #f8fafc;
  
  /* Border Colors */
  --border-primary: #e5e7eb;
  --border-secondary: #f3f4f6;
  --border-hover: #d1d5db;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Parent Container Fix */


/* Base Layout */
.knowledge-hub-enhanced {
  display: flex;
  flex: 1;
  height: 100%;
  background: var(--surface-tertiary);
  font-family: var(--font-sans);
  color: var(--gray-900);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Sidebar */
.hub-sidebar {
  width: 260px;
  background: var(--surface-primary);
  border-right: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width var(--transition-base);
  z-index: 1;
  position: relative;
}

.hub-sidebar.collapsed {
  width: 60px;
}

.sidebar-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-primary);
  flex-shrink: 0;
}

.sidebar-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar-header .btn-icon {
  padding: var(--space-2);
  background: transparent;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-header .btn-icon:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.sidebar-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Sidebar Sections */

.sidebar-section:last-child {
  margin-bottom: 0;
}

.section-header-small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
}

.section-header-small span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

.btn-icon-small {
  padding: 2px 6px;
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: all var(--transition-fast);
}

.btn-icon-small:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* Quick Action Buttons */
.sidebar-section .btn.full-width {
  width: 100%;
  margin-bottom: var(--space-2);
  justify-content: center;
  font-size: 13px;
  padding: var(--space-3) var(--space-4);
  font-weight: 500;
}

/* Collections & Categories */
.collections-tree,
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.collection-item, .category-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
  color: var(--gray-700);
  position: relative;
}

.collection-item:hover, .category-item:hover {
  background: var(--gray-50);
}

.collection-item.active, .category-item.active {
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 500;
}

.collection-item.pinned {
  background: var(--gray-50);
}

.collection-icon,
.category-dot {
  flex-shrink: 0;
}

.collection-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.collection-name,
.category-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.collection-count,
.category-count {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
  padding: 2px 6px;
  background: var(--gray-100);
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.collection-item.active .collection-count,
.category-item.active .category-count {
  background: var(--primary-100);
  color: var(--primary-600);
}

.collection-menu-btn {
  opacity: 0;
  padding: 2px 6px;
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 16px;
  transition: all var(--transition-fast);
}

.collection-item:hover .collection-menu-btn {
  opacity: 1;
}

.collection-menu-btn:hover {
  background: var(--gray-200);
  color: var(--gray-600);
}

/* Main Content */
.hub-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-tertiary);
  position: relative;
  z-index: 1;
}

/* Control Bar */
.hub-control-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--surface-primary);
  border-bottom: 1px solid var(--border-primary);
  flex-shrink: 0;
}

.control-bar-left,
.control-bar-center,
.control-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.control-bar-center {
  flex: 1;
  max-width: 800px;
}

/* Applied Filters Row */
.applied-filters-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--surface-primary);
  border-bottom: 1px solid var(--border-primary);
  flex-wrap: wrap;
}

/* Content Scrollable Container */
.data-container {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

/* Grid View */
.hub-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  padding: var(--space-6);
  overflow-y: auto;
}

.asset-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.asset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.asset-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0 8px;
  color: var(--text);
}

.asset-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Kanban View */
.hub-kanban-view {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.kanban-column {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
}

.kanban-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 600;
}

.kanban-card {
  background: var(--card);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* View Mode Switcher */
.view-mode-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 8px;
}

.view-mode-switcher .btn-icon {
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.view-mode-switcher .btn-icon.active {
  background: var(--primary);
  color: white;
}

/* Stats Cards */
.hub-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface-tertiary);
}

.stat-card {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  font-size: 32px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* Buttons */
.btn.primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn.primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn.outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Empty State */
.empty-state-professional {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-6);
  text-align: center;
  min-height: 400px;
}

.empty-state-professional .empty-icon {
  font-size: 64px;
  margin-bottom: var(--space-6);
  opacity: 0.5;
}

.empty-state-professional h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 var(--space-3) 0;
}

.empty-state-professional p {
  color: var(--gray-600);
  max-width: 500px;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}

.empty-actions {
  display: flex;
  gap: var(--space-3);
}

/* Modal Overlays - High z-index to appear above everything */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.modal-content {
  background: var(--surface-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 10001;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-primary);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: var(--space-6);
  border-top: 1px solid var(--border-primary);
}

/* ========== FOLDER MODAL SPECIFIC ========== */
.folder-modal {
  max-width: 500px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-group label .required {
  color: #ef4444;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.color-option:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-option.active {
  border-color: #111827;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #111827;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.icon-option {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  background: white;
  transition: all 0.2s;
}

.icon-option:hover {
  border-color: #667eea;
  background: #f9fafb;
  transform: scale(1.05);
}

.icon-option.active {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 0 0 0 2px white, 0 0 0 4px #667eea;
}

/**
 * Knowledge Hub Home - Professional Enterprise UI/UX Revamp
 * World-class design matching Asset Detail View standards
 */

/* ========== KNOWLEDGE HUB CONTAINER ========== */
.knowledge-hub-enhanced {
  display: flex;
  min-height: 600px;
  background: #f8fafc;
  overflow: hidden;
}

/* ========== MODERN HERO HEADER ========== */
.hub-hero-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 32px 40px;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-header-left h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-header-left p {
  font-size: 15px;
  opacity: 0.9;
  margin: 0;
}

.hero-header-actions {
  display: flex;
  gap: 12px;
}

.hero-header-actions .btn {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========== ENHANCED SIDEBAR ========== */
.hub-sidebar {
  width: 280px;
  background: white;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
}

.hub-sidebar.collapsed {
  width: 72px;
}

.hub-sidebar.collapsed .sidebar-logo-text,
.hub-sidebar.collapsed .sidebar-menu-text,
.hub-sidebar.collapsed .sidebar-menu-count,
.hub-sidebar.collapsed .sidebar-section-title span,
.hub-sidebar.collapsed .sidebar-section-add {
  display: none;
}

.hub-sidebar.collapsed .sidebar-actions .btn span {
  display: none;
}

.hub-sidebar.collapsed .sidebar-actions .btn {
  padding: 12px;
  min-width: auto;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sidebar-logo-icon svg {
  color: white;
  stroke: white;
}

.sidebar-collapse-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sidebar-collapse-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

/* Elegant collapse button - minimal and clean */
.sidebar-collapse-btn-elegant {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
}

.sidebar-collapse-btn-elegant:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}

.sidebar-collapse-btn-elegant:active {
  transform: scale(0.98);
}

/* Adjust sidebar header for elegant button */
.hub-sidebar .sidebar-header {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-actions {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-actions .btn {
  justify-content: center;
  font-weight: 600;
}

.sidebar-section {
  padding: 0 16px 16px 16px;
  overflow-y: auto;
}

.sidebar-section:first-of-type {
  padding-top: 16px;
  flex: 1;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-section-add {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.sidebar-section-add:hover {
  background: #667eea;
  color: white;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-item {
  margin-bottom: 2px;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.sidebar-menu-link:hover {
  background: #f9fafb;
  color: #111827;
}

.sidebar-menu-link.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
  font-weight: 600;
}

.sidebar-menu-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: #667eea;
  border-radius: 0 2px 2px 0;
}

.sidebar-menu-icon {
  font-size: 18px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.sidebar-menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

.sidebar-menu-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-menu-count {
  font-size: 12px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-menu-link.active .sidebar-menu-count {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

/* ========== FOLDER TREE STYLES ========== */
.folder-tree-item {
  list-style: none;
}

.folder-tree-node {
  position: relative;
}

.folder-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  padding-left: 6px;
  border-radius: 6px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.folder-link:hover {
  background: #f9fafb;
  color: #111827;
}

.folder-link.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
  font-weight: 600;
}

.folder-expand-icon {
  width: 16px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.folder-expand-icon:hover {
  background: rgba(0, 0, 0, 0.05);
}

.folder-expand-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

.folder-children {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 24px;
  margin-top: 4px;
}

.folder-children .folder-link {
  padding-left: 4px;
}

/* Nested folder indentation */
.folder-children .folder-children {
  padding-left: 20px;
}

.folder-children .folder-children .folder-children {
  padding-left: 16px;
}

/* Collapsed sidebar styles */
.hub-sidebar.collapsed .sidebar-logo-text,
.hub-sidebar.collapsed .sidebar-menu-text,
.hub-sidebar.collapsed .sidebar-menu-count,
.hub-sidebar.collapsed .sidebar-section-title,
.hub-sidebar.collapsed .sidebar-section-add {
  display: none;
}

.hub-sidebar.collapsed .sidebar-menu-link {
  justify-content: center;
  padding: 12px;
}

/* ========== MAIN CONTENT AREA ========== */
.hub-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: margin-left 0.3s;
}

/* View Container - Ensures proper scroll behavior with ng-show */
.hub-view-container {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* When ng-show hides, override the display */
.hub-view-container.ng-hide {
  display: none !important;
}

/* ========== PREMIUM STATS DASHBOARD ========== */
.hub-stats-premium {
  background: white;
  padding: 32px 40px;
  border-bottom: 1px solid #e5e7eb;
}

.stats-premium-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-premium-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.stat-premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.stat-premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.stat-premium-card:hover::before {
  transform: scaleX(1);
}

.stat-premium-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  position: relative;
}

.stat-premium-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: inherit;
  opacity: 0.1;
}

.stat-premium-card:nth-child(1) .stat-premium-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-premium-card:nth-child(2) .stat-premium-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: white;
}

.stat-premium-card:nth-child(3) .stat-premium-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.stat-premium-card:nth-child(4) .stat-premium-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.stat-premium-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.stat-premium-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-premium-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-premium-change {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-premium-change.positive {
  color: #10b981;
}

.stat-premium-change.negative {
  color: #ef4444;
}

/* ========== ADVANCED CONTROL BAR ========== */
.hub-control-bar-premium {
  background: white;
  padding: 20px 40px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.control-bar-premium-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.search-box-premium {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box-premium input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s;
  background: #f9fafb;
}

.search-box-premium input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box-premium-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 18px;
}

.filter-group-premium {
  display: flex;
  gap: 12px;
}

.filter-dropdown-premium {
  position: relative;
}

.filter-dropdown-premium select {
  padding: 10px 36px 10px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
}

.filter-dropdown-premium select:hover {
  border-color: #667eea;
}

.filter-dropdown-premium select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-dropdown-premium::after {
  content: '▼';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #9ca3af;
  pointer-events: none;
}

.control-bar-premium-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.view-mode-toggle {
  display: flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
}

.view-mode-btn {
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.view-mode-btn:hover {
  color: #111827;
}

.view-mode-btn.active {
  background: white;
  color: #667eea;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ========== PREMIUM ASSET GRID ========== */
.hub-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
}

.hub-assets-grid-premium {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.asset-card-premium {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.asset-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.asset-card-thumbnail {
  height: 180px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.asset-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-card-thumbnail-icon {
  font-size: 48px;
  opacity: 0.5;
}

.asset-card-type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.asset-card-type-badge.document {
  background: rgba(59, 130, 246, 0.9);
  color: white;
}

.asset-card-type-badge.image {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.asset-card-type-badge.video {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.asset-card-type-badge.audio {
  background: rgba(245, 158, 11, 0.9);
  color: white;
}

.asset-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.asset-card-premium:hover .asset-card-actions {
  opacity: 1;
}

.asset-card-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.asset-card-action-btn:hover {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

.asset-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.asset-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-card-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.asset-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.asset-card-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.asset-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.asset-card-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.asset-card-status.published {
  background: #d1fae5;
  color: #065f46;
}

.asset-card-status.draft {
  background: #f3f4f6;
  color: #6b7280;
}

/* ========== PREMIUM TABLE VIEW ========== */
.hub-table-premium {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.hub-table-premium table {
  width: 100%;
  border-collapse: collapse;
}

.hub-table-premium thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.hub-table-premium th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hub-table-premium tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s;
}

.hub-table-premium tbody tr:hover {
  background: #f9fafb;
}

.hub-table-premium td {
  padding: 16px 20px;
  font-size: 14px;
  color: #374151;
}

.table-asset-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-asset-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.table-asset-info {
  flex: 1;
  min-width: 0;
}

.table-asset-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-asset-category {
  font-size: 12px;
  color: #9ca3af;
}

/* ========== EMPTY STATE ========== */
.hub-empty-state {
  max-width: 1400px;
  margin: 80px auto;
  text-align: center;
  padding: 60px 40px;
}

.empty-state-icon {
  margin-bottom: 24px;
  opacity: 0.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-icon svg {
  stroke: #6b7280;
}

.empty-state-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
}

.empty-state-description {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 32px 0;
}

.empty-state-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1400px) {
  .stats-premium-grid {
    gap: 16px;
  }
  
  .stat-premium-card {
    padding: 18px;
    gap: 14px;
  }
  
  .stat-premium-icon {
    width: 52px;
    height: 52px;
  }
  
  .stat-premium-value {
    font-size: 26px;
  }
}

@media (max-width: 1200px) {
  .stats-premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hub-assets-grid-premium {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .hub-sidebar {
    position: absolute;
    left: -280px;
    height: 100%;
    z-index: 100;
  }
  
  .hub-sidebar.open {
    left: 0;
  }
  
  .hub-stats-premium {
    padding: 20px;
  }
  
  .stats-premium-grid {
    grid-template-columns: 1fr;
  }
  
  .hub-control-bar-premium {
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  
  .control-bar-premium-left {
    flex-direction: column;
  }
  
  .search-box-premium {
    max-width: none;
  }
  
  .hub-content-area {
    padding: 20px;
  }
  
  .hub-assets-grid-premium {
    grid-template-columns: 1fr;
  }
}
/**
 * Knowledge Hub Assets V2 - Premium Grid & List Views
 * World-class, enterprise-grade UI/UX for asset management
 */

/* ========== BREADCRUMB NAVIGATION ========== */
.hub-breadcrumb-bar {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 40px;
  flex-shrink: 0;
}

.breadcrumb-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.breadcrumb-item:hover {
  background: white;
  color: #111827;
}

.breadcrumb-item:last-of-type {
  color: #111827;
  font-weight: 600;
  background: white;
}

.breadcrumb-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.breadcrumb-separator {
  color: #d1d5db;
  font-size: 14px;
  user-select: none;
}

/* Breadcrumb Dropdown for Sibling Folders */
.breadcrumb-item-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item-with-dropdown {
  position: relative;
}

.breadcrumb-item.has-dropdown {
  cursor: pointer;
  padding-right: 20px;
  position: relative;
  transition: color 0.15s ease;
}

.breadcrumb-item.has-dropdown:hover {
  color: #2563eb;
}

.breadcrumb-dropdown-icon {
  margin-left: 4px;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.breadcrumb-item.has-dropdown:hover .breadcrumb-dropdown-icon {
  opacity: 0.8;
}

.breadcrumb-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  z-index: 1000;
  padding: 6px;
  animation: dropdownFadeIn 0.15s ease-out;
}

/* Invisible bridge to prevent dropdown from disappearing when moving cursor */
.breadcrumb-dropdown::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
}

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

.breadcrumb-dropdown-list {
  max-height: 320px;
  overflow-y: auto;
}

.breadcrumb-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.breadcrumb-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.breadcrumb-dropdown-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.breadcrumb-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.breadcrumb-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.12s ease;
  color: #374151;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 2px;
}

.breadcrumb-dropdown-item:hover {
  background-color: #f9fafb;
  transform: translateX(2px);
}

.breadcrumb-dropdown-item.is-current {
  background-color: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

.breadcrumb-dropdown-item.is-current:hover {
  background-color: #dbeafe;
  transform: none;
}

.breadcrumb-dropdown-item svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.breadcrumb-dropdown-item .check-icon {
  margin-left: auto;
  stroke: #2563eb;
  opacity: 0.8;
}

/* ========== SEARCH & FILTERS BAR ========== */
.hub-search-filters-bar {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 40px;
  flex-shrink: 0;
  z-index: 20;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-filters-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box-v2 {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-box-v2 .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  stroke: #9ca3af;
  pointer-events: none;
}

.search-box-v2 input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 44px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.search-box-v2 input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filters-group-v2 {
  display: flex;
  gap: 12px;
}

.filter-select-v2 {
  height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-select-v2:hover {
  border-color: #d1d5db;
}

.filter-select-v2:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.view-mode-toggle-v2 {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 8px;
  margin-left: auto;
}

.view-mode-btn-v2 {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.view-mode-btn-v2 svg {
  stroke: #6b7280;
}

.view-mode-btn-v2:hover {
  background: #e5e7eb;
}

.view-mode-btn-v2.active {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-mode-btn-v2.active svg {
  stroke: #667eea;
}

/* ========== COMPACT ANALYTICS ========== */
.hub-analytics-compact {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 40px;
  flex-shrink: 0;
}

.analytics-compact-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.analytics-compact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.analytics-compact-card:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.analytics-compact-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.analytics-compact-card:nth-child(1) .analytics-compact-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.analytics-compact-card:nth-child(2) .analytics-compact-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.analytics-compact-card:nth-child(3) .analytics-compact-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.analytics-compact-card:nth-child(4) .analytics-compact-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.analytics-compact-icon svg {
  stroke: white;
}

.analytics-compact-details {
  flex: 1;
  min-width: 0;
}

.analytics-compact-value {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}

.analytics-compact-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== PAGINATION ========== */
.hub-pagination {
  max-width: 1400px;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hub-pagination-sticky {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  z-index: 15;
  margin-top: auto;
}

.pagination-info {
  font-size: 13px;
  color: #6b7280;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #667eea;
  background: #f9fafb;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn svg {
  stroke: #6b7280;
}

.pagination-pages {
  display: flex;
  gap: 4px;
}

.pagination-page {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-page:hover {
  border-color: #667eea;
  background: #f9fafb;
}

.pagination-page.active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.pagination-ellipsis {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.pagination-per-page select {
  height: 32px;
  padding: 0 32px 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.pagination-per-page select:focus {
  outline: none;
  border-color: #667eea;
}

/* Asset List Container - Flex wrapper for scrollable content */
.hub-asset-list-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.hub-content-scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* ========== PREMIUM GRID VIEW V2 ========== */
.hub-assets-grid-premium {
  padding: 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-content: start;
  width: 100%;
  box-sizing: border-box;
}

.asset-card-v2 {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
}

.asset-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

/* Card Header / Preview Area */
.asset-card-v2-header {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  overflow: hidden;
}

.asset-card-v2-preview {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.asset-card-v2-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.asset-card-v2:hover .asset-card-v2-preview img {
  transform: scale(1.05);
}

.asset-card-v2-preview-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.asset-card-v2-preview-icon svg {
  opacity: 0.4;
  transition: all 0.3s;
}

.asset-card-v2:hover .asset-card-v2-preview-icon svg {
  opacity: 0.6;
  transform: scale(1.1);
}

/* Type-specific colors */
.asset-type-document .asset-card-v2-preview-icon svg { stroke: #3b82f6; }
.asset-type-video .asset-card-v2-preview-icon svg { stroke: #ef4444; }
.asset-type-link .asset-card-v2-preview-icon svg { stroke: #8b5cf6; }
.asset-type-text .asset-card-v2-preview-icon svg { stroke: #10b981; }
.asset-type-file .asset-card-v2-preview-icon svg { stroke: #6b7280; }

/* Overlay Actions */
.asset-card-v2-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.asset-card-v2:hover .asset-card-v2-overlay {
  opacity: 1;
}

.asset-card-v2-action {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.asset-card-v2-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: #667eea;
}

.asset-card-v2-action svg {
  stroke: #374151;
  transition: stroke 0.2s;
}

.asset-card-v2-action:hover svg {
  stroke: white;
}

/* Badges */
.asset-card-v2-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.asset-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.asset-badge-type {
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
}

.badge-document { background: rgba(59, 130, 246, 0.95); color: white; }
.badge-video { background: rgba(239, 68, 68, 0.95); color: white; }
.badge-image { background: rgba(16, 185, 129, 0.95); color: white; }
.badge-link { background: rgba(139, 92, 246, 0.95); color: white; }
.badge-text { background: rgba(34, 197, 94, 0.95); color: white; }
.badge-file { background: rgba(107, 114, 128, 0.95); color: white; }

.asset-badge-featured {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
}

.asset-badge-featured svg {
  fill: white;
}

/* Card Body */
.asset-card-v2-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.asset-card-v2-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-card-v2-description {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.asset-card-v2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.asset-tag {
  padding: 3px 8px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.asset-tag-more {
  padding: 3px 8px;
  background: #e5e7eb;
  color: #9ca3af;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Card Footer */
.asset-card-v2-footer {
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
}

.asset-card-v2-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.asset-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
}

.asset-meta-item svg {
  stroke: #9ca3af;
  flex-shrink: 0;
}

.asset-status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-published {
  background: #d1fae5;
  color: #065f46;
}

.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.status-archived {
  background: #e5e7eb;
  color: #374151;
}

/* ========== PREMIUM LIST VIEW V2 ========== */
.hub-assets-list-v2 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.asset-list-item-v2 {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.asset-list-item-v2:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

/* Checkbox */
.asset-list-checkbox {
  flex-shrink: 0;
}

.asset-list-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Thumbnail */
.asset-list-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-list-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-list-icon {
  color: #9ca3af;
}

.asset-list-icon svg {
  opacity: 0.5;
}

/* Content */
.asset-list-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.asset-list-header {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.asset-list-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.asset-list-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.asset-badge-sm {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-document.asset-badge-sm { background: #dbeafe; color: #1e40af; }
.badge-video.asset-badge-sm { background: #fee2e2; color: #991b1b; }
.badge-image.asset-badge-sm { background: #d1fae5; color: #065f46; }
.badge-link.asset-badge-sm { background: #ede9fe; color: #5b21b6; }
.badge-text.asset-badge-sm { background: #dcfce7; color: #14532d; }
.badge-file.asset-badge-sm { background: #f3f4f6; color: #374151; }

.asset-badge-featured-sm {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-badge-featured-sm svg {
  fill: white;
}

.asset-list-description {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-list-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-list-meta-items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.asset-meta-item-sm {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
}

.asset-meta-item-sm svg {
  stroke: #d1d5db;
  flex-shrink: 0;
}

.asset-status-badge-sm {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: capitalize;
  flex-shrink: 0;
}

.status-published.asset-status-badge-sm {
  background: #d1fae5;
  color: #065f46;
}

.status-draft.asset-status-badge-sm {
  background: #fef3c7;
  color: #92400e;
}

.status-archived.asset-status-badge-sm {
  background: #e5e7eb;
  color: #374151;
}

/* Actions */
.asset-list-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.asset-list-item-v2:hover .asset-list-actions {
  opacity: 1;
}

.asset-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.asset-action-btn:hover {
  background: #667eea;
  border-color: #667eea;
}

.asset-action-btn svg {
  stroke: #6b7280;
  transition: stroke 0.2s;
}

.asset-action-btn:hover svg {
  stroke: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .hub-assets-grid-premium {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 24px 32px;
  }
  
  .asset-card-v2-header {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .hub-assets-grid-premium {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .hub-assets-list-v2 {
    padding: 20px;
  }
  
  .asset-list-item-v2 {
    flex-wrap: wrap;
  }
  
  .asset-list-thumbnail {
    width: 48px;
    height: 48px;
  }
  
  .asset-list-meta-items {
    gap: 12px;
  }
  
  .asset-list-actions {
    opacity: 1;
    width: 100%;
    justify-content: flex-end;
  }
}
/**
 * Asset Creation Wizard Styles
 * World-class enterprise UI/UX
 */

/* Inline Wizard Container */
.hub-asset-wizard {
  background: #ffffff;
  animation: fadeIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Wizard Step Container (Inline) */
.wizard-step-inline {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Wizard Header (Inline) */
.wizard-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.wizard-header-inline h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
}

/* Wizard Body (Inline) */
.wizard-body-inline {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.wizard-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 24px 0;
  text-align: center;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Progress Bar */
.wizard-progress {
  margin-bottom: 24px;
  width: 100%;
  max-width: 720px;
}

.progress-bar {
  height: 3px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}

/* Type Selection Cards */
.wizard-type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 800px;
}

.wizard-type-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 200px;
  justify-content: center;
}

.wizard-type-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
  transform: translateY(-4px);
}

.wizard-type-card:active {
  transform: translateY(-2px);
}

.wizard-type-card .type-icon {
  font-size: 40px;
  margin-bottom: 4px;
  opacity: 0.9;
}

.wizard-type-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

.wizard-type-card p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.wizard-type-card .btn {
  margin-top: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
}

.wizard-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: #1e40af;
  font-size: 14px;
}

/* Upload Zone (Wizard) */
.upload-zone-wizard {
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 48px 32px;
  text-align: center;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
  width: 100%;
  max-width: 720px;
  cursor: pointer;
}

.upload-zone-wizard:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.upload-zone-wizard .upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.upload-zone-wizard h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.upload-zone-wizard p {
  color: #6b7280;
  margin: 0 0 24px 0;
  font-size: 14px;
}

/* Upload Info Compact */
.upload-info-compact {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 32px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  width: 100%;
  max-width: 720px;
  line-height: 1.7;
  border: 1px solid #e5e7eb;
}

/* Wizard Benefits */
.wizard-benefits {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.wizard-benefits p {
  margin: 8px 0;
  color: #166534;
  font-size: 14px;
}

/* Uploaded Files List */
.uploaded-files-list {
  margin-top: 32px;
  width: 100%;
  max-width: 720px;
}

.uploaded-files-list h4 {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.uploaded-file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.uploaded-file-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.uploaded-file-item .file-icon {
  font-size: 20px;
}

.uploaded-file-item .file-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uploaded-file-item .file-name {
  font-weight: 500;
  color: #111827;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.uploaded-file-item .file-size {
  color: #9ca3af;
  font-size: 12px;
}

.btn-icon-remove {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-icon-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Link Type Selection */
.link-type-selection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.link-type-selection label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.link-type-selection label:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.link-type-selection input[type="radio"] {
  width: 20px;
  height: 20px;
}

/* Link Preview */
.link-preview {
  margin-top: 24px;
}

.link-preview h4 {
  color: #059669;
  margin-bottom: 16px;
}

.preview-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.preview-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.preview-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.preview-card p {
  color: #6b7280;
  margin: 8px 0;
}

.preview-url {
  font-size: 14px;
  color: #3b82f6;
  word-break: break-all;
}

/* Text Method Selection */
.text-method-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.method-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.method-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.method-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.method-card p {
  color: #6b7280;
  margin: 0 0 16px 0;
}

/* AI Options */
.ai-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* AI Result */
.ai-result {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}

.ai-result h4 {
  color: #166534;
  margin-bottom: 16px;
}

.ai-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Review Summary */
.review-summary {
  background: #f9fafb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.review-summary h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
}

.review-summary p {
  margin: 8px 0;
  color: #4b5563;
}

/* Publish Options */
.publish-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.publish-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.publish-options label:hover {
  border-color: #3b82f6;
}

.publish-options input[type="radio"] {
  width: 20px;
  height: 20px;
}

/* Wizard Form Container */
.wizard-form-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.form-group-wizard {
  margin-bottom: 24px;
}

.form-group-wizard label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.form-group-wizard .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  background: #ffffff;
}

.form-group-wizard .form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group-wizard textarea.form-control {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.form-row-wizard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.checkbox-label:hover {
  border-color: #3b82f6;
  background: #f9fafb;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.radio-group-wizard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.radio-label:hover {
  border-color: #3b82f6;
  background: #f9fafb;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
  color: #3b82f6;
  font-weight: 600;
}

.radio-label span {
  font-size: 14px;
  color: #374151;
}

/* Wizard Footer (Inline) */
.wizard-footer-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  background: #ffffff;
}

.wizard-actions {
  display: flex;
  gap: 12px;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.form-group small {
  display: block;
  color: #6b7280;
  font-size: 13px;
  margin-top: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* General Button Styles */
.btn {
  padding: 10px 20px;
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.btn.primary {
  background: #3b82f6;
  color: white;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn.primary:hover {
  background: #2563eb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn.outline {
  background: white;
  border: 1px solid #d1d5db;
  color: #374151;
  font-weight: 500;
}

.btn.outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn.ghost {
  background: transparent;
  color: #6b7280;
  border: none;
  font-weight: 500;
}

.btn.ghost:hover {
  background: #f3f4f6;
  color: #111827;
}




/* Responsive Design */
@media (max-width: 968px) {
  .wizard-type-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .wizard-header-inline {
    padding: 12px 20px;
  }
  
  .wizard-header-inline h2 {
    font-size: 18px;
  }
  
  .wizard-body-inline {
    padding: 24px 20px;
  }
  
  .wizard-type-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .wizard-type-card {
    min-height: 160px;
  }
  
  .wizard-footer-inline {
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
  }
  
  .wizard-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .wizard-actions .btn {
    flex: 1;
  }
}
/**
 * Asset Detail View - Professional Enterprise UI/UX
 * World-class design for Knowledge Hub asset management
 */

/* ========== ASSET DETAIL VIEW CONTAINER ========== */
.asset-detail-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f9fafb;
  overflow: hidden;
}

/* ========== HERO HEADER ========== */
.asset-hero-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 32px 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.hero-left {
  flex: 1;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-4px);
}

.asset-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.asset-description {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.asset-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.badge-icon {
  font-size: 14px;
}

.badge-document { background: rgba(59, 130, 246, 0.2); }
.badge-image { background: rgba(16, 185, 129, 0.2); }
.badge-video { background: rgba(239, 68, 68, 0.2); }
.badge-audio { background: rgba(245, 158, 11, 0.2); }
.badge-text { background: rgba(139, 92, 246, 0.2); }
.badge-link { background: rgba(6, 182, 212, 0.2); }

.badge-published { background: rgba(16, 185, 129, 0.3); }
.badge-draft { background: rgba(107, 114, 128, 0.3); }
.badge-archived { background: rgba(239, 68, 68, 0.3); }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.action-menu-wrapper {
  position: relative;
}

.icon-only {
  padding: 10px;
  min-width: auto;
}

/* ========== TAB NAVIGATION ========== */
.asset-tabs {
  display: flex;
  gap: 4px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.tab-item:hover {
  color: #374151;
  background: #f9fafb;
}

.tab-item.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: #f9fafb;
}

.tab-item svg {
  opacity: 0.7;
}

.tab-item.active svg {
  opacity: 1;
}

/* ========== TAB CONTENT ========== */
.asset-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.tab-pane {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== OVERVIEW GRID ========== */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.overview-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.overview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== DETAIL CARDS ========== */
.detail-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.detail-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.card-body {
  padding: 24px;
}

.btn-icon-small {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-small:hover {
  background: #667eea;
  color: white;
}

/* ========== ASSET PREVIEW ========== */
.asset-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 24px;
}

.preview-image {
  max-width: 100%;
  max-height: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.preview-video,
.preview-audio {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
}

.file-preview {
  text-align: center;
}

.file-icon-large {
  margin-bottom: 16px;
}

.file-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 12px 0 4px 0;
}

.file-size {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.text-preview {
  align-items: flex-start;
  text-align: left;
}

.text-content {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  overflow: hidden;
}

/* ========== STATS GRID ========== */
.stats-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.2s;
}

.stat-compact:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-details {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

/* ========== TAGS ========== */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-block;
  padding: 6px 14px;
  background: #ede9fe;
  color: #7c3aed;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.tag-pill:hover {
  background: #ddd6fe;
  transform: translateY(-1px);
}

/* ========== METADATA ========== */
.metadata-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.meta-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  min-width: 100px;
}

.meta-value {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
  text-align: right;
}

/* ========== COLLECTIONS ========== */
.collection-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collection-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.2s;
}

.collection-chip:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.chip-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 6px;
}

.chip-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

/* ========== AGENTS ========== */
.agent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.2s;
}

.agent-item:hover {
  background: #f3f4f6;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.agent-info {
  flex: 1;
}

.agent-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.agent-type {
  font-size: 12px;
  color: #6b7280;
}

/* ========== EMPTY STATE ========== */
.empty-message {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  padding: 24px;
  margin: 0;
}

/* ========== CONTENT TAB ========== */
.content-container {
  max-width: 900px;
}

.content-display {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

.content-display h1,
.content-display h2,
.content-display h3 {
  color: #111827;
  margin-top: 24px;
  margin-bottom: 12px;
}

.content-display p {
  margin-bottom: 16px;
}

.content-display code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.content-display pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
}

/* ========== ANALYTICS TAB ========== */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.chart-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 8px;
  color: #9ca3af;
}

/* ========== VERSIONS TAB ========== */
.versions-container {
  max-width: 900px;
}

.version-timeline {
  position: relative;
  padding-left: 40px;
}

.version-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.version-item {
  position: relative;
  margin-bottom: 32px;
}

.version-marker {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #667eea;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #667eea;
}

.version-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.version-number {
  font-size: 16px;
  font-weight: 700;
  color: #667eea;
}

.version-date {
  font-size: 13px;
  color: #6b7280;
}

.version-summary {
  font-size: 14px;
  color: #374151;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.version-actions {
  display: flex;
  gap: 8px;
}

/* ========== SETTINGS TAB ========== */
.settings-container {
  max-width: 900px;
}

/* ========== ACTION DROPDOWN ========== */
.action-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 180px;
  z-index: 1000;
  overflow: hidden;
}

.action-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.action-item:hover {
  background: #f9fafb;
  color: #111827;
}

.action-item.danger {
  color: #ef4444;
}

.action-item.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* ========================================
   ASSET VIEW V2 - COMPACT & ELEGANT DESIGN
   ======================================== */

/* Main Container */
.asset-detail-view-v2 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f9fafb;
}

/* Compact Header */
.asset-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  min-height: 64px;
}

.header-left-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.btn-back-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-back-compact:hover {
  background: #f3f4f6;
  color: #111827;
}

.header-divider-compact {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.asset-title-compact {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-id-badge-compact {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.header-right-compact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-group-compact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-compact {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-type-compact {
  background: #eff6ff;
  color: #1e40af;
}

.badge-status-compact.status-published {
  background: #dcfce7;
  color: #166534;
}

.badge-status-compact.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.badge-status-compact.status-archived {
  background: #f3f4f6;
  color: #6b7280;
}

.badge-featured-compact {
  background: #fef3c7;
  color: #92400e;
}

.btn-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary-compact {
  background: #3b82f6;
  color: white;
}

.btn-primary-compact:hover {
  background: #2563eb;
}

.btn-ghost-compact {
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.btn-ghost-compact:hover {
  background: #f9fafb;
  color: #111827;
}

.action-menu-wrapper-compact {
  position: relative;
}

.action-dropdown-compact {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 1000;
  overflow: hidden;
}

.action-item-compact {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.action-item-compact:hover {
  background: #f9fafb;
  color: #111827;
}

.action-item-compact.danger {
  color: #ef4444;
}

.action-item-compact.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Tab Navigation V2 */
.asset-tabs-v2 {
  display: flex;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 32px;
  gap: 8px;
}

.tab-item-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.tab-item-v2:hover {
  background: #f9fafb;
}

.tab-item-v2.active {
  border-bottom-color: #3b82f6;
}

.tab-item-v2.active .tab-number-v2 {
  background: #3b82f6;
  color: white;
}

.tab-item-v2.active .tab-title-v2 {
  color: #3b82f6;
}

.tab-number-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.tab-label-v2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tab-title-v2 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s;
}

.tab-subtitle-v2 {
  font-size: 12px;
  color: #9ca3af;
}

/* Tab Content V2 */
.asset-tab-content-v2 {
  flex: 1;
  overflow-y: auto;
  background: #f9fafb;
}

.tab-pane-v2 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.view-section-v2 {
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header-view-v2 {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.section-number-view-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-header-view-v2 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}

.section-header-view-v2 p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.section-body-v2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* View Cards */
.view-card-v2 {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-card-title-v2 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
}

.card-header-with-action-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* Info Grid */
.info-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-item-v2 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label-v2 {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value-v2 {
  font-size: 14px;
  color: #111827;
  line-height: 1.5;
}

.text-muted-v2 {
  color: #9ca3af;
  font-style: italic;
}

/* Badges & Pills */
.category-badge-v2,
.status-badge-v2,
.featured-badge-v2 {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.category-badge-v2 {
  background: #eff6ff;
  color: #1e40af;
}

.status-badge-v2.status-published {
  background: #dcfce7;
  color: #166534;
}

.status-badge-v2.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.featured-badge-v2 {
  background: #fef3c7;
  color: #92400e;
}

.tags-list-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill-v2 {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 16px;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}

/* Preview Container */
.preview-container-v2 {
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.asset-preview-v2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preview-image-v2 {
  max-width: 100%;
  max-height: 500px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-video-v2,
.preview-audio-v2 {
  max-width: 100%;
  width: 100%;
  border-radius: 8px;
}

.youtube-embed-v2 {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-preview-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.file-icon-large-v2 {
  opacity: 0.8;
}

.file-name-v2 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  text-align: center;
}

.file-size-v2,
.file-format-v2 {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* Link Preview */
.link-preview-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.link-icon-large-v2 {
  opacity: 0.9;
}

.link-title-v2 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  text-align: center;
}

.link-url-v2 {
  font-size: 13px;
  color: #3b82f6;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  word-break: break-all;
  text-align: center;
}

.link-url-v2:hover {
  text-decoration: underline;
}

/* Text Preview */
.text-preview-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.text-icon-large-v2 {
  opacity: 0.9;
}

.text-type-v2 {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin: 0;
}

/* Content Display */
.content-display-v2 {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  max-height: 600px;
  overflow-y: auto;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

/* Bot Associations */
.bot-associations-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-item-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.bot-item-v2:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.bot-avatar-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eff6ff;
  color: #3b82f6;
  flex-shrink: 0;
}

.bot-info-v2 {
  flex: 1;
  min-width: 0;
}

.bot-name-v2 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.bot-meta-v2 {
  font-size: 12px;
  color: #6b7280;
}

.btn-icon-small-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-small-v2:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Empty State */
.empty-state-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-icon-v2 {
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-text-v2 {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px 0;
}

.empty-subtext-v2 {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
  max-width: 400px;
}

/* Collections */
.collection-chips-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collection-chip-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
}

.chip-icon-v2 {
  font-size: 16px;
}

.chip-name-v2 {
  font-weight: 500;
}

/* Small Buttons */
.btn-small-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-v2 {
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.btn-outline-v2:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Edit Asset Specific Styles */
.edit-form-wrapper-v2 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Compact Footer for Edit */
.edit-footer-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: white;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.footer-left-compact,
.footer-right-compact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.save-status-compact {
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
}

.btn-outline-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.btn-outline-compact:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.btn-outline-compact:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary-compact:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
  
  .info-grid-v2 {
    grid-template-columns: 1fr;
  }
  
  .asset-tabs-v2 {
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .asset-hero-header {
    padding: 24px 20px;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .asset-header-compact {
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .header-left-compact {
    width: 100%;
  }
  
  .header-right-compact {
    width: 100%;
    justify-content: space-between;
  }
  
  .asset-tabs-v2 {
    padding: 0 16px;
  }
  
  .tab-item-v2 {
    padding: 12px 16px;
  }
  
  .tab-subtitle-v2 {
    display: none;
  }
  
  .view-section-v2 {
    padding: 20px 16px;
  }
  
  .edit-footer-compact {
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-left-compact,
  .footer-right-compact {
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .asset-tabs {
    padding: 0 20px;
    overflow-x: auto;
  }
  
  .asset-tab-content {
    padding: 20px;
  }
  
  .stats-grid-compact {
    grid-template-columns: 1fr;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FOLDER CONTEXT MENU & ACTIONS
   ======================================== */

/* Folder actions button (three dots) */
.folder-actions-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 4px;
  cursor: pointer;
  color: var(--gray-400);
  transition: all 0.2s ease;
}

.folder-link:hover .folder-actions-btn {
  display: flex;
}

.folder-actions-btn:hover {
  background-color: var(--gray-100);
  color: var(--gray-700);
}

/* Context Menu */
.context-menu {
  position: fixed;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 10000;
  padding: 4px 0;
}

.context-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  color: var(--gray-700);
  font-size: 14px;
}

.context-menu-item:hover {
  background-color: var(--gray-50);
}

.context-menu-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.context-menu-item.danger {
  color: var(--red-600);
}

.context-menu-item.danger:hover {
  background-color: var(--red-50);
}

.context-menu-divider {
  height: 1px;
  background-color: var(--gray-200);
  margin: 4px 0;
}
/**
 * Edit Asset V2 - Single Page Form
 * 3 Sections matching Create Wizard Steps
 */

/* Container */
.hub-edit-container-v2 {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f9fafb;
  overflow: hidden;
}

/* Form Wrapper */
.edit-form-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Header - Compact & Lightweight */
.edit-header-v2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 40px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-back-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-back-v2:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-2px);
}

.header-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.edit-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edit-header-info h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-id-badge {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

.asset-type-badge-v2 {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Scrollable Content */
.edit-content-v2 {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 40px;
  -webkit-overflow-scrolling: touch;
}

/* Section */
.edit-section-v2 {
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
  overflow: hidden;
}

.section-header-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-bottom: 2px solid #e5e7eb;
}

.section-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-header-v2 h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #111827;
}

.section-header-v2 p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.section-body-v2 {
  padding: 32px;
}

/* Form Elements */
.form-group-v2 {
  margin-bottom: 24px;
}

.form-label-v2 {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-control-v2 {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-control-v2:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control-v2::placeholder {
  color: #9ca3af;
}

textarea.form-control-v2 {
  resize: vertical;
  font-family: inherit;
}

.form-hint-v2 {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

.form-row-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Current File Card */
.current-file-card-v2 {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s;
}

.current-file-card-v2:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.file-icon-large-v2 {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.file-details-v2 {
  flex: 1;
}

.file-name-large-v2 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.file-meta-large-v2 {
  display: flex;
  gap: 12px;
}

.file-size-badge-v2,
.file-type-badge-v2 {
  padding: 4px 10px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}

.file-actions-v2 {
  display: flex;
  gap: 8px;
}

.btn-icon-v2 {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: white;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-v2:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

/* File Upload Zone */
.file-upload-zone-v2 {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  background: #fafbfc;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.file-upload-zone-v2:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.file-upload-zone-v2.dragging {
  border-color: #667eea;
  background: #e0e7ff;
  transform: scale(1.02);
}

.file-upload-zone-v2.uploading {
  border-color: #667eea;
  background: #f0f4ff;
  cursor: not-allowed;
}

.upload-zone-content-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.upload-icon-v2 {
  font-size: 48px;
  opacity: 0.6;
}

.upload-text-v2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-text-v2 strong {
  font-size: 16px;
  color: #111827;
}

.upload-text-v2 span {
  font-size: 14px;
  color: #6b7280;
}

.btn-upload-v2 {
  padding: 10px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-upload-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.upload-progress-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.progress-spinner-v2 {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-text-v2 {
  font-size: 14px;
  font-weight: 500;
  color: #667eea;
}

.upload-info-v2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.upload-info-v2 small {
  font-size: 12px;
  color: #6b7280;
}

/* Generate Transcription Button */
.btn-generate-v2 {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-generate-v2:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-generate-v2:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Transcription Status */
.transcription-status-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fbbf24;
  border-radius: 8px;
  margin-top: 12px;
}

.status-icon-v2 {
  font-size: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text-v2 {
  font-size: 13px;
  font-weight: 500;
  color: #92400e;
  flex: 1;
}

/* Link Type Selector */
.link-type-selector-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.radio-card-v2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.radio-card-v2 input {
  position: absolute;
  opacity: 0;
}

.radio-card-v2 span {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.radio-card-v2 input:checked + span {
  color: #667eea;
}

.radio-card-v2:has(input:checked) {
  border-color: #667eea;
  background: #f0f4ff;
}

/* URL Input Group */
.url-input-group-v2 {
  display: flex;
  gap: 12px;
}

.url-input-group-v2 .form-control-v2 {
  flex: 1;
}

/* Radio Group */
.radio-group-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option-v2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-option-v2 input {
  margin-top: 2px;
  flex-shrink: 0;
}

.radio-option-v2:has(input:checked) {
  border-color: #667eea;
  background: #f0f4ff;
}

.radio-label-v2 {
  flex: 1;
}

.radio-label-v2 strong {
  display: block;
  font-size: 14px;
  color: #111827;
  margin-bottom: 4px;
}

.radio-label-v2 small {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

/* Format Selector */
.format-selector-v2 {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.format-btn-v2 {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.format-btn-v2:hover {
  border-color: #667eea;
  background: #f9fafb;
}

.format-btn-v2.active {
  border-color: #667eea;
  background: #667eea;
  color: white;
}

/* Quill Editor */
.quill-editor-v2 {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

/* Code Editor */
.code-editor-v2 {
  width: 100%;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
}

.code-editor-v2:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.editor-stats-v2 {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
}

/* Tags Input */
.tags-input-v2 {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px;
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tags-input-v2:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tags-list-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.tag-remove-v2 {
  background: none;
  border: none;
  color: #4338ca;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.tag-input-v2 {
  flex: 1;
  min-width: 150px;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 4px;
}

.suggested-tags-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.suggested-tags-v2 small {
  font-size: 12px;
  color: #6b7280;
}

.suggested-tag-v2 {
  padding: 4px 10px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.suggested-tag-v2:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

/* Checkbox */
.checkbox-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

.checkbox-v2 input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Transcription Status */
.transcription-status-v2 {
  padding: 12px;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  font-size: 13px;
  color: #92400e;
  margin-top: 12px;
}

/* Buttons */
.btn-primary-v2 {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary-v2:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary-v2 {
  padding: 8px 16px;
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-v2:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-ghost-v2 {
  padding: 10px 20px;
  background: transparent;
  color: #6b7280;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost-v2:hover {
  background: #f3f4f6;
  color: #374151;
}

.btn-outline-v2 {
  padding: 10px 20px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-v2:hover {
  background: #f0f4ff;
}

/* Sticky Footer */
.edit-footer-v2 {
  background: white;
  border-top: 2px solid #e5e7eb;
  padding: 20px 40px;
  flex-shrink: 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left-v2 {
  display: flex;
  gap: 12px;
}

.footer-right-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.save-status-v2 {
  font-size: 13px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .edit-header-v2 {
    padding: 12px 20px;
  }
  
  .edit-header-left {
    flex-wrap: wrap;
  }
  
  .header-divider {
    display: none;
  }
  
  .edit-content-v2 {
    padding: 20px;
  }
  
  .section-body-v2 {
    padding: 20px;
  }
  
  .form-row-v2 {
    grid-template-columns: 1fr;
  }
  
  .link-type-selector-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .current-file-display {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .current-file-display .btn-secondary-v2,
  .current-file-display .btn-primary-v2 {
    width: 100%;
    justify-content: center;
  }
  
  .edit-footer-v2 {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }
  
  .footer-left-v2,
  .footer-right-v2 {
    width: 100%;
    justify-content: center;
  }
}
/* Professional Link Wizard Styling */
.link-type-selection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.link-type-selection label {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
}

.link-type-selection label:hover {
  border-color: #3b82f6;
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.link-type-selection input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.link-type-selection input[type="radio"]:checked + span {
  color: #3b82f6;
}

.link-type-selection label:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.link-type-selection label::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  margin-right: 12px;
  transition: all 0.2s;
}

.link-type-selection label:has(input:checked)::before {
  border-color: #3b82f6;
  background: #3b82f6;
  box-shadow: inset 0 0 0 3px white;
}

.wizard-body-inline .form-group {
  margin-bottom: 24px;
}

.wizard-body-inline .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.wizard-body-inline .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
}

.wizard-body-inline .form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.link-preview {
  margin-top: 24px;
  padding: 24px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
}

.link-preview h4 {
  color: #16a34a;
  margin-bottom: 16px;
  font-size: 16px;
}

.preview-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.preview-card img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 12px;
}

.preview-url {
  color: #6b7280;
  font-size: 13px;
  word-break: break-all;
}

/* Transcription Mode Selector */
.transcription-mode-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.transcription-mode-selector .radio-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.transcription-mode-selector .radio-option:hover {
  border-color: #3b82f6;
  background: #f9fafb;
  transform: translateX(4px);
}

.transcription-mode-selector input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.transcription-mode-selector .radio-option:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.transcription-mode-selector .radio-option::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  margin-right: 12px;
  margin-top: 2px;
  transition: all 0.2s;
}

.transcription-mode-selector .radio-option:has(input:checked)::before {
  border-color: #3b82f6;
  background: #3b82f6;
  box-shadow: inset 0 0 0 3px white;
}

.transcription-mode-selector .radio-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transcription-mode-selector .radio-label strong {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  display: block;
}

.transcription-mode-selector .radio-option:has(input:checked) .radio-label strong {
  color: #3b82f6;
}

.transcription-mode-selector .radio-label small {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  display: block;
}

.transcription-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.transcription-actions .btn {
  width: 100%;
}
