/* ============ PREMIUM TO-DO LIST & NOTES WIDGET STYLES ============ */

.todo-floating-btn {
  display: none !important;
}

/* Header Dropdown Panel */
.todo-floating-panel {
  position: fixed;
  bottom: 68px;
  right: 24px;
  top: auto;
  width: 380px;
  height: 520px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 85px);
  background: rgba(26, 29, 39, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 998;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.todo-floating-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Panel Header */
.todo-panel-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.todo-panel-title-area {
  display: flex;
  flex-direction: column;
}

/* Panel Tabs */
.todo-panel-tabs {
  display: flex;
  background: rgba(15, 17, 23, 0.5);
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
}

.todo-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.todo-tab:hover {
  color: var(--text-primary);
}

.todo-tab.active {
  color: #06b6d4;
  border-bottom-color: #06b6d4;
}

/* Panel Content Body */
.todo-panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(26, 29, 39, 0.4);
}

/* Tab Page: Yapılacaklar (To-Do List) */
.todo-list-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.todo-add-form {
  padding: 14px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.2);
}

.todo-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: var(--transition);
}

.todo-input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.todo-add-btn {
  background: #06b6d4;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.todo-add-btn:hover {
  background: #0891b2;
}

/* Scrollable items */
.todo-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.todo-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.todo-section-title:first-child {
  margin-top: 0;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: var(--transition);
}

.todo-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.06);
}

.todo-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.todo-checkbox:checked {
  background: #06b6d4;
  border-color: #06b6d4;
}

.todo-checkbox:checked::before {
  content: '✓';
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
}

.todo-text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
  word-break: break-word;
  transition: var(--transition);
}

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

.todo-delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition);
  opacity: 0;
}

.todo-item:hover .todo-delete-btn {
  opacity: 1;
}

.todo-delete-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.todo-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.85rem;
}

.todo-empty-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ============ AJANDAM (DEDICATED AGENDA & DAILY NOTES) STYLES ============ */
.agenda-floating-panel {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) scale(0.97) !important;
  width: min(560px, calc(100vw - 88px)) !important;
  height: min(680px, 84vh) !important;
  max-height: min(680px, 84vh) !important;
  background: var(--bg-secondary, #161b27) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  z-index: 2000 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.agenda-floating-panel.active {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
  pointer-events: auto !important;
}

.agenda-panel-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16) 0%, rgba(168, 85, 247, 0.08) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agenda-panel-title-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agenda-panel-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agenda-header-icon {
  font-size: 1.15rem;
}

.agenda-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--text-heading);
}

.agenda-date-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: #f472b6;
}

.agenda-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.agenda-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.agenda-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Hızlı Araç Çubuğu (Timestamp, Bullet, Checkbox, Copy, Clear) */
.agenda-quick-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(15, 17, 23, 0.45);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.agenda-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.agenda-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.agenda-tool-clear:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* İçerik & Textarea */
.agenda-panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: rgba(26, 29, 39, 0.35);
}

.agenda-notes-textarea {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 16px 18px;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.65;
  resize: none;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.agenda-notes-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Footer & Kayıt Durumu */
.agenda-panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.35);
  font-size: 0.74rem;
}

.agenda-save-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.agenda-save-status.saving {
  color: var(--warning, #f59e0b);
}

.agenda-save-status.saved {
  color: var(--success, #10b981);
}

.agenda-save-status.error {
  color: var(--danger, #ef4444);
}

.agenda-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.agenda-word-count {
  color: var(--text-muted);
}

/* Sayfa Görünümü (.agenda-page-wrapper) */
.agenda-page-wrapper {
  padding: 10px 0;
  max-width: 960px;
  margin: 0 auto;
}

.agenda-page-card {
  background: var(--bg-card, #161b27);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

/* Light Tema Uyumları */
body.light-theme .agenda-floating-panel {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22) !important;
}

body.light-theme .agenda-panel-header {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
}

body.light-theme .agenda-quick-toolbar {
  background: #f8fafc;
}

body.light-theme .agenda-tool-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

body.light-theme .agenda-tool-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

body.light-theme .agenda-panel-content {
  background: #ffffff;
}

body.light-theme .agenda-panel-footer {
  background: #f8fafc;
}

@media (max-width: 600px) {
  .todo-floating-panel {
    bottom: 64px;
    top: auto;
    right: 8px;
    left: 8px;
    width: auto;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 80px);
  }
}

/* Job Tasks Badges & Details */
.todo-job-badge {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.todo-job-badge:hover {
  background: rgba(6, 182, 212, 0.35);
  color: #fff;
}
.todo-blocking-tag {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}
.todo-assignee-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.todo-open-job-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 7px;
  transition: var(--transition);
}
.todo-open-job-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #06b6d4;
}

