/* ========================================================
   MyLaunchPad Web - Windows 11 Acrylic / Fluent UI Styles
   ======================================================== */

:root {
  --font-family: 'Segoe UI Variable Text', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  
  /* Dark Theme (Default) */
  --bg-app: #0e1117;
  --bg-viewport: #131722;
  --dot-color: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(26, 32, 44, 0.78);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-hover-border: rgba(255, 255, 255, 0.22);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  --card-selected-border: #3b82f6;
  --card-selected-shadow: 0 0 0 2px #3b82f6, 0 12px 35px rgba(59, 130, 246, 0.25);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-secondary: #d1d5db;
  
  --acrylic-bg: rgba(18, 24, 38, 0.82);
  --acrylic-border: rgba(255, 255, 255, 0.12);
  --acrylic-blur: blur(24px) saturate(180%);
  
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --danger-color: #ef4444;
  --danger-hover: #dc2626;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-light {
  --bg-app: #f3f4f6;
  --bg-viewport: #e5e7eb;
  --dot-color: rgba(0, 0, 0, 0.12);
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-hover-border: rgba(0, 0, 0, 0.18);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  --card-selected-border: #2563eb;
  --card-selected-shadow: 0 0 0 2px #2563eb, 0 10px 30px rgba(37, 99, 235, 0.2);
  
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-secondary: #374151;
  
  --acrylic-bg: rgba(255, 255, 255, 0.85);
  --acrylic-border: rgba(0, 0, 0, 0.1);
  --acrylic-blur: blur(24px) saturate(180%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
}

body {
  font-family: var(--font-family);
  background: var(--bg-app);
  color: var(--text-main);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ========================================================
   Üst Yüzen Arama Çubuğu (Top Nav)
   ======================================================== */
.top-nav {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  pointer-events: none;
}

.search-bar-container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--acrylic-bg);
  backdrop-filter: var(--acrylic-blur);
  -webkit-backdrop-filter: var(--acrylic-blur);
  border: 1px solid var(--acrylic-border);
  border-radius: 28px;
  padding: 8px 18px;
  width: 440px;
  max-width: 90vw;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-normal);
}

.search-bar-container:focus-within {
  width: 520px;
  border-color: var(--accent-color);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

#global-search {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-family);
  user-select: text;
}

#global-search::placeholder {
  color: var(--text-muted);
}

.shortcut-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.top-actions {
  pointer-events: auto;
  display: flex;
  gap: 8px;
}

.action-btn, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--acrylic-bg);
  backdrop-filter: var(--acrylic-blur);
  border: 1px solid var(--acrylic-border);
  color: var(--text-main);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

.action-btn:hover, .icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.action-btn:active, .icon-btn:active {
  transform: translateY(0);
}

/* ========================================================
   Sonsuz Tuval Görüntü Alanı (Viewport & World)
   ======================================================== */
.viewport {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-viewport);
  cursor: default;
}

.viewport.panning {
  cursor: grab;
}

.viewport.is-panning {
  cursor: grabbing;
}

.world {
  position: absolute;
  top: 0;
  left: 0;
  width: 100000px;
  height: 100000px;
  transform-origin: 0 0;
  will-change: transform;
}

