/* ==========================================================================
   ofis.css - aahaber.com Hepsi Bir Arada Ofis Programı (Univer Ekosistemi)
   6 Modül: Sheets (Excel), Docs (Word), Slides (PPT), Boards (Miro), Bases (Kanban), PDFs
   Tam Koyu/Açık Tema Desteği & Premium Glassmorphism Arayüzü
   ========================================================================== */

/* Ana Ofis Konteynırı */
.office-app-wrapper {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 8px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
}

/* ==========================================================================
   1. ÜST OFİS BAŞLIK & ARAÇ ÇUBUĞU (OFFICE HEADER)
   ========================================================================== */
.office-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.office-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Birebir Görseldeki Açılır Modül Seçici (Dropdown Button) */
.office-module-selector-wrap {
  position: relative;
}

.btn-module-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-module-selector:hover {
  background: var(--bg-card-hover, rgba(124, 58, 237, 0.08));
  border-color: var(--border-focus, #7c3aed);
  transform: translateY(-1px);
}

.module-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}

.module-meta-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.module-current-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.module-sub-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.module-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.office-module-selector-wrap.open .module-chevron {
  transform: rotate(180deg);
}

/* Modül Açılır Menü (6 Modül Listesi) */
.office-modules-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: dropSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.office-module-selector-wrap.open .office-modules-dropdown {
  display: flex;
}

.dropdown-section-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 6px 10px 4px;
}

.office-module-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.office-module-option:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-subtle);
  transform: translateX(2px);
}

.office-module-option.active {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.3);
}

.module-opt-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.module-opt-texts {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.module-opt-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-opt-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 600;
}

.module-opt-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Doküman Başlığı ve Otomatik Kayıt */
.office-doc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid var(--border-subtle);
  padding-left: 14px;
}

.office-doc-title-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  width: 220px;
  transition: all 0.2s ease;
}

.office-doc-title-input:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-subtle);
}

