/* Microsoft 365 / Fluent benzeri shell — Segoe UI, nötr zemin, mavi vurgu */
:root {
  --wmoh-blue: #0078d4;
  --wmoh-blue-dark: #106ebe;
  --wmoh-canvas: #f3f2f1;
  --wmoh-border: #edebe9;
  --wmoh-rail-w: 48px;
  --wmoh-topbar-h: 48px;
}

.wmoh-shell {
  font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, system-ui, sans-serif;
  background: var(--wmoh-canvas);
  min-height: 100vh;
}

.wmoh-topbar {
  height: var(--wmoh-topbar-h);
  min-height: var(--wmoh-topbar-h);
  background: #fff;
  border-color: var(--wmoh-border) !important;
}

.wmoh-topbar .wmoh-brand {
  color: var(--wmoh-blue);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.wmoh-btn-icon {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 4px;
  color: #323130;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wmoh-btn-icon:hover {
  background: #f3f2f1;
}

.wmoh-search {
  max-width: 560px;
  margin: 0 auto;
  height: 32px;
  background: #f3f2f1;
  border: 1px solid transparent;
  font-size: 14px;
  color: #605e5c;
}

.wmoh-search:focus-within {
  border-color: var(--wmoh-blue);
  background: #fff;
}

.wmoh-search input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.wmoh-rail {
  width: var(--wmoh-rail-w);
  min-width: var(--wmoh-rail-w);
  background: #faf9f8;
  padding-top: 8px;
}

.wmoh-rail .wmoh-rail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 4px auto;
  border-radius: 4px;
  color: #323130;
  text-decoration: none;
}

.wmoh-rail .wmoh-rail-link:hover {
  background: #edebe9;
}

.wmoh-rail .wmoh-rail-link.active {
  background: #edebe9;
  border-left: 3px solid var(--wmoh-blue);
}

.wmoh-main {
  background: var(--wmoh-canvas);
}

.wmoh-panel {
  background: #fff;
  border: 1px solid var(--wmoh-border);
  border-radius: 4px;
}

.wmoh-pill-user {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wmoh-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

body.wmoh-body {
  margin-bottom: 0;
}

/* Modül yan menüsü (MASTERÖğretim tarzı ağaç) */
.wmoh-module-sidebar {
  width: 268px;
  min-width: 268px;
  overflow-y: auto;
  border-color: var(--wmoh-border) !important;
}

.wmoh-letter-spacing-sm {
  letter-spacing: 0.08em;
  font-size: 11px;
}

.wmoh-module-group {
  transition: background 0.15s ease;
}

.wmoh-module-group:hover {
  background: #f5f5f5 !important;
}

.wmoh-module-group[aria-expanded="true"] {
  background: #f2f0f9 !important;
}

.wmoh-chevron {
  transition: transform 0.2s ease;
}

.wmoh-module-badge {
  background: #e8eaf6 !important;
  color: #5c5bd7;
  font-size: 11px;
  font-weight: 600;
}

.wmoh-module-tree {
  border-left: 2px solid var(--wmoh-border);
  margin-left: 0.65rem;
}

.wmoh-module-link {
  display: block;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  margin-bottom: 2px;
  border-radius: 4px;
  font-size: 13px;
  color: #323130;
  text-decoration: none;
}

.wmoh-module-link:hover {
  background: #f3f2f1;
}

.wmoh-module-link.active {
  background: #edebe9;
  color: var(--wmoh-blue);
  font-weight: 600;
  border-left: 3px solid var(--wmoh-blue);
  margin-left: -3px;
  padding-left: calc(0.75rem + 3px);
}

.wmoh-module-group[aria-expanded="false"] .wmoh-chevron {
  transform: rotate(-90deg);
}

.wmoh-hover-tile {
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

a:hover .wmoh-hover-tile {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: #d2d0ce !important;
}

/* Modül bazlı üst çubuk (module_profiles.ToolbarThemeClass) */
.wmoh-topbar.wmoh-toolbar-sinav {
  background: #e8f5e9 !important;
  border-color: #c8e6c9 !important;
}

.wmoh-topbar.wmoh-toolbar-sinav .wmoh-brand {
  color: #1b5e20;
}

.wmoh-topbar.wmoh-toolbar-sinav .wmoh-search {
  background: rgba(255, 255, 255, 0.85);
}

.wmoh-topbar.wmoh-toolbar-alert {
  background: #ffebee !important;
  border-color: #ffcdd2 !important;
}

.wmoh-topbar.wmoh-toolbar-alert .wmoh-brand {
  color: #b71c1c;
}

/* AJAX kayıt / bekleyici katman */
.wmoh-busy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(2px);
}

.wmoh-busy-overlay.wmoh-busy-visible {
  display: flex;
}

.wmoh-busy-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--wmoh-border);
  border-top-color: var(--wmoh-blue);
  animation: wmoh-spin 0.75s linear infinite;
}

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

