/* ============ PRIVATE ROOM ============ */
.private-view {
  padding: 16px 24px 60px;
  min-height: 400px;
}

.dropdown-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  margin-left: auto;
}

.private-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.private-tab {
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.private-tab:hover { color: var(--text); }
.private-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.private-pane { min-height: 300px; }

/* Tasks Toolbar */
.private-tasks-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
#priv-task-search {
  flex: 1;
  min-width: 200px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}
#priv-task-search:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.12);
}
#priv-show-done-wrap { cursor: pointer; }
#priv-show-done-wrap input { cursor: pointer; }
.private-tasks-toolbar .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
}

/* Tasks List */
.priv-tasks-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.priv-task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.priv-task-row:hover { background: var(--surface-alt); }
.priv-task-row:last-child { border-bottom: none; }
.priv-task-row.done { opacity: 0.55; }
.priv-task-row.done .priv-task-title { text-decoration: line-through; color: var(--text-muted); }
.priv-task-row.unseen {
  background: linear-gradient(90deg, rgba(59,130,246,0.06) 0%, transparent 60%);
  border-left: 3px solid var(--primary);
  padding-left: 13px;
}

.priv-task-info { flex: 1; min-width: 0; }
.priv-task-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.priv-task-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.priv-task-badge {
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--text-muted);
}
.priv-task-badge.updates { background: var(--info-bg); color: var(--info); }
.priv-task-badge.working { background: var(--warning-bg); color: var(--warning); }
.priv-task-badge.unseen-badge { background: var(--danger); color: white; }
.priv-task-assignee-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Daily Log */
.priv-daily-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.priv-daily-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.priv-daily-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  flex-wrap: wrap;
}
.priv-daily-author {
  font-weight: 700;
  color: var(--primary);
}
.priv-daily-task {
  color: var(--text-muted);
  cursor: pointer;
}
.priv-daily-task:hover { color: var(--text); text-decoration: underline; }
.priv-daily-date {
  color: var(--text-light);
  margin-left: auto;
  font-size: 11px;
}
.priv-daily-status {
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}
.priv-daily-status.working { background: var(--warning-bg); color: var(--warning); }
.priv-daily-status.done { background: var(--success-bg); color: var(--success); }
.priv-daily-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.priv-daily-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 6px 0; display: block; }
.priv-daily-body p { margin: 0 0 6px; }
.priv-daily-body ul, .priv-daily-body ol { margin: 4px 0 6px; padding-left: 22px; }

/* Modal */
.priv-modal-header {
  padding: 22px 26px 12px;
  border-bottom: 1px solid var(--border);
}
.priv-task-title-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  padding: 4px;
  background: transparent;
  font-family: inherit;
  box-sizing: border-box;
}
.priv-task-title-input:focus {
  background: var(--surface-alt);
  border-radius: 4px;
}
.priv-task-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.priv-modal-body {
  padding: 18px 26px;
  overflow-y: auto;
  flex: 1;
}
.priv-modal-footer {
  padding: 12px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--surface-alt);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Updates section */
.priv-updates-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.priv-updates-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.priv-updates-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 340px;
  overflow-y: auto;
}
.priv-update {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.priv-update-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}
.priv-update-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 12px;
}
.priv-update-date {
  color: var(--text-muted);
}
.priv-update-status-pill {
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}
.priv-update-status-pill.working { background: var(--warning-bg); color: var(--warning); }
.priv-update-status-pill.done { background: var(--success-bg); color: var(--success); }
.priv-update-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.priv-update-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 4px 0; display: block; }
.priv-update-body p { margin: 0 0 6px; }
.priv-update-body ul, .priv-update-body ol { margin: 4px 0 6px; padding-left: 22px; }

.priv-add-update {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 12px;
}
.priv-add-update-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.priv-update-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.priv-update-date-info {
  flex: 1;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 100px;
}
.priv-update-actions button {
  padding: 7px 14px;
  font-size: 12px;
}

/* Calendar (Ira's activity tracking) */
.priv-calendar-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.priv-cal-nav {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.priv-cal-nav:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.priv-calendar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  min-width: 180px;
  text-align: center;
}
.priv-calendar-stats {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-alt);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.priv-calendar-stats strong { color: var(--text); }

.priv-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}
.priv-cal-day-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 6px 0;
}
.priv-cal-day {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  min-height: 60px;
}
.priv-cal-day:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.priv-cal-day.empty {
  visibility: hidden;
  cursor: default;
}
.priv-cal-day.today {
  border-color: var(--primary);
  border-width: 2px;
}
.priv-cal-day.level-0 { background: var(--surface); }
.priv-cal-day.level-1 { background: #E6F4E6; }
.priv-cal-day.level-2 { background: #B7E4B7; }
.priv-cal-day.level-3 { background: #6FBF6F; }
.priv-cal-day.level-4 { background: #2E8B2E; color: white; }
.priv-cal-day.level-4 .priv-cal-day-count { color: white; }
.priv-cal-day.level-4 .priv-cal-day-num { color: white; }
.priv-cal-day.level-3 .priv-cal-day-count { color: #0d3d0d; }

.priv-cal-day-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.priv-cal-day-count {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.priv-cal-day-count.zero { visibility: hidden; }

.priv-calendar-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  justify-content: flex-end;
}
.priv-cal-legend-label { margin-right: 4px; }
.priv-cal-legend-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.priv-cal-legend-cell.level-0 { background: var(--surface); }
.priv-cal-legend-cell.level-1 { background: #E6F4E6; }
.priv-cal-legend-cell.level-2 { background: #B7E4B7; }
.priv-cal-legend-cell.level-3 { background: #6FBF6F; }
.priv-cal-legend-cell.level-4 { background: #2E8B2E; }
.priv-cal-legend-hint { margin-left: 4px; }

/* Day detail panel (slide-in from right) */
.priv-day-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
  animation: fadeIn 0.15s;
}
.priv-day-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.2s ease-out;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.priv-day-panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.priv-day-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.priv-day-panel-close {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  border-radius: 4px;
}
.priv-day-panel-close:hover {
  color: var(--text);
  background: var(--surface-alt);
}
.priv-day-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}
.priv-day-entry {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.priv-day-entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.priv-day-entry-task {
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
}
.priv-day-entry-task:hover { text-decoration: underline; }
.priv-day-entry-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}
.priv-day-entry-body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.priv-day-entry-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 4px 0;
  display: block;
}
.priv-day-entry-body p { margin: 0 0 6px; }
.priv-day-entry-body ul, .priv-day-entry-body ol { margin: 4px 0 6px; padding-left: 22px; }
.priv-day-empty {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 40px 20px;
  font-style: italic;
}

/* Delete button style */
.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid transparent;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  margin-right: auto;
}
.btn-danger:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

@media (max-width: 700px) {
  .private-view { padding: 12px 14px 60px; }
  .priv-modal-body, .priv-modal-header, .priv-modal-footer { padding-left: 16px; padding-right: 16px; }
  .priv-calendar-header { gap: 8px; }
  .priv-calendar-title { min-width: 120px; font-size: 15px; }
  .priv-calendar-stats { margin-left: 0; width: 100%; text-align: center; }
  .priv-cal-day { min-height: 50px; padding: 4px; }
  .priv-cal-day-num { font-size: 12px; }
  .priv-day-panel { max-width: 100%; }
}

