/* WOLVOX-benzeri Modül Merkezi yerleşimi — yapı korunur, görsel modernizasyon */
:root {
  --topbar-h: 68px;
  --radius: 10px;
  --sidebar-w: 248px;
  --hub-page: #e8eef6;
  --hub-main: #eef3f9;
  --hub-sidebar: #f5f8fc;
  --hub-sidebar-head: #eef3f8;
  --hub-line: rgba(148, 163, 184, 0.28);
  --hub-text: #0f172a;
  --hub-muted: #64748b;
  --hub-accent: #2563eb;
  --hub-input: #fff;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--hub-page, var(--bg, #e8eef6));
  color: var(--hub-text, var(--text, #0f172a));
}
body::before {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(37, 99, 235, 0.1), transparent 56%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(14, 165, 233, 0.06), transparent 50%);
}

.topbar {
  height: var(--topbar-h);
  overflow: visible;
  background: linear-gradient(135deg, #071018 0%, #12203a 42%, #1d4ed8 100%);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  backdrop-filter: saturate(1.15) blur(10px);
}
.topbar-inner {
  max-width: none;
  padding: 0 28px;
  gap: 20px;
}
.brand-block {
  gap: 14px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.brand-mark img {
  padding: 4px;
}
.brand-block h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-block p {
  font-size: 0.8rem;
  color: #93c5fd;
  opacity: 0.9;
}
.user-panel {
  gap: 8px;
  overflow: visible;
  min-width: 0;
}
.hub-tools {
  gap: 6px;
  flex-shrink: 1;
}
.hub-tools .btn-ghost {
  height: 36px;
  padding: 0 10px;
  font-size: 0.74rem;
  border-radius: 10px;
}
.hub-tools-sep {
  height: 22px;
  margin: 0 2px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
}
.hub-nav-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hub-nav-actions {
  flex-shrink: 0;
}
.hub-nav-session {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 280px;
}
#icPerfWidget {
  max-width: 220px;
  flex-shrink: 0;
}
.user-card {
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  box-shadow: none;
  max-width: 240px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.user-avatar {
  width: 38px;
  height: 38px;
  font-size: 0.85rem;
  border-radius: 11px;
  box-shadow: none;
}
.user-card b,
.user-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.user-card b {
  font-size: 0.88rem;
}
.user-card small {
  font-size: 0.7rem;
}
.btn-ghost {
  height: 42px;
  border-radius: 11px;
  padding: 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.btn-ghost:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.85);
  outline-offset: 2px;
}
.notif-btn,
.settings-icon-btn,
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  min-width: 42px;
}
.hub-sidebar-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hub-start-label {
  display: none;
}
.hub-start-bars {
  display: inline;
}

.hub-desk {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - var(--topbar-h));
  position: relative;
  z-index: 1;
}
.hub-sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--hub-sidebar, #f5f8fc);
  border-right: 1px solid var(--hub-line, #d7e0ea);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--topbar-h));
  max-height: calc(100vh - var(--topbar-h));
  position: sticky;
  top: var(--topbar-h);
  overflow: hidden;
}
.hub-sidebar-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--hub-line, #d7e0ea);
  background: var(--hub-sidebar-head, #eef3f8);
}
.hub-tree-root {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: 800 0.78rem 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--hub-text, #1d3650);
  padding: 2px 4px 10px;
  cursor: default;
  letter-spacing: 0.02em;
  appearance: none;
  -webkit-appearance: none;
}
.hub-sidebar .module-search {
  width: 100%;
}
.hub-sidebar .module-search input,
.module-toolbar .module-search input {
  width: 100%;
  height: 34px;
  border-radius: 9px;
  font: 600 0.76rem 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  background: var(--hub-input, var(--input-bg, #fff));
  color: var(--hub-text, var(--text, #0f172a));
  border: 1px solid var(--hub-line, #d7e0ea);
  caret-color: var(--hub-accent, #2563eb);
}
.hub-sidebar .module-search input::placeholder,
.module-toolbar .module-search input::placeholder {
  color: var(--hub-muted, #94a3b8);
  opacity: 1;
  font-weight: 500;
}
.hub-sidebar .module-search input:hover,
.module-toolbar .module-search input:hover {
  border-color: color-mix(in srgb, var(--hub-accent, #2563eb) 35%, var(--hub-line, #d7e0ea));
}
.hub-sidebar .module-search input:focus,
.hub-sidebar .module-search input:focus-visible,
.module-toolbar .module-search input:focus,
.module-toolbar .module-search input:focus-visible {
  outline: none;
  background: var(--hub-input, var(--input-bg, #fff));
  border-color: color-mix(in srgb, var(--hub-accent, #2563eb) 55%, #93c5fd);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hub-accent, #2563eb) 18%, transparent);
  color: var(--hub-text, var(--text-primary, var(--text, #0f172a)));
}
.hub-sidebar .module-search input:-webkit-autofill,
.module-toolbar .module-search input:-webkit-autofill {
  -webkit-text-fill-color: var(--hub-text, var(--text-primary, #0f172a));
  box-shadow: 0 0 0 32px var(--hub-input, var(--input-bg, #fff)) inset;
  caret-color: var(--hub-accent, #2563eb);
}
.hub-tree {
  flex: 1;
  overflow: auto;
  padding: 6px 0 14px;
  font-size: 0.76rem;
}
.hub-tree-cat {
  margin: 0;
}
.hub-tree-cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 12px;
  font: 800 0.73rem 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--hub-text, #1d3650);
  cursor: pointer;
  border-radius: 0;
}
.hub-tree-cat-btn:hover {
  background: rgba(37, 99, 235, 0.08);
}
.hub-tree-cat-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: -2px;
}
.hub-tree-caret {
  width: 10px;
  color: var(--hub-muted, #64748b);
  font-size: 0.65rem;
}
.hub-tree-list {
  list-style: none;
  margin: 0;
  padding: 0 0 6px 6px;
}
.hub-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 6px 12px 6px 20px;
  font: 600 0.74rem 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: #334155;
  cursor: pointer;
  border-radius: 8px;
  margin: 1px 6px;
  width: calc(100% - 12px);
}
.hub-tree-item:hover {
  background: rgba(37, 99, 235, 0.1);
  color: #1e3a8a;
}
.hub-tree-item:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 0;
}
.hub-tree-item.soon {
  opacity: 0.58;
}
.hub-tree-item .hub-tree-ico {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.hub-tree-item .hub-tree-badge {
  margin-left: auto;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.hub-tree-cat.collapsed .hub-tree-list {
  display: none;
}
.hub-tree-cat.collapsed .hub-tree-caret {
  transform: rotate(-90deg);
}
.hub-sidebar-backdrop {
  display: none;
}

.hub-desk-main {
  flex: 1;
  min-width: 0;
  background: var(--hub-main, #eef3f9);
}
.main {
  max-width: none;
  margin: 0;
  padding: 14px 18px 24px;
}

.welcome {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
  border: 1px solid rgba(219, 231, 245, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.welcome::before {
  display: block;
  opacity: 0.85;
}
.welcome-paper-row {
  gap: 12px;
  align-items: center;
}
.welcome-clock-block {
  flex: 0 0 auto;
  text-align: right;
  padding: 2px 14px;
  border-left: 1px solid rgba(219, 231, 245, 0.95);
  min-width: 120px;
}
.welcome-clock {
  display: block;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.welcome-date {
  display: block;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.35;
}
.welcome-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}
.welcome h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.welcome p {
  font-size: 0.78rem;
  margin: 2px 0 0;
}
.welcome-ayah {
  margin: 8px 0 0;
  padding: 8px 10px;
  max-width: 640px;
  border-radius: 12px;
  border: 1px solid rgba(219, 231, 245, 0.95);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.5));
}
.welcome-ayah-ar {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 600;
  text-align: right;
  font-family: 'Segoe UI', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
}
.welcome-ayah-tr {
  margin: 6px 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: none;
}
.welcome-ayah-ref {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  font-style: normal;
  color: var(--primary, #1d4ed8);
}
.welcome-widgets {
  gap: 8px;
}
.dash-stat-widget,
.printer-paper-widget {
  min-width: 0;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dbe3ee;
}
.dash-stat-widget:hover,
.printer-paper-widget:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
}
.dash-stat-widget small,
.printer-paper-widget small {
  font-size: 0.62rem;
  max-width: none;
}
.dash-stat-widget strong,
.printer-paper-widget strong {
  font-size: 1.2rem;
  margin: 4px 4px 0 0;
}
.birthday-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: none;
}

.section-head {
  margin-bottom: 10px;
}
.section-head h3 {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}
.module-toolbar {
  gap: 8px;
}
.module-toolbar .module-search {
  width: min(240px, 42vw);
}
.module-order-reset {
  height: 34px;
  border-radius: 9px;
  font-size: 0.7rem;
}
.module-order-status {
  font-size: 0.68rem !important;
}
.mod-count-badge,
#moduleCount {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem !important;
  font-weight: 800;
  color: #1e3a8a;
  padding: 6px 11px !important;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe !important;
  line-height: 1.2;
}

.module-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mod-cat {
  background: transparent;
}
.mod-cat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font: 800 0.82rem 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: #1d4ed8;
  text-transform: none;
  letter-spacing: 0;
}
.mod-cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.28), rgba(148, 163, 184, 0.08));
}
.mod-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.mod-card {
  width: 112px;
  min-height: 96px;
  padding: 10px 6px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  gap: 6px;
  align-items: center;
  text-align: center;
  overflow: visible;
}
.mod-card::before,
.mod-card::after {
  display: none;
}
.mod-card.active:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}
.mod-card.active:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}
.mod-card.soon {
  opacity: 0.52;
  filter: grayscale(0.12);
}
.mod-heading {
  display: flex;
  justify-content: center;
  grid-template-columns: unset;
  position: relative;
  width: 100%;
}
.mod-heading-actions {
  position: absolute;
  top: -4px;
  right: -2px;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.mod-card:hover .mod-heading-actions,
.mod-card:focus-within .mod-heading-actions {
  opacity: 1;
  pointer-events: auto;
}
.mod-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.32rem;
  position: relative;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}
.mod-stat-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #c0392b;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 16px;
  z-index: 2;
}
.mod-stat-badge.zero {
  display: none;
}
.mod-badge {
  position: absolute;
  left: -5px;
  top: -4px;
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  letter-spacing: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.badge-live {
  background: #16a34a;
  border-color: #fff;
  color: transparent;
}
.badge-soon {
  background: #94a3b8;
}
.mod-card h4 {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  -webkit-line-clamp: 3;
  max-width: 100%;
  letter-spacing: 0;
  color: var(--hub-text, #0f172a);
}
.mod-card p,
.mod-foot,
.mod-metrics,
.mod-metric {
  display: none !important;
}
.mod-grip {
  font-size: 0.72rem;
  cursor: grab;
}
.mod-card.dragging {
  opacity: 0.45;
}
.mod-card.drag-target {
  border-color: #1d6aa3;
  background: #e8f1fb;
  box-shadow: none;
}

.modules-more {
  display: none !important;
}
.footer-note {
  margin-top: 14px;
  font-size: 0.68rem;
}

@media (max-width: 1280px) {
  .hub-tools .hub-tool-label {
    display: none;
  }
  .hub-nav-session {
    max-width: 220px;
  }
}
@media (max-width: 1100px) {
  .module-grid {
    display: flex;
  }
  .brand-block p {
    display: none;
  }
  .user-card {
    max-width: 148px;
  }
}
@media (max-width: 900px) {
  .hub-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hub-desk {
    display: block;
  }
  .hub-sidebar {
    position: fixed;
    z-index: 80;
    left: 0;
    top: var(--topbar-h);
    width: var(--sidebar-w);
    flex: none;
    height: calc(100vh - var(--topbar-h));
    max-height: none;
    transform: translateX(-105%);
    transition: transform 0.18s ease;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.18);
  }
  .hub-desk.sidebar-open .hub-sidebar {
    transform: translateX(0);
  }
  .hub-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: var(--topbar-h) 0 0 0;
    z-index: 70;
    background: rgba(15, 23, 42, 0.35);
  }
  .hub-desk.sidebar-open .hub-sidebar-backdrop {
    display: block;
  }
  .welcome-paper-row {
    flex-direction: column;
    align-items: stretch;
  }
  .welcome-clock-block {
    border-left: 0;
    padding: 0 0 4px;
    text-align: left;
    min-width: 0;
  }
  .welcome-widgets {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .mod-card {
    width: 88px;
    min-height: 86px;
  }
  .main {
    padding: 10px 10px 18px;
  }
  .user-card small {
    display: none;
  }
  .hub-nav-session {
    max-width: 120px;
  }
}