.wmoh-table-compact td,
.wmoh-table-compact th {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 0.875rem;
}

.wmoh-row-highlight.bg-light {
  --bs-bg-opacity: 0.65;
}

/* Oturum / kimlik düzeni (DevExtreme formlar) */
.wmoh-auth-body.wmoh-shell {
  background: linear-gradient(165deg, #f3f2f1 0%, #e9eef6 42%, #f5f4f2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wmoh-auth-topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-color: var(--wmoh-border) !important;
}

.wmoh-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 1.5rem;
}

.wmoh-auth-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--wmoh-border);
  background: rgba(255, 255, 255, 0.5);
}

.wmoh-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

.wmoh-auth-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--wmoh-blue) 0%, #005a9e 100%);
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.35);
}

.wmoh-alert {
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
}

.wmoh-alert-danger {
  background: #fde7e9;
  border: 1px solid #f1bbbf;
  color: #442726;
}

.wmoh-login-form .dx-field-item-label-location-top {
  margin-bottom: 0.25rem;
}

.wmoh-login-remember-dx .dx-checkbox-text {
  font-size: 14px;
  color: #323130;
}

/* ---- DevExtreme koyu tema: sayfa kabuğu (JS: body.wmoh-dx-appearance-dark) ---- */
body.wmoh-dx-appearance-dark {
  color-scheme: dark;
}

/* Ana uygulama düzeni — koyu tema seçildiğinde */
body.wmoh-shell.wmoh-dx-appearance-dark {
  background: #1e1e1e;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-main {
  background: #1e1e1e;
  color: #e8e8e8;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-topbar {
  background: #252526 !important;
  border-color: #3c3c3c !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-brand {
  color: #60cdff !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-search {
  background: #3c3c3c;
  border-color: #555;
  color: #e0e0e0;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-rail {
  background: #252526;
  border-color: #3c3c3c !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-rail .wmoh-rail-link {
  color: #e8e8e8;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-rail .wmoh-rail-link:hover {
  background: #3c3c3c;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-rail .wmoh-rail-link.active {
  background: #3c3c3c;
  border-left-color: #60cdff;
}