/* Dot Grid Zemini */
.dot-grid {
  background-image: radial-gradient(var(--dot-color) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* Çoklu Seçim Çerçevesi */
.selection-box {
  position: absolute;
  border: 1px solid var(--accent-color);
  background: rgba(59, 130, 246, 0.15);
  pointer-events: none;
  z-index: 999;
}

/* ========================================================
   Tuval Kartları (Cards)
   ======================================================== */
.canvas-card {
  position: absolute;
  background: var(--card-bg);
  backdrop-filter: var(--acrylic-blur);
  -webkit-backdrop-filter: var(--acrylic-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: default;
  z-index: 10;
  overflow: hidden;
}

.canvas-card:hover {
  border-color: var(--card-hover-border);
}

.canvas-card.selected {
  border-color: var(--card-selected-border);
  box-shadow: var(--card-selected-shadow);
  z-index: 50;
}

.canvas-card.locked {
  border-style: dashed;
}

.canvas-card.filtered-out {
  opacity: 0.15;
  filter: grayscale(80%);
  pointer-events: none;
}

/* Kart Başlık Şeridi */
.card-header {
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: move;
  background: rgba(0, 0, 0, 0.12);
}

.card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.canvas-card:hover .card-actions {
  opacity: 1;
}

.card-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

.card-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

/* Kart Gövdesi */
.card-body {
  flex: 1;
  padding: 12px;
  overflow: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --- Kart Çeşitleri --- */

/* 1. Kısayol Kartı */
.card-shortcut {
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  cursor: pointer;
  border-radius: var(--radius-lg);
}

.shortcut-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: bold;
  color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast);
}

.canvas-card:hover .shortcut-icon-wrapper {
  transform: scale(1.08);
}

.shortcut-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcut-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 2. Not Kartı */
.card-note textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
  user-select: text;
}

/* 3. Yapılacaklar Listesi Kartı */
.todo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  flex: 1;
  overflow-y: auto;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.todo-item input[type="checkbox"] {
  accent-color: var(--accent-color);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.todo-item.done span {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-new-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
  user-select: text;
}

.todo-new-input:focus {
  border-color: var(--accent-color);
}

/* 4. Başlık Kartı */
.card-heading {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.card-heading .card-header {
  display: none;
}

.heading-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  outline: none;
  user-select: text;
}

/* 5. Renk Kartı */
.color-preview-box {
  height: 70px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.color-codes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 11px;
}

.color-code-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 8px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.color-code-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.color-code-label {
  color: var(--text-muted);
  font-weight: bold;
}

/* 6. Saat Kartı */
.clock-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.clock-time {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.clock-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 7. Hesap Makinesi Kartı */
.calc-screen {
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: right;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
  min-height: 38px;
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  flex: 1;
}

.calc-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.calc-btn.op {
  background: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.calc-btn.op:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* 8. Çizim Kartı */
.sketch-canvas {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  cursor: crosshair;
}

.sketch-toolbar {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

/* 9. Harita Kartı */
.map-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-sm);
}

/* 10. Tablo Kartı */
.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.board-table th, .board-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 8px;
  text-align: left;
  user-select: text;
  outline: none;
}

.board-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

/* Boyutlandırma Tutamakları (Resize Handles) */
.resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: transparent;
  z-index: 60;
}

.canvas-card.selected .resize-handle {
  background: var(--accent-color);
  border: 1px solid white;
  border-radius: 50%;
}

.resize-handle.nw { top: -4px; left: -4px; cursor: nwse-resize; }
.resize-handle.ne { top: -4px; right: -4px; cursor: nesw-resize; }
.resize-handle.se { bottom: -4px; right: -4px; cursor: nwse-resize; }
.resize-handle.sw { bottom: -4px; left: -4px; cursor: nesw-resize; }
.resize-handle.n  { top: -4px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.resize-handle.s  { bottom: -4px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.resize-handle.w  { left: -4px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.resize-handle.e  { right: -4px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }

/* ========================================================
   Hizalama Çubuğu (Align Bar)
   ======================================================== */
.align-bar {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--acrylic-bg);
  backdrop-filter: var(--acrylic-blur);
  border: 1px solid var(--acrylic-border);
  border-radius: 24px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.align-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.align-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.align-buttons button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.align-buttons button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.align-buttons .danger-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.align-buttons .danger-btn:hover {
  background: var(--danger-color);
  color: white;
}

.v-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
}

/* ========================================================
   Alt Sekmeler ve Gezinme Çubuğu (Bottom Bar)
   ======================================================== */
.bottom-bar {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 1000;
}

.board-tabs {
  pointer-events: auto;
  display: flex;
  gap: 4px;
  background: var(--acrylic-bg);
  backdrop-filter: var(--acrylic-blur);
  border: 1px solid var(--acrylic-border);
  border-radius: 24px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: 60vw;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.tab-btn.add-tab {
  pointer-events: auto;
  background: var(--acrylic-bg);
  backdrop-filter: var(--acrylic-blur);
  border: 1px solid var(--acrylic-border);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.zoom-controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  background: var(--acrylic-bg);
  backdrop-filter: var(--acrylic-blur);
  border: 1px solid var(--acrylic-border);
  border-radius: 20px;
  padding: 3px 8px;
  gap: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.zoom-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.zoom-label {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  min-width: 44px;
  text-align: center;
  cursor: pointer;
}

/* ========================================================
   Bağlam Menüsü (Context Menu)
   ======================================================== */
.context-menu {
  position: absolute;
  background: var(--acrylic-bg);
  backdrop-filter: var(--acrylic-blur);
  -webkit-backdrop-filter: var(--acrylic-blur);
  border: 1px solid var(--acrylic-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  padding: 6px;
  min-width: 210px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.menu-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 4px 10px;
  font-weight: 700;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-item.danger {
  color: #f87171;
}

.menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.menu-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* ========================================================
   Modallar (Dialogs & Panels)
   ======================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acrylic-panel {
  background: var(--acrylic-bg);
  backdrop-filter: var(--acrylic-blur);
  -webkit-backdrop-filter: var(--acrylic-blur);
  border: 1px solid var(--acrylic-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  width: 480px;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Form Elemanları */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-family);
  outline: none;
  user-select: text;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color);
}

.btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent-color);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  background: var(--danger-color);
  color: white;
}

.io-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.file-upload-label {
  text-align: center;
  display: block;
}

.shortcut-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.shortcut-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 11px;
}

.hidden {
  display: none !important;
}

/* ========================================================
   GELİŞMİŞ KART VE ERP / TİCARİ BİLEŞEN STİLLERİ (v2)
   ======================================================== */

/* Alt İşlem Butonları Barı */
.card-sub-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mini-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mini-btn.primary {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-hover);
}

.mini-btn.success {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}
.mini-btn.success:hover {
  background: #10b981;
  color: white;
}

.mini-btn.danger {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
.mini-btn.danger:hover {
  background: #ef4444;
  color: white;
}

.mini-search {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-main);
  outline: none;
}

/* ERP / Ticari Konteyner & Liste Yapısı */
.erp-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
  overflow: hidden;
}

.erp-topbar {
  display: flex;
  gap: 6px;
  align-items: center;
}

.erp-scroll-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.erp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}

