/* Temiz ve tam uyumlu ana layout */
html, body {
  height: 100%;
  min-height: 100vh;
  max-width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f6f9;
}

.main-layout {
  display: flex;
  height: 100vh;
  max-width: 100vw;
  overflow: hidden;
}

.sidebar-container {
  width: 30%;
  min-width: 280px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: visible;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.5rem 1rem 0.5rem;
  margin: 0.5rem 0 0.5rem 0.5rem;
  box-sizing: border-box;
  gap: 0.75rem;
}

/* Sidebar Section Styles */
.sidebar-section {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-header {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #374151;
}

.section-content {
  padding: 1rem;
}

/* User Info Section */
.user-info-section {
  flex-shrink: 0;
  height: 10%;
  min-height: 80px;
  overflow: visible;
}

.user-info-section .sidebar-topbar {
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* Folder Management */
.folder-management {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Task Section */
.task-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  height: 50%;
}

.task-section .section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  min-height: 0;
  overflow: hidden;
}

/* Zen Quotes Section */
.zen-quotes-section {
  flex-shrink: 0;
  height: 15%;
  min-height: 80px;
  max-height: 120px;
  margin-bottom: 0.5rem;
}

.zen-quotes-section .zen-quotes-container {
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
}



.calendar-container {
  flex: 1;
  width: 70%;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.calendar-container > #calendar {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#calendar .fc {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

#calendar .fc-scroller,
#calendar .fc-daygrid-body,
#calendar .fc-daygrid-body-natural {
  flex: 1 1 0%;
  height: 100% !important;
  min-height: 0;
  overflow-y: auto;
}

.calendar-panel {
  flex: 1;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  max-width: 100vw;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

#logout-btn {
  background: #ef4444;
  color: #fff;
  padding: 8px 18px;
  border: none;
  border-radius: 7px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.15s;
}
#logout-btn:hover {
  background: #b91c1c;
}

#folder-delete-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

#folder-delete-btn.show {
  display: block;
}

#folder-delete-btn:hover {
  background-color: #fee2e2;
}

#folder-share-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

#folder-share-btn.show {
  display: block;
}

#folder-share-btn:hover {
  background-color: #dbeafe;
}

