/* ══════════════════════════════════════════════════════════════
   Alasta v5.17.T170 — Pulpit Notatek (Desktop Notepad)
   ══════════════════════════════════════════════════════════════ */

/* ── Widok pulpitu ─────────────────────────────────────────── */
#view-desktop {
  display: none;
  flex-direction: column;
  height: 100%;
  background: #f8fafc;
  overflow: hidden;
}
#view-desktop.active {
  display: flex;
}

/* ── Nagłówek ──────────────────────────────────────────────── */
.t170-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.t170-header-icon {
  font-size: 22px;
  line-height: 1;
}
.t170-header-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.t170-header-meta {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 400;
}
.t170-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Toolbar ───────────────────────────────────────────────── */
.t170-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
}
.t170-toolbar-btn {
  padding: 4px 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.t170-toolbar-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.t170-toolbar-btn.danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.t170-toolbar-sep {
  width: 1px;
  height: 18px;
  background: #e2e8f0;
  margin: 0 2px;
}
.t170-save-indicator {
  margin-left: auto;
  font-size: 11.5px;
  color: #94a3b8;
  transition: opacity 0.3s;
}
.t170-save-indicator.saving { color: #f59e0b; }
.t170-save-indicator.saved  { color: #22c55e; }

/* ── Obszar notatek ────────────────────────────────────────── */
.t170-note-area {
  flex: 1;
  overflow: hidden;
  display: flex;
  padding: 24px;
  gap: 0;
}

/* Główny textarea ─────────────────────────────────────────── */
.t170-textarea {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 20px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #0f172a;
  resize: none;
  outline: none;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.t170-textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.10), 0 1px 8px rgba(0,0,0,0.04);
}
.t170-textarea::placeholder {
  color: #cbd5e1;
  font-style: italic;
}

/* ── Stopka ────────────────────────────────────────────────── */
.t170-footer {
  flex-shrink: 0;
  padding: 8px 24px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}
.t170-footer-stat {
  font-size: 11.5px;
  color: #94a3b8;
}
.t170-footer-stat span {
  font-weight: 600;
  color: #64748b;
}

/* ── Logo — podświetlenie przy hover gdy prowadzi do notatek ─ */
.brand-logo-wrap {
  cursor: pointer;
  border-radius: 10px;
  padding: 4px 6px;
  margin: -4px -6px;
  transition: background 0.15s;
}
.brand-logo-wrap:hover {
  background: rgba(99,102,241,0.07);
}
.brand-logo-wrap:hover .brand-name {
  color: #4f46e5;
}
.brand-logo-wrap:active {
  background: rgba(99,102,241,0.13);
}

/* ── Tooltip pod logo (pojawia się gdy kursor na logo) ──────── */
.brand-logo-wrap::after {
  content: 'Notatki';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -26px;
  background: #1e293b;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
}
.brand-logo-wrap:hover::after {
  opacity: 1;
}
