/* TVD Design Dashboard CSS */
.tvd-dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--tvd-text-primary);
  margin-left: -20px;
  margin-top: -10px;
  margin-bottom: -65px;
}

/* Sidebar Navigation */
.tvd-dash-sidebar {
  width: 126px;
  background-color: #ffffff;
  border-right: 1px solid var(--tvd-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  flex-shrink: 0;
  position: sticky;
  top: 32px;
  height: calc(100vh - 32px);
}

.tvd-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--tvd-radius-md);
  background: linear-gradient(135deg, var(--tvd-primary), var(--tvd-accent-cyan));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(125, 42, 232, 0.3);
}

.tvd-btn-create-nav {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tvd-primary) 0%, #a855f7 100%);
  color: #ffffff;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(125, 42, 232, 0.35);
  transition: var(--tvd-transition);
  margin-bottom: 24px;
}

.tvd-btn-create-nav:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(125, 42, 232, 0.45);
}

.tvd-btn-create-nav span {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.tvd-dash-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.tvd-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  color: var(--tvd-text-secondary);
  text-decoration: none;
  border-radius: var(--tvd-radius-md);
  transition: var(--tvd-transition);
  width: 64px;
  margin: 0 auto;
}

.tvd-nav-item:hover, .tvd-nav-item.active {
  background-color: var(--tvd-primary-light);
  color: var(--tvd-primary);
}

.tvd-nav-item span {
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}

.tvd-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* Main Content Area */
.tvd-dash-main {
  flex: 1;
  padding: 32px 48px;
  overflow-y: auto;
}

/* Hero Section */
.tvd-dash-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f3e8ff 50%, #fdf2f8 100%);
  border-radius: 24px;
  padding: 48px 36px 36px 36px;
  text-align: center;
  margin-bottom: 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tvd-hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 28px 0;
  letter-spacing: -0.5px;
}

.tvd-hero-search-box {
  max-width: 640px;
  margin: 0 auto 32px auto;
  background: #ffffff;
  border-radius: var(--tvd-radius-full);
  display: flex;
  align-items: center;
  padding: 8px 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tvd-hero-search-box svg {
  color: var(--tvd-text-muted);
  margin-right: 12px;
}

.tvd-hero-search-box input {
  border: none;
  outline: none;
  font-size: 15px;
  width: 100%;
  background: transparent;
  color: var(--tvd-text-primary);
}

.tvd-categories-carousel {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.tvd-cat-chip {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--tvd-transition);
  padding: 6px;
}

.tvd-cat-chip:hover {
  transform: translateY(-3px);
}

.tvd-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tvd-cat-chip span {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

/* Category Colors */
.bg-orange { background: linear-gradient(135deg, #f97316, #fb923c); }
.bg-pink { background: linear-gradient(135deg, #ec4899, #f472b6); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.bg-teal { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.bg-red { background: linear-gradient(135deg, #ef4444, #f87171); }
.bg-indigo { background: linear-gradient(135deg, #6366f1, #818cf8); }
.bg-slate { background: linear-gradient(135deg, #475569, #64748b); }

/* Recent Designs Section */
.tvd-recent-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--tvd-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.tvd-recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tvd-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--tvd-text-primary);
  margin: 0;
}

.tvd-recent-controls {
  display: flex;
  gap: 8px;
}

.tvd-btn-view-toggle {
  background: #f1f5f9;
  border: 1px solid var(--tvd-border);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--tvd-text-secondary);
  transition: var(--tvd-transition);
}

.tvd-btn-view-toggle.active, .tvd-btn-view-toggle:hover {
  background: #ffffff;
  color: var(--tvd-primary);
  border-color: var(--tvd-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Designs Table (List View) */
.tvd-designs-table-header {
  display: grid;
  grid-template-columns: 3fr 1.5fr 1.5fr 1.5fr 1fr;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tvd-text-muted);
  border-bottom: 1px solid var(--tvd-border);
}

.tvd-design-row {
  display: grid;
  grid-template-columns: 3fr 1.5fr 1.5fr 1.5fr 1fr;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: var(--tvd-transition);
  border-radius: 8px;
}

.tvd-design-row:hover {
  background-color: #f8fafc;
}

.tvd-design-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tvd-design-thumb {
  width: 52px;
  height: 36px;
  border-radius: 6px;
  background: #e2e8f0;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 10px;
}

.tvd-design-title-link {
  font-weight: 600;
  color: var(--tvd-text-primary);
  text-decoration: none;
  font-size: 14px;
}

.tvd-design-title-link:hover {
  color: var(--tvd-primary);
}

.tvd-design-owner, .tvd-design-size, .tvd-design-date {
  font-size: 13px;
  color: var(--tvd-text-secondary);
}

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

.tvd-btn-row-action {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--tvd-text-muted);
  padding: 6px;
  border-radius: 6px;
  transition: var(--tvd-transition);
}

.tvd-btn-row-action:hover {
  color: var(--tvd-primary);
  background: var(--tvd-primary-light);
}

.tvd-btn-row-action.delete:hover {
  color: var(--tvd-accent-red);
  background: #fee2e2;
}

.tvd-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--tvd-primary);
  border-radius: 50%;
  animation: tvd-spin 0.8s linear infinite;
  margin: 24px auto 12px auto;
}

@keyframes tvd-spin {
  to { transform: rotate(360deg); }
}

.tvd-loading-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--tvd-text-secondary);
}