#external-events {
  min-height: 150px;
  padding: 10px;
  background: #f7f9fc;
  border: 1px dashed #ccc;
  border-radius: 4px;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fc-event {
  margin: 5px 0;
  padding: 5px 10px;
  background-color: #3788d8;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.add-task {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  align-items: center;
}
.add-task .color-box {
  align-self: center;
  margin: 0 0.5rem 0 0;
  vertical-align: middle;
}
.add-task input {
  flex: 1;
  padding: 0.5rem;
  font-size: 14px;
}
.add-task button {
  padding: 0.5rem 1rem;
  font-size: 14px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.add-task button:hover {
  background-color: #218838;
}

.color-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #2563eb;
  cursor: pointer;
  display: inline-block;
  margin-right: 8px;
  transition: border 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.color-box:focus, .color-box:hover {
  border: 2.5px solid #111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  outline: none;
  transform: scale(1.08);
}

.color-popover {
  display: none;
  position: absolute;
  z-index: 1001;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  padding: 10px 12px;
  margin-top: 6px;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 180px;
  min-height: 40px;
  flex-direction: row;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
.color-popover.show {
  display: flex;
}
.color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  outline: none;
  cursor: pointer;
  transition: transform 0.1s, border 0.1s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 0;
}
.color-btn.selected {
  border: 3px solid #111;
  transform: scale(1.15);
}
.color-btn:hover {
  border: 2px solid #111;
  transform: scale(1.1);
}
.color-btn[data-color="#2563eb"] { background: #2563eb; }
.color-btn[data-color="#22c55e"] { background: #22c55e; }
.color-btn[data-color="#f59e42"] { background: #f59e42; }
.color-btn[data-color="#eab308"] { background: #eab308; }
.color-btn[data-color="#ef4444"] { background: #ef4444; }
.color-btn[data-color="#a21caf"] { background: #a21caf; }
.color-btn[data-color="#64748b"] { background: #64748b; }

.context-menu {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 150px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
.context-menu.hidden {
  display: none !important;
}
.context-menu li {
  padding: 10px;
  cursor: pointer;
}
.context-menu li:hover {
  background-color: #f2f2f2;
}

/* Modal ve içerik stilleri */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}
.modal-content h3 {
  margin: 0;
  text-align: center;
  margin-bottom: 0.5rem;
}
.modal-content input,
.modal-content textarea {
  padding: 0.75rem;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.modal-content button {
  padding: 0.75rem;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.modal-content button:hover {
  background-color: #0056b3;
}
.modal-actions {
  display: flex;
  gap: 1rem;
}
#delete-note-btn {
  background-color: #dc3545;
}
#delete-note-btn:hover {
  background-color: #c82333;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}
.close-btn:hover {
  color: #333;
}

.fc-event.has-note .fc-event-title::after {
  content: ' 📝';
  margin-left: 5px;
  cursor: pointer;
}

.fc-event.completed {
  text-decoration: line-through;
  opacity: 0.7;
}

.fc-event.completed .fc-event-title {
  text-decoration: line-through;
}

/* Liste Görünümü Özel Stilleri - Çok Yüksek Öncelik */
.fc-list-view *,
.fc-list-view .fc-list-event,
.fc-list-view .fc-list-event *,
.fc .fc-list-view *,
.fc .fc-list-view .fc-list-event,
.fc .fc-list-view .fc-list-event * {
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  margin: 4px 0 !important;
  padding: 12px 16px !important;
  transition: all 0.2s ease !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}

.fc-list-view *:hover,
.fc-list-view .fc-list-event:hover,
.fc-list-view .fc-list-event:hover *,
.fc .fc-list-view *:hover,
.fc .fc-list-view .fc-list-event:hover,
.fc .fc-list-view .fc-list-event:hover * {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
}





.edit-modal-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.edit-modal-group label {
  font-size: 1rem;
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}
#edit-input, #edit-folder-select {
  font-size: 1rem;
  padding: 0.8rem;
  border-radius: 7px;
  border: 1px solid #ccc;
}

.modern-edit-modal {
  padding: 2.2rem 2rem 1.5rem 2rem;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: stretch;
  min-width: 280px;
  max-width: 420px;
}

.modern-folder-modal {
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: stretch;
  min-width: 240px;
  max-width: 340px;
}

.modern-save-btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 9px;
  background: linear-gradient(90deg, #2563eb 60%, #22c55e 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.modern-save-btn:hover {
  background: linear-gradient(90deg, #1746a2 60%, #15803d 100%);
  box-shadow: 0 4px 16px rgba(37,99,235,0.13);
}

/* Settings Modal Styles */
.modern-settings-modal {
  max-width: 500px;
  width: 90vw;
}

.settings-section {
  margin-bottom: 1.5rem;
}

.settings-section h4 {
  color: #374151;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.settings-group {
  margin-bottom: 1rem;
}

.settings-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
  font-size: 0.9rem;
}

.settings-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.settings-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.settings-group input[type="password"] {
  font-family: monospace;
}



/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.toast.error {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.toast.info {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.toast.warning {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  background: #10b981;
  color: white;
}

.toast.error .toast-icon {
  background: #ef4444;
  color: white;
}

.toast.info .toast-icon {
  background: #3b82f6;
  color: white;
}

.toast.warning .toast-icon {
  background: #f59e0b;
  color: white;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.4;
}

.toast-message {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 16px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  color: #6b7280;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #e5e7eb;
  transition: width 0.1s linear;
}

.toast.success .toast-progress {
  background: #10b981;
}

.toast.error .toast-progress {
  background: #ef4444;
}

.toast.info .toast-progress {
  background: #3b82f6;
}

.toast.warning .toast-progress {
  background: #f59e0b;
}



#edit-task-color-box {
  background: #2563eb;
  margin-top: 8px;
  width: 38px;
  height: 38px;
  margin-bottom: 0.5rem;
}
#edit-task-color-popover .color-btn {
  width: 38px;
  height: 38px;
  margin: 0 6px 6px 0;
}

#add-folder-error {
  color: #dc3545;
  min-height: 24px;
  font-size: 15px;
}
#add-folder-cancel-btn {
  background: #64748b;
  color: #fff;
  margin-top: 0.5rem;
  border-radius: 7px;
  border: none;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
}
#add-folder-cancel-btn:hover {
  background: #334155;
}

.modern-dropdown {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-bottom: 12px;
  font-size: 1rem;
  z-index: 20;
}
.modern-dropdown-selected {
  background: #fff;
  border: 1.5px solid #2563eb;
  border-radius: 10px;
  padding: 0.85rem 1.2rem 0.85rem 1.2rem;
  box-shadow: 0 2px 8px rgba(37,99,235,0.07);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  color: #222;
  transition: border 0.15s;
}
.modern-dropdown-selected:hover, .modern-dropdown.open .modern-dropdown-selected {
  border: 2px solid #1746a2;
}
.modern-dropdown-arrow {
  margin-left: 10px;
  font-size: 1.2em;
  color: #2563eb;
  transition: transform 0.2s;
}
.modern-dropdown.open .modern-dropdown-arrow {
  transform: rotate(180deg);
}
.modern-dropdown-list {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  min-width: 100%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.13);
  margin: 0;
  padding: 0.3rem 0;
  z-index: 30;
  max-height: 260px;
  overflow-y: auto;
  border: 1.5px solid #2563eb;
  box-sizing: border-box;
}
.modern-dropdown-item {
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  color: #222;
  font-size: 1rem;
  background: none;
  border: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: left;
  transition: background 0.13s, color 0.13s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modern-dropdown-item.selected {
  background: #2563eb;
  color: #fff;
}
.modern-dropdown-item:hover {
  background: #e0e7ff;
  color: #1746a2;
}
.modern-dropdown-item.add {
  color: #22c55e;
  font-weight: 600;
}

/* Paylaşılan klasör stilleri */
.modern-dropdown-item.shared-by-me {
  border-left: 3px solid #10b981;
  background-color: #ecfdf5;
  position: relative;
}

.modern-dropdown-item.shared-by-me::before {
  content: '📤';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

/* Paylaşılmış klasör stilleri */
.modern-dropdown-item.shared-with-me {
  border-left: 3px solid #10b981;
  background-color: #ecfdf5;
  position: relative;
}

.modern-dropdown-item.shared-with-me::before {
  content: '📥';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

/* Paylaşılan klasör hover efektleri */
.modern-dropdown-item.shared-by-me:hover {
  background-color: #d1fae5;
}

.modern-dropdown-item.shared-with-me:hover {
  background-color: #d1fae5;
}

/* Seçili paylaşılmış klasörlerin okunabilirliği */
.modern-dropdown-item.shared-with-me.selected {
  background: #10b981;
  color: #fff;
  border-left-color: #fff;
}

.modern-dropdown-item.shared-with-me.selected::before {
  color: #fff;
}

.modern-dropdown-item.shared-by-me.selected {
  background: #10b981;
  color: #fff;
  border-left-color: #fff;
}

.modern-dropdown-item.shared-by-me.selected::before {
  color: #fff;
}
.modern-dropdown-delete {
  margin-left: auto;
  color: #ef4444;
  font-size: 1.1em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.2em;
  transition: color 0.15s;
  flex-shrink: 0;
  align-self: center;
}
.modern-dropdown-delete:hover {
  color: #b91c1c;
}








#folder-delete-modal .modal-content {
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: stretch;
  min-width: 240px;
  max-width: 340px;
}
#folder-delete-modal h3 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
#folder-delete-modal p {
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  margin-top: 0.2rem;
}
#folder-delete-modal .modal-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 0.5rem;
}
#folder-delete-modal button {
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.15s, color 0.15s;
}
#folder-delete-cancel {
  background: #64748b;
  color: #fff;
}
#folder-delete-cancel:hover {
  background: #334155;
}
#folder-delete-only {
  background: #fbbf24;
  color: #fff;
}
#folder-delete-only:hover {
  background: #f59e42;
}
#folder-delete-all {
  background: #ef4444;
  color: #fff;
}
#folder-delete-all:hover {
  background-color: #dc2626;
  color: white;
}

