/* ===== Dashboard Styles ===== */

.dashboard-body {
  flex: 1;
  padding: 32px 0 60px;
}

/* ===== DASHBOARD HEADER ===== */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.dash-greeting {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.dash-greeting span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.stat-card {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-icon.purple { background: rgba(108,99,255,0.15); color: var(--accent); }
.stat-card-icon.green { background: rgba(0,212,170,0.15); color: var(--accent-2); }
.stat-card-icon.pink { background: rgba(255,107,157,0.15); color: var(--accent-3); }
.stat-card-icon.yellow { background: rgba(255,169,77,0.15); color: var(--warning); }

.stat-card-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.stat-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ===== DASHBOARD GRID ===== */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* ===== SECTION CARD ===== */
.section-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(108,99,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* ===== CONVERSION LIST ===== */
.conversion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.conversion-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.conversion-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.conv-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conv-icon.pdf { background: rgba(255,85,85,0.12); color: #ff5555; }
.conv-icon.word { background: rgba(43,124,211,0.12); color: #2b7cd3; }
.conv-icon.ocr { background: rgba(255,107,157,0.12); color: #ff6b9d; }

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

.conv-name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.conv-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conv-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

.conv-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.conv-dl-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.conv-dl-btn:hover { background: rgba(108,99,255,0.2); }

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 16px;
}

.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: rgba(108,99,255,0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.empty-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.empty-sub { font-size: 0.85rem; color: var(--text-muted); }

/* ===== PROFILE CARD ===== */
.profile-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 24px rgba(108,99,255,0.3);
}

.profile-provider-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-email { font-size: 0.8rem; color: var(--text-muted); }

.profile-divider { height: 1px; background: var(--border); }

.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
}

.profile-info-label { color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.profile-info-value { color: var(--text-primary); font-weight: 500; }

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}

.quick-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108,99,255,0.08);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: rgba(108,99,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  padding: 10px 16px 10px 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

.search-input::placeholder { color: var(--text-muted); }

/* Filter chips */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  transition: all 0.2s;
}

.filter-chip.active,
.filter-chip:hover {
  background: rgba(108,99,255,0.12);
  border-color: rgba(108,99,255,0.4);
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .dash-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dashboard-body { padding: 20px 0 40px; }
  .section-card { padding: 16px; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
