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

.todo-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 92px; /* Placed exactly next to the chat button (right: 24px + 56px + 12px) */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); /* Vibrant cyan/blue gradient */
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.todo-floating-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.55);
}

.todo-floating-btn:active {
  transform: scale(0.95);
}

/* Floating Panel matching chat panel style */
.todo-floating-panel {
  position: fixed;
  bottom: 92px;
  right: 92px;
  width: 380px;
  height: 520px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 120px);
  background: rgba(26, 29, 39, 0.9);
  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(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s 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;
}

/* Tab Page: Günlük Notlar (Daily Notes) */
.todo-notes-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.todo-notes-textarea {
  flex: 1;
  background: rgba(15, 17, 23, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: var(--transition);
}

.todo-notes-textarea:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}

.todo-notes-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.75rem;
}

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

.todo-save-status.saving {
  color: var(--warning);
}

.todo-save-status.saved {
  color: var(--success);
}

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

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