.office-doc-title-input:focus {
  background: var(--bg-card);
  border-color: #7c3aed;
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.autosave-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.autosave-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

/* Sağ Kontrol Butonları (Dışa Aktar, Şablon, Tam Ekran) */
.office-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-office-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-office-action:hover {
  background: var(--bg-card-hover, rgba(0,0,0,0.05));
  border-color: var(--border-focus, #7c3aed);
  transform: translateY(-1px);
}

.btn-office-primary {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.btn-office-primary:hover {
  background: linear-gradient(135deg, #6d28d9, #4f46e5);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Dışa Aktarma Menüsü */
.export-dropdown-wrap {
  position: relative;
}

.export-menu-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.export-dropdown-wrap.open .export-menu-card {
  display: flex;
}

/* Şablonlar Açılır Menüsü (Templates) */
.template-dropdown-wrap {
  position: relative;
}

.template-menu-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.template-dropdown-wrap.open .template-menu-card {
  display: flex;
}

.template-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.template-item-btn:hover {
  background: var(--bg-card-subtle);
  color: #10b981;
}

.template-item-btn .ext-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 700;
}

.export-item-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.export-item-btn:hover {
  background: var(--bg-card-subtle);
  color: #7c3aed;
}

.export-item-btn .ext-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 700;
}

/* ==========================================================================
   2. TAM EKRAN ÇALIŞMA ALANI & MODÜL KONTEYNIRI
   ========================================================================== */
.office-workspace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  min-height: 720px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Tam Ekran Modu Sınıfı */
body.office-fullscreen-active .sidebar,
body.office-fullscreen-active .top-nav-wrap,
body.office-fullscreen-active .footer-main {
  display: none !important;
}

body.office-fullscreen-active .main-wrapper,
body.office-fullscreen-active .content-body {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
  width: 100vw !important;
}

body.office-fullscreen-active .office-app-wrapper {
  max-width: 100vw;
  height: 100vh;
  padding: 6px;
}

body.office-fullscreen-active .office-workspace-card {
  flex: 1;
  min-height: calc(100vh - 80px);
  border-radius: 10px;
}

/* Modül Sekme Görünürlükleri */
.office-module-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;
}

.office-module-pane.active {
  display: flex;
}

/* ==========================================================================
   3. MODÜL 1: 🟢 UNIVER SHEETS (GERÇEK CANVAS, ŞERİT MENÜ & FORMÜL MOTORU)
   ========================================================================== */
.univer-ribbon-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ribbon-tabs-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 12px 0;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ribbon-tab-btn {
  padding: 6px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
  bottom: -1px;
}

.ribbon-tab-btn:hover {
  color: var(--text-main);
  background: rgba(124, 58, 237, 0.04);
}

.ribbon-tab-btn.active {
  color: #10b981;
  background: var(--bg-card);
  border-color: var(--border-subtle);
  border-bottom-color: var(--bg-card);
  font-weight: 700;
}

[data-theme="dark"] .ribbon-tab-btn.active {
  color: #34d399;
}

.ribbon-panels-container {
  padding: 8px 14px;
  min-height: 72px;
  background: var(--bg-card);
}

.ribbon-tab-content {
  display: none;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ribbon-tab-content.active {
  display: flex;
}

.ribbon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ribbon-group-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ribbon-group-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: capitalize;
  margin-top: 2px;
  user-select: none;
}

.ribbon-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
  margin: 0 4px;
}

.btn-ribbon-icon {
  width: 28px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-ribbon-icon:hover {
  background: var(--bg-card-hover, rgba(16, 185, 129, 0.1));
  border-color: #10b981;
  color: #10b981;
}

.btn-ribbon-text-btn {
  padding: 4px 8px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-ribbon-text-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
}

.btn-ribbon-action {
  padding: 5px 10px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-ribbon-action:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #10b981;
  transform: translateY(-1px);
}

.ribbon-select {
  height: 26px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.ribbon-select-sm {
  width: 52px;
  height: 26px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.btn-ribbon-color-wrap {
  width: 28px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  font-size: 12px;
}

.btn-ribbon-color-wrap input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.btn-ribbon-color-wrap:hover {
  border-color: #10b981;
}

.univer-sheets-host {
  width: 100%;
  height: calc(100vh - 270px);
  min-height: 600px;
  position: relative;
  background: #ffffff;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

/* Univer'ın içindeki mükerrer tek satırlık araç çubuğunu gizle; 
   böylece üstteki tam teşekküllü Şerit Menü (Ribbon) ve hemen altındaki Formül Çubuğu (Formula Bar) çalışır */
#univer-sheets-app .univer-toolbar {
  display: none !important;
}

#univer-sheets-app .univer-toolbar-container {
  border-top: 1px solid var(--border-subtle) !important;
  background: var(--bg-card) !important;
  z-index: 5;
}

[data-theme="dark"] .univer-sheets-host {
  background: #18181b;
}

body.office-fullscreen-active .univer-sheets-host {
  height: calc(100vh - 165px);
  min-height: calc(100vh - 165px);
  border-radius: 0 0 10px 10px;
}

/* ==========================================================================
   4. MODÜL 2: 🔵 UNIVER DOCS (WORD & DOKÜMAN)
   ========================================================================== */
.docs-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.docs-tool-group {
  display: flex;
  align-items: center;
  gap: 3px;
  border-right: 1px solid var(--border-subtle);
  padding-right: 8px;
}

.docs-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.btn-doc-tool {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-doc-tool:hover {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.btn-doc-tool.active {
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.3);
}

/* A4 Kağıt Düzeni */
.docs-page-viewport {
  flex: 1;
  background: var(--bg-main, #f1f5f9);
  padding: 32px 16px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  min-height: 600px;
}

.docs-a4-sheet {
  width: 100%;
  max-width: 820px;
  min-height: 1020px;
  background: #ffffff;
  color: #1e293b;
  border-radius: 4px;
  padding: 64px 72px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  outline: none;
  line-height: 1.7;
  font-size: 15px;
  position: relative;
}

/* Koyu modda A4 hafif kırık beyaz kalsın (belge sadakati) */
[data-theme="dark"] .docs-page-viewport {
  background: #0f172a;
}
[data-theme="dark"] .docs-a4-sheet {
  background: #1e293b;
  color: #f8fafc;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.docs-a4-sheet h1 { font-size: 28px; font-weight: 800; margin: 0 0 16px; }
.docs-a4-sheet h2 { font-size: 22px; font-weight: 700; margin: 20px 0 12px; }
.docs-a4-sheet h3 { font-size: 18px; font-weight: 700; margin: 16px 0 10px; }
.docs-a4-sheet p { margin-bottom: 14px; }
.docs-a4-sheet table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.docs-a4-sheet table td, .docs-a4-sheet table th { border: 1px solid #cbd5e1; padding: 8px 12px; }

.docs-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   5. MODÜL 3: 🔴 UNIVER SLIDES (POWERPOINT & SUNUM — FULL DONANIMLI)
   ========================================================================== */
.slides-top-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.slides-tool-group {
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--border-subtle);
  padding-right: 10px;
}

.slides-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.slides-workspace-body {
  display: flex;
  flex: 1;
  height: 620px;
  overflow: hidden;
}

.slides-left-sidebar {
  width: 200px;
  min-width: 200px;
  background: var(--bg-card-subtle);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  overflow-y: auto;
}

.slide-thumb-item {
  border-radius: 8px;
  padding: 6px;
  background: var(--bg-card);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.slide-thumb-item:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.4);
}

.slide-thumb-item.active {
  border-color: #ef4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}

.slide-thumb-num {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.slide-mini-canvas {
  aspect-ratio: 16 / 9;
  background: #1e293b;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #fff;
  font-size: 8.5px;
  text-align: center;
  overflow: hidden;
}

.slides-main-canvas-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-main, #0f172a);
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.slide-widescreen-frame {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  outline: none;
  transition: all 0.25s ease;
}

.slide-title-editable {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  outline: none;
  border-bottom: 2px dashed transparent;
  transition: border-color 0.2s;
}

.slide-title-editable:focus {
  border-color: #ef4444;
}

.slide-content-editable {
  font-size: 17px;
  line-height: 1.65;
  opacity: 0.92;
  outline: none;
}

.slide-shapes-container {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.slide-shape-item {
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

/* Canlı Sunum Modu (F5 Tam Ekran Sunum) */
.presentation-fullscreen-modal {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.presentation-fullscreen-modal.active {
  display: flex;
}

.presentation-slide-view {
  width: 90vw;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 16px;
  padding: 64px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.presentation-controls-bar {
  position: absolute;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 8px 18px;
  border-radius: 30px;
  color: #fff;
}

.btn-pres-nav {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   6. MODÜL 4: 🟣 UNIVER BOARDS (BEYAZ TAHTA - MIRO / FIGJAM)
   ========================================================================== */
.boards-canvas-container {
  flex: 1;
  height: 640px;
  position: relative;
  background-color: var(--bg-card);
  background-image: radial-gradient(var(--border-subtle) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  overflow: hidden;
  cursor: default;
}

.boards-floating-toolbar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 6px 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  z-index: 50;
  backdrop-filter: blur(16px);
}

.btn-board-tool {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-board-tool:hover {
  background: var(--bg-card-subtle);
}

.btn-board-tool.active {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.3);
}

.board-tool-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
  margin: 0 4px;
}

.btn-board-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-board-color-dot.active, .btn-board-color-dot:hover {
  transform: scale(1.2);
  border-color: var(--text-main);
}

.dot-yellow { background: #fef08a; }
.dot-green { background: #bbf7d0; }
.dot-blue { background: #bfdbfe; }
.dot-pink { background: #fbcfe8; }
.dot-orange { background: #fed7aa; }

.boards-drawing-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

/* Şekil Düğümleri (Flowchart Nodes) */
.board-flow-node {
  position: absolute;
  padding: 14px 20px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 2px solid #8b5cf6;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  cursor: move;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.15);
  user-select: none;
  z-index: 20;
}

.node-decision {
  border-radius: 4px;
  border-color: #ec4899;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.15);
}

.node-terminal {
  border-radius: 30px;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

/* Yapışkan Notlar (Sticky Notes) */
.sticky-note-card {
  position: absolute;
  width: 170px;
  min-height: 150px;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  cursor: move;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  user-select: none;
  transition: box-shadow 0.2s ease;
  z-index: 25;
}

.sticky-note-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.sticky-yellow { background: #fef08a; }
.sticky-pink { background: #fbcfe8; }
.sticky-green { background: #bbf7d0; }
.sticky-blue { background: #bfdbfe; }
.sticky-orange { background: #fed7aa; }

.sticky-content-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 13.5px;
  color: inherit;
}

/* ==========================================================================
   7. MODÜL 5: 🟢 UNIVER BASES (VERİTABANI - NOTION / AIRTABLE / KANBAN)
   ========================================================================== */
.bases-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.bases-view-selector {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
}

.btn-base-view {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-base-view.active {
  background: #059669;
  color: #fff;
}

.bases-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px 10px;
}

.bases-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-main);
  width: 140px;
}

.bases-view-container {
  display: none;
  flex: 1;
  overflow: auto;
  height: 600px;
}

.bases-view-container.active {
  display: flex;
  flex-direction: column;
}

/* Kanban Pano Düzeni */
.bases-kanban-board {
  display: flex;
  gap: 16px;
  padding: 20px;
  overflow-x: auto;
  flex: 1;
  background: var(--bg-main, #f8fafc);
}

[data-theme="dark"] .bases-kanban-board {
  background: #0b0f19;
}

.kanban-col {
  width: 280px;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  max-height: 100%;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.kanban-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
}

.kanban-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}

.kanban-card-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px;
  cursor: grab;
  transition: all 0.15s ease;
}

.kanban-card-item:hover {
  transform: translateY(-2px);
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.kanban-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.tag-urgent { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.tag-high { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.tag-normal { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

/* Grid Tablo Görünümü */
.bases-grid-table-wrap {
  flex: 1;
  overflow: auto;
  background: var(--bg-card);
}

.bases-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.bases-grid-table th {
  background: var(--bg-card-subtle);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

.bases-grid-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.bases-grid-table tr:hover td {
  background: rgba(5, 150, 105, 0.04);
}

/* Takvim Görünümü */
.bases-calendar-wrap {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  flex: 1;
}

.cal-day-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  min-height: 90px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-day-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.cal-task-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   8. MODÜL 6: 🔴 UNIVER PDFS (PDF OKUYUCU & DÜZENLEYİCİ — FULL DONANIMLI)
   ========================================================================== */
.pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.pdf-viewer-split-layout {
  display: flex;
  flex: 1;
  height: 620px;
  overflow: hidden;
}

.pdf-thumbnails-sidebar {
  width: 170px;
  min-width: 170px;
  background: var(--bg-card-subtle);
  border-right: 1px solid var(--border-subtle);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.pdf-thumb-card {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 6px;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.18s ease;
}

.pdf-thumb-card:hover {
  border-color: #dc2626;
  transform: translateY(-1px);
}

.pdf-thumb-card.active {
  border-color: #dc2626;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.2);
}

.pdf-thumb-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.pdf-thumb-preview {
  aspect-ratio: 1 / 1.35;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.pdf-viewer-viewport {
  flex: 1;
  background: #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  overflow-y: auto;
  gap: 30px;
  position: relative;
  transition: transform 0.2s ease;
}

.pdf-document-page {
  background: #ffffff;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  border-radius: 4px;
  max-width: 800px;
  width: 100%;
  min-height: 980px;
  position: relative;
  padding: 56px 48px;
  color: #1e293b;
  flex-shrink: 0;
}

.pdf-signature-block {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

/* ==========================================================================
   9. MODAL & ŞABLON SEÇİCİ PENCERESİ
   ========================================================================== */
.office-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.office-modal-overlay.open {
  display: flex;
}

.office-modal-window {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.office-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.office-modal-header h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}

.btn-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.office-modal-body {
  padding: 20px;
}

/* Şablon Kartları */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.template-card-item {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  background: var(--bg-card-subtle);
  cursor: pointer;
  transition: all 0.18s ease;
}

.template-card-item:hover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
  transform: translateY(-2px);
}

.template-card-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.template-card-desc {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   10. DOSYA AÇMA & İÇE AKTARMA (OPEN FILE, DRAG & DROP, TOAST)
   ========================================================================== */
.open-file-dropdown-wrap {
  position: relative;
}

.open-menu-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.open-file-dropdown-wrap.open .open-menu-card {
  display: flex;
}

.open-item-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
  text-decoration: none;
  user-select: none;
}

.open-item-btn:hover {
  background: var(--bg-card-subtle);
  color: #7c3aed;
}

.open-item-btn .ext-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 700;
}

/* Sürükle Bırak (Drag & Drop) Kaplaması */
.office-drag-overlay {
  position: absolute;
  inset: 0;
  background: rgba(124, 58, 237, 0.94);
  color: #ffffff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 5000;
  backdrop-filter: blur(10px);
  border: 3px dashed #ffffff;
  border-radius: 16px;
  pointer-events: none;
}

.office-workspace-card.drag-over .office-drag-overlay {
  display: flex;
}

.drag-overlay-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.drag-overlay-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.drag-overlay-desc {
  font-size: 14.5px;
  opacity: 0.95;
  font-weight: 500;
}

/* Toast Bildirim */
.office-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.office-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.office-toast.success {
  border-left: 4px solid #10b981;
}

.office-toast.error {
  border-left: 4px solid #ef4444;
}

