/* TOM Lite - Modern Studio Dashboard Styles */

#studio-dashboard {
  min-height: 100vh;
  width: 100%;
  background-color: #07070a;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(201, 168, 76, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 10% 60%, rgba(201, 168, 76, 0.03) 0%, transparent 40%);
  color: #eef0f4;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
  z-index: 40;
}

#studio-dashboard.tom-hidden {
  display: none !important;
}

/* Dashboard Topbar */
.dash-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dash-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #c9a84c 0%, #ecd79c 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.3);
}

.dash-logo-icon svg {
  width: 18px;
  height: 18px;
  fill: #000;
}

.dash-brand-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.dash-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.dash-breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: #a1a1aa;
}

.dash-search-container {
  flex: 1;
  max-width: 440px;
  margin: 0 24px;
  position: relative;
}

.dash-search-input {
  width: 100%;
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 14px 8px 36px;
  font-size: 13px;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.dash-search-input:focus {
  border-color: #c9a84c;
  background: #16161e;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.dash-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
  pointer-events: none;
}

.dash-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
}

.dash-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.dash-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.dash-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dash-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c9a84c 0%, #ecd79c 100%);
  border: none;
  color: #07070a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.25);
}

.dash-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

/* Dashboard Body Container */
.dash-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 28px 64px;
}

/* Welcome Hero Box */
.dash-hero-banner {
  background: linear-gradient(135deg, rgba(24, 23, 20, 0.8) 0%, rgba(14, 14, 18, 0.95) 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.dash-hero-banner::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dash-hero-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dash-hero-sub {
  font-size: 14px;
  color: #9ca3af;
  max-width: 540px;
  line-height: 1.5;
}

.dash-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dash-stat-item {
  text-align: right;
}

.dash-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: #c9a84c;
  font-family: monospace;
}

.dash-stat-label {
  font-size: 11px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Headers */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dash-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Template Presets Grid */
.dash-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.dash-template-card {
  background: #111115;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-template-card:hover {
  background: #16161c;
  border-color: rgba(201, 168, 76, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dash-template-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a84c;
  margin-bottom: 14px;
}

.dash-template-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.dash-template-ratio {
  font-size: 11px;
  font-weight: 600;
  color: #e8c97a;
  background: rgba(201, 168, 76, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.dash-template-desc {
  font-size: 12px;
  color: #8b8b93;
  line-height: 1.45;
  margin-bottom: 12px;
}

.dash-template-cta {
  font-size: 12px;
  font-weight: 600;
  color: #c9a84c;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Recent Projects Grid */
.dash-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.dash-project-card {
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.dash-project-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.dash-project-thumb {
  height: 130px;
  background: linear-gradient(135deg, #181820 0%, #0d0d12 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-project-thumb svg {
  color: rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
}

.dash-project-badge-ratio {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-project-badge-dur {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #c9a84c;
  font-family: monospace;
}

.dash-project-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-project-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.dash-project-meta {
  font-size: 12px;
  color: #71717a;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Empty State */
.dash-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #0d0d11;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.dash-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #71717a;
}

.dash-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.dash-empty-desc {
  font-size: 13px;
  color: #8b8b93;
  max-width: 400px;
  margin: 0 auto 20px;
}

/* Service Health Cards */
.dash-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-health-card {
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-health-icon {
  color: #10b981;
}

.dash-health-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.dash-health-sub {
  font-size: 11px;
  color: #71717a;
}