/* Oturum sayfaları — koyu tema ile kart + zemin uyumu (siyah kutu görünümünü giderir) */
body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark {
  background: linear-gradient(165deg, #1a1a1c 0%, #252526 45%, #1e1e1e 100%);
}

body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-auth-topbar {
  background: rgba(37, 37, 38, 0.96) !important;
  border-color: #3c3c3c !important;
}

body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-brand {
  color: #60cdff !important;
}

body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-auth-footer {
  background: rgba(30, 30, 30, 0.88);
  border-top-color: #3c3c3c;
  color: #b0b0b0 !important;
}

body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-auth-card.wmoh-panel {
  background: #2d2d30;
  border: 1px solid #464649;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-auth-card .h4,
body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-auth-card h1 {
  color: #f3f3f3;
}

body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-auth-card .text-muted {
  color: #b0b0b0 !important;
}

body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-login-remember-dx .dx-checkbox-text {
  color: #e4e4e4;
}

body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-auth-card a.text-muted {
  color: #9bb8d9 !important;
}

body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-alert-danger {
  background: #442c2e;
  border-color: #8f4e54;
  color: #ffcdd2;
}

body.wmoh-auth-body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-auth-logo-mark {
  box-shadow: 0 4px 18px rgba(96, 205, 255, 0.25);
}

/* Modül başlatıcı (ana sayfa) */
.wmoh-module-tile {
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wmoh-module-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f2f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wmoh-blue);
}

.wmoh-module-tile--disabled .wmoh-module-tile-icon {
  color: #a19f9d;
}

.wmoh-module-guest-card {
  max-width: 420px;
}

.wmoh-module-devhint {
  max-width: 560px;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-tile-icon {
  background: #3c3c3c;
  color: #60cdff;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-tile--disabled .wmoh-module-tile-icon {
  color: #9a9a9a;
}

/* ---- Koyu tema: wmoh-panel + ana sayfa metinleri (Generic/Material dark ile uyum) ---- */
body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-panel {
  background: #2d2d30 !important;
  border-color: #464649 !important;
  color: #e8e8e8;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-hero h1,
body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-hero .h3 {
  color: #f3f3f3 !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-hero .text-muted {
  color: #c8c8c8 !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-panel .fw-semibold,
body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-panel a.text-reset {
  color: #f3f3f3 !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-panel .text-muted {
  color: #c4c4c4 !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-tile--disabled .fw-semibold.text-muted {
  color: #dedede !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-panel .text-primary {
  color: #60cdff !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark a:hover .wmoh-hover-tile.wmoh-panel {
  border-color: #60cdff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-guest-card.wmoh-panel p {
  color: #e4e4e4;
}

/* Development test kutusu — alert-light koyu zeminde okunaklı */
body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-devhint.alert-light {
  background: #2d2d30 !important;
  border-color: #555 !important;
  color: #e4e4e4 !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-devhint strong {
  color: #f3f3f3;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-devhint code {
  color: #ffb4c8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-module-devhint ul li {
  color: #e0e0e0;
}

/* Diğer içerik sayfaları (Firma grid vb.) — başlık ve yardımcı metin */
body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-page-head h1,
body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-page-head .h4 {
  color: #f3f3f3 !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-page-head .text-muted,
body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-main > p.text-muted {
  color: #c4c4c4 !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-topbar .small,
body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-topbar .btn-link {
  color: #e4e4e4 !important;
}

/* ---- M365 tarzı modül başlatıcı (sol üst ızgara) ---- */
.wmoh-app-launcher-trigger {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #323130;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.wmoh-app-launcher-trigger:hover {
  background: #f3f2f1;
}

.wmoh-app-launcher-trigger:focus-visible {
  outline: 2px solid var(--wmoh-blue);
  outline-offset: 1px;
}

.wmoh-app-launcher-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1040;
}

.wmoh-app-launcher-sheet {
  position: fixed;
  left: 8px;
  width: min(320px, calc(100vw - 16px));
  max-height: min(440px, calc(100vh - 56px));
  overflow-y: auto;
  z-index: 1050;
  padding: 12px 14px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  top: calc(var(--wmoh-topbar-h) + 4px);
}

body.wmoh-auth-body .wmoh-app-launcher-sheet {
  top: 52px;
}

.wmoh-app-launcher-sheet-head {
  border-color: var(--wmoh-border) !important;
}

.wmoh-app-launcher-title {
  color: #605e5c;
  letter-spacing: 0.06em;
}

.wmoh-app-launcher-close {
  color: #605e5c !important;
  opacity: 0.85;
}

.wmoh-app-launcher-close:hover {
  opacity: 1;
}

.wmoh-app-launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.wmoh-app-launcher-item {
  padding: 10px 6px;
  border-radius: 8px;
  transition: background 0.12s ease;
}

.wmoh-app-launcher-item:hover:not(.wmoh-app-launcher-item--disabled) {
  background: #f3f2f1;
}

.wmoh-app-launcher-item--disabled {
  opacity: 0.72;
}

.wmoh-app-launcher-item--disabled:hover {
  background: rgba(0, 120, 212, 0.06);
}

.wmoh-app-launcher-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f3f2f1;
  color: var(--wmoh-blue);
}

.wmoh-app-launcher-item--disabled .wmoh-app-launcher-item-icon {
  background: #edebe9;
  color: #a19f9d;
}

.wmoh-app-launcher-item-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.wmoh-app-launcher-open {
  overflow: hidden;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-app-launcher-trigger {
  color: #e8e8e8;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-app-launcher-trigger:hover {
  background: #3c3c3c;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-app-launcher-title,
body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-app-launcher-close {
  color: #c8c8c8 !important;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-app-launcher-item-icon {
  background: #3c3c3c;
  color: #60cdff;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-app-launcher-item:hover:not(.wmoh-app-launcher-item--disabled) {
  background: #3c3c3c;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-app-launcher-item-label {
  color: #f3f3f3;
}

body.wmoh-shell.wmoh-dx-appearance-dark .wmoh-app-launcher-item.text-reset {
  color: #f3f3f3 !important;
}