/* Folder Share Modal Styles */
#folder-share-modal .modal-content {
  max-width: 400px;
  width: 90%;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#folder-share-modal h3 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 600;
}

#folder-share-modal p {
  margin: 0 0 1rem 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

.share-form {
  margin-bottom: 1rem;
}

#share-email-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#share-email-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.error-message {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  display: none;
}

.success-message {
  color: #059669;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  display: none;
}

#share-folder-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

#share-folder-btn:hover {
  background-color: #2563eb;
}

#share-cancel-btn {
  background-color: #f3f4f6;
  color: #374151;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

#share-cancel-btn:hover {
  background-color: #e5e7eb;
}

/* Paylaşılan Kişiler Listesi Stilleri */
.shared-users-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.shared-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.shared-users-section h4 {
  margin: 0;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 600;
}

.remove-all-shares-btn {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-all-shares-btn:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
}

.shared-users-list {
  max-height: 200px;
  overflow-y: auto;
}

.shared-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: border-color 0.2s;
}

.shared-user-item:hover {
  border-color: #d1d5db;
}

.shared-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shared-user-avatar {
  width: 24px;
  height: 24px;
  background-color: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.shared-user-details {
  display: flex;
  flex-direction: column;
}

.shared-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.shared-user-email {
  font-size: 0.75rem;
  color: #6b7280;
}

.shared-user-date {
  font-size: 0.75rem;
  color: #9ca3af;
}

.remove-share-btn {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-share-btn:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
}

.no-shared-users {
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  padding: 1rem;
  font-style: italic;
}

#new-task-input {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  background: #fff;
  box-sizing: border-box;
  transition: border 0.18s, box-shadow 0.18s;
  outline: none;
  margin-bottom: 0;
}
#new-task-input:focus {
  border: 2px solid #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}

