/*
 * KaziCollect – dashboard.css
 * Global shared styles loaded on every frontend page.
 * Per-dashboard styles live inline inside each shortcode file.
 */

/* ── Reset inside KC wrappers ── */
.kc-dashboard-restore * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.kc-dashboard-viewport {
  background: #f4f7fb;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  width: 100%;
}

.kc-dashboard-restore {
  width: 100%;
}

.kc-dashboard-restore .dashboard {
  margin-left: auto;
  margin-right: auto;
}

.kc-dashboard-restore a {
  text-decoration: none;
}

.kc-dashboard-restore .nav-item a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

/* ── Sidebar ── */
.sidebar {
  width: 280px;
  background: #fafcff;
  padding: 32px 20px;
  border-right: 1px solid #eef2f6;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  padding-left: 8px;
}

.logo-icon {
  background: #0b4d3c;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
}

.logo-text {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: #0b1e1a;
}

.logo-text span {
  color: #1f8b6e;
}

/* ── Nav ── */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-menu a.nav-item {
  text-decoration: none;
  color: inherit;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  color: #2f3e4a;
  font-weight: 500;
  font-size: 15px;
  transition: 0.2s;
  cursor: pointer;
}

.nav-item i {
  width: 22px;
  font-size: 18px;
  color: #62748c;
}

.nav-item.active {
  background: #e7f3f0;
  color: #0b4d3c;
  font-weight: 600;
}

.nav-item.active i {
  color: #0b4d3c;
}

.nav-item:not(.active):hover {
  background: #f0f4fa;
}

.sidebar-divider {
  margin: 20px 0 12px 0;
  border-top: 1px solid #e2e8f0;
}

/* ── Dashboard shell ── */
.dashboard {
  max-width: 1440px;
  width: 100%;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  display: flex;
  overflow: hidden;
}

.main-content {
  flex: 1;
  padding: 32px 36px;
  background: #ffffff;
}

/* ── Header ── */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.greeting h2 {
  font-size: 26px;
  font-weight: 700;
  color: #0b1e1a;
}

.greeting p {
  color: #5a6e7e;
  font-size: 15px;
  margin-top: 4px;
}

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

.header-actions i {
  font-size: 22px;
  color: #3f5565;
  background: #f2f6fc;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.header-actions i:hover {
  background: #e3eaf3;
}

/* ── Stats cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.stat-card {
  background: #f8fafd;
  border-radius: 24px;
  padding: 20px 20px 18px;
  border: 1px solid #edf2f7;
  transition: all 0.2s;
}

.stat-card .stat-label {
  color: #4a6377;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  justify-content: space-between;
}

.stat-card .stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #0b1e1a;
  margin: 8px 0 2px;
}

.stat-card .stat-sub {
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  padding: 2px 12px;
  border-radius: 30px;
}

.stat-sub.green-bg  { background: #d9eee6; color: #136b52; }
.stat-sub.blue-bg   { background: #dce8f5; color: #205e8a; }
.stat-sub.orange-bg { background: #f5e7d9; color: #a8662b; }

/* ── Profile avatar (sidebar + header) ── */
.kc-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #e7f3f0, #f0faf6);
  border-radius: 18px;
  margin-bottom: 24px;
  text-decoration: none;
  border: 1.5px solid #c8e6de;
  transition: background 0.2s;
}

.kc-sidebar-profile:hover { background: linear-gradient(135deg, #d4ece6, #e6f7f0); }

.kc-sidebar-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid #1f8b6e;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0b4d3c, #1f8b6e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  overflow: hidden;
}

.kc-sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.kc-sidebar-profile-info { flex: 1; min-width: 0; }

.kc-sidebar-profile-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #0b1e1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kc-sidebar-profile-role {
  font-size: 11px;
  color: #1f8b6e;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 3px;
}

.kc-header-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 6px 12px 6px 6px;
  border-radius: 40px;
  border: 1.5px solid #e0ede9;
  background: #f6faf8;
  transition: background 0.2s;
  cursor: pointer;
}

.kc-header-avatar-wrap:hover { background: #eaf4ef; }

.kc-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1f8b6e;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0b4d3c, #1f8b6e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  overflow: hidden;
}

.kc-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.kc-header-avatar-info { display: flex; flex-direction: column; line-height: 1.25; }
.kc-header-avatar-name { font-weight: 600; font-size: 13px; color: #0b1e1a; }
.kc-header-avatar-role { font-size: 10.5px; font-weight: 500; color: #1f8b6e; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Panel animations ── */
.kc-panel { animation: kcFadeIn 0.18s ease; }
.kc-placeholder-panel { padding: 8px 0 32px; }

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

/* ── Section headers ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.section-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a2a33;
}

.section-header .live-badge {
  font-size: 12px;
  background: #e03a3a;
  color: white;
  padding: 2px 12px;
  border-radius: 40px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.section-header .live-badge.waiting { background: #9aa7b3; }

/* ── Buttons ── */
.btn-schedule {
  background: #0b4d3c;
  color: white;
  border: none;
  padding: 10px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.15s;
}

.btn-schedule:hover {
  background: #0f604b;
  transform: scale(1.02);
}

/* ── Empty state ── */
.empty-state {
  color: #8298a8;
  font-size: 14px;
  font-style: italic;
  padding: 10px 0;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .sidebar { width: 220px; padding: 24px 16px; }
  .main-content { padding: 24px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .dashboard { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; border-right: 0; border-bottom: 1px solid #eef2f6; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Force Font Awesome font - overrides theme Dashicons or other icon fonts ── */
.kc-dashboard-restore i.fas,
.kc-dashboard-restore i.far,
.kc-dashboard-restore i.fab,
.kc-dashboard-restore i.fa {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  display: inline-block !important;
}
.kc-dashboard-restore i.fas { font-weight: 900 !important; }
.kc-dashboard-restore i.far { font-weight: 400 !important; }
.kc-dashboard-restore i.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}