.erp-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.erp-col-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.erp-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erp-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.erp-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.erp-badge.positive {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.erp-badge.negative {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.erp-badge.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.erp-badge.neutral {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.erp-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.erp-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.erp-tab.active {
  background: var(--accent-color);
  color: white;
}

.erp-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-top: auto;
}

.erp-detail-item {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.erp-detail-item.copyable {
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
}
.erp-detail-item.copyable:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hava Durumu Widget'ı */
.weather-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather-city {
  font-size: 15px;
  font-weight: 700;
}

.weather-badge {
  font-size: 10px;
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  padding: 2px 6px;
  border-radius: 8px;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
}

.weather-temp {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}

.weather-icon {
  font-size: 34px;
}

.weather-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.weather-details {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

/* Aylık Takvim & Ajanda */
.cal-header {
  text-align: center;
  font-size: 13px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin: 8px 0;
  text-align: center;
}

.cal-day-name {
  font-size: 10px;
  font-weight: bold;
  color: var(--text-muted);
  padding: 2px 0;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast);
}

.cal-cell:hover:not(.empty) {
  background: rgba(255, 255, 255, 0.15);
}

.cal-cell.today {
  background: var(--accent-color);
  color: white;
  font-weight: bold;
}

.cal-cell.selected-day {
  border: 1px solid #60a5fa;
}

.cal-cell.has-note::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  background: #f59e0b;
  border-radius: 50%;
}

.cal-note-area {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  min-height: 40px;
  margin-top: auto;
}

/* Sac ve Profil Metal Hesaplayıcı */
.metal-calc-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.metal-calc-form input, .metal-calc-form select {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  color: var(--text-main);
  outline: none;
}

.metal-result-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.res-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.res-label {
  color: var(--text-muted);
}

.res-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.res-val.total {
  color: #34d399;
  font-size: 14px;
}

/* Alt Tuval Kartı Bağlantısı */
.card-board-link {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(16, 185, 129, 0.2)) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: transform var(--transition-fast), border-color var(--transition-fast) !important;
}

.card-board-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color) !important;
}

.board-link-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 4px;
}

.board-link-icon {
  font-size: 32px;
}

.board-link-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.board-link-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Hesap Makinesi Geçmiş */
.calc-history {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  min-height: 16px;
  font-variant-numeric: tabular-nums;
}

/* Çeviri Kutusu */
.translate-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
}

.translate-lang-bar {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.translate-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-main);
  resize: none;
  font-family: inherit;
  outline: none;
}

.translate-output {
  flex: 1;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 13px;
  user-select: text;
}