.sidebar-topbar {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0.6rem 0.7rem;
  border-radius: 11px;
  margin-bottom: 0;
  gap: 0.5rem;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(37,99,235,0.03);
  border: 1px solid #e5e7eb;
  min-height: auto;
  overflow: visible;
}

.user-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.user-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.sidebar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.sidebar-settings-btn {
  font-size: 1.2rem;
  padding: 0.4rem;
  border-radius: 6px;
  background: #f3f4f6;
  color: #6b7280;
  border: 1.1px solid #d1d5db;
  cursor: pointer;
  font-weight: 500;
  box-shadow: none;
  transition: background 0.13s, color 0.13s, border 0.13s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
}

.sidebar-settings-btn:hover, .sidebar-settings-btn:focus {
  background: #e5e7eb;
  color: #374151;
  border-color: #9ca3af;
}

/* Settings Dropdown Styles */
.settings-dropdown {
  position: relative;
  display: inline-block;
}

.settings-dropdown-menu {
  position: absolute;
  top: 100%;
  right: -20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid #e5e7eb;
  min-width: 200px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  margin-top: 8px;
  overflow: hidden;
  display: block;
  white-space: nowrap;
}

.settings-dropdown.open .settings-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}



.settings-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.settings-dropdown-item:last-child {
  border-bottom: none;
}

.settings-dropdown-item:hover {
  background: #f8fafc;
  color: #2563eb;
}

.settings-dropdown-item#logout-btn:hover {
  background: #fef2f2;
  color: #ef4444;
}

.settings-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
#user-name {
  font-weight: 500;
  color: #2563eb; /* Blue */
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  flex-shrink: 0;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#current-datetime {
  color: #111827; /* Black */
  font-size: 0.9rem;
  font-family: 'Segoe UI Mono', 'Consolas', monospace;
  font-weight: 600;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-logout-btn {
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: #f3f4f6;
  color: #ef4444;
  border: 1.1px solid #ef4444;
  cursor: pointer;
  font-weight: 500;
  box-shadow: none;
  transition: background 0.13s, color 0.13s, border 0.13s;
  outline: none;
  margin-left: 0.3rem;
  flex-shrink: 0;
}
.sidebar-logout-btn:hover, .sidebar-logout-btn:focus {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}



/* ZenQuotes Container Styles */
.zen-quotes-container {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow: hidden;
  padding: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

.zen-quotes-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.zen-quotes-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
  flex-shrink: 0;
}

.zen-quotes-icon {
  font-size: 1.1rem;
}

.zen-quotes-title {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zen-quotes-content {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.1rem 0;
}

#zen-quote-text {
  font-size: clamp(0.5rem, 3cqh, 1.2rem);
  line-height: 1.2;
  margin: 0 0 0.2rem 0;
  font-style: italic;
  opacity: 0.95;
  quotes: """ """;
  word-break: break-word;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#zen-quote-text::before {
  content: open-quote;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 0.25rem;
}

#zen-quote-text::after {
  content: close-quote;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 0.25rem;
}

#zen-quote-author {
  font-size: clamp(0.3rem, 1.5cqh, 0.8rem);
  opacity: 0.8;
  font-style: normal;
  display: block;
  margin: 0;
  text-align: center;
  width: 100%;
  overflow: hidden;
  line-height: 1;
}

/* Loading animation */
.zen-quotes-container.loading #zen-quote-text {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Responsive design for ZenQuotes */


#task-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}



.add-task {
  margin-bottom: 1rem;
}

/* Takvim Header Stilleri */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.view-buttons {
  display: flex;
  gap: 0.25rem;
}

.view-btn {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

.view-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.view-btn.active:hover {
  background: #1d4ed8;
}


