/* ==========================================================================
   NOT DEFTERİ (NOTEBOOK) — green twin of the "Genel Sohbet" button, on every screen that shows it
   ========================================================================== */
.notebook-trigger {
  position: absolute;
  right: 22px;
  bottom: 142px;   /* just above the chat button (globalChat.css: bottom 85px) */
  z-index: 9995;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: 2px solid #4ade80;
  border-radius: 30px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
  pointer-events: auto;
  align-items: center;
  gap: 9px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.notebook-trigger:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #86efac;
}
.nbt-icon {
  font-size: 17px;
}
.nbt-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #dc2626;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nbt-badge[hidden] {
  display: none;
}
/* hidden exactly where the chat button is hidden (shop.css, training.css, transferMarket.css, youthAcademy.css, eventPage.css, liveMatch.css) */
html:not(.has-token) .notebook-trigger,
.live-match-mode .notebook-trigger,
#gameViewport.shop-mode .notebook-trigger,
#gameViewport.training-mode .notebook-trigger,
#gameViewport.transfer-mode .notebook-trigger,
#gameViewport.youth-mode .notebook-trigger,
#gameViewport.event-page-mode .notebook-trigger {
  display: none !important;
}

/* Panel (AGENTS.md §4.2: absolute inside the game window, backdrop click closes, ✕ top-right) */
.notebook-overlay {
  position: absolute;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.75);
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5%, 30px);
}
.notebook-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
  border: 2px solid #16a34a;
  border-radius: 18px;
}
.notebook-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}
.notebook-head {
  background: #15803d;
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 900;
  padding: 18px 64px 18px 22px;
  flex-shrink: 0;
}
.notebook-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(10px, 2.5%, 22px);
}
.notebook-section {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
}
.notebook-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #15803d;
  border-bottom: 1.5px dashed #cbd5e1;
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.notebook-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid #e2e8f0;
}
.notebook-item:last-child {
  border-bottom: none;
}
.notebook-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  background: #dc2626;
}
.notebook-item.done .notebook-mark {
  background: #16a34a;
}
.notebook-text {
  flex: 1;
  min-width: 160px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.notebook-item.done .notebook-text {
  color: #64748b;
  text-decoration: line-through;
}
.notebook-go {
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  background: #16a34a;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}
.notebook-empty {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  padding: 10px 2px;
}

/* Tabs: Yapılacaklar | Günlük Görevler */
.notebook-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px 0;
  flex-shrink: 0;
}
.notebook-tab {
  flex: 1;
  padding: 9px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  font-weight: 800;
  cursor: pointer;
}
.notebook-tab.active {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}
.notebook-body[hidden] {
  display: none;
}
