/* ============================================================
   TASK BUBBLE — CONTAINER, FIELDS, COMMENTS, TIME TRACKER
   ============================================================ */

/* CONTAINER */
.task-bubble {
  width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin: 60px auto;
  box-shadow: var(--shadow-4);
  animation: bubbleIn 0.25s ease;
  position: relative;
}

/* HEADER */
.task-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-bubble-close {
  background: none;
  border: none;
  font-size: var(--font-xl);
  cursor: pointer;
  opacity: 0.5;
  transition: 0.2s ease;
}

.task-bubble-close:hover {
  opacity: 1;
}

/* TYPE PILL */
.task-type-pill {
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  font-size: var(--font-xs);
  font-weight: var(--weight-semibold);
  color: #fff;
}

.task-type-pill.design { background: var(--task-design); }
.task-type-pill.bug { background: var(--task-bug); }
.task-type-pill.content { background: var(--task-content); }
.task-type-pill.research { background: var(--task-research); }

/* TITLE INPUT */
.task-title-input {
  width: 100%;
  font-size: var(--font-xl);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-5);
  border: none;
  outline: none;
}

/* DESCRIPTION */
.task-desc-input {
  width: 100%;
  height: 80px;
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-dark);
  resize: none;
  font-size: var(--font-md);
}

/* ROWS */
.task-row {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.task-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.task-field label {
  font-size: var(--font-sm);
  color: var(--color-text-muted);
}

.task-field select,
.task-field input {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-dark);
  font-size: var(--font-md);
}

/* SECTIONS */
.task-section {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.section-label {
  font-size: var(--font-md);
  font-weight: var(--weight-semibold);
}

/* ============================================================
   COMMENTS
   ============================================================ */

.comments-box {
  background: var(--color-surface-alt);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  min-height: 60px;
  max-height: 80px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.comments-box::-webkit-scrollbar {
  width: 6px;
}

.comments-box::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.comment-header {
  font-size: var(--font-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
  display: flex;
  justify-content: space-between;
}

.comment-author {
  font-weight: var(--weight-semibold);
}

.comment-input {
  width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-dark);
  resize: none;
}

/* ============================================================
   ACTIVITY
   ============================================================ */

.activity-list {
  background: var(--color-surface-alt);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
}

.activity-item {
  font-size: var(--font-sm);
  padding: var(--space-1) 0;
  color: var(--color-text-muted);
}

/* ============================================================
   TIME TRACKER
   ============================================================ */

.time-tracker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface-alt);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  gap: var(--space-6);
}

/* LEFT SIDE */
.time-session {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
}

.time-display {
  font-size: var(--font-lg);
  font-weight: var(--weight-medium);
}

/* RIGHT SIDE */
.time-total {
  text-align: right;
  flex: 1;
}

.total-label {
  font-size: var(--font-xs);
  opacity: 0.6;
  margin-bottom: 2px;
}

.total-time-display {
  font-size: var(--font-lg);
  font-weight: var(--weight-semibold);
}

.time-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* ============================================================
   DELETE TASK BUTTON
   ============================================================ */

.delete-task-btn {
  width: 100%;
  padding: var(--space-4);
  margin-top: var(--space-5);
  background: var(--color-red);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-lg);
  cursor: pointer;
  transition: 0.2s ease;
}

.delete-task-btn:hover {
  background: #e63939;
}

/* ============================================================
   ANIMATION
   ============================================================ */

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
