/*****************************************************
 * SHARED PANEL CONTAINER
 *****************************************************/
.timer-panel {
  position: fixed;
  left: 240px;
  top: 80px;
  width: 340px;
  max-height: 82vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  animation: panelFadeIn 0.16s ease-out;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.timer-panel.hidden {
  display: none;
}

/*****************************************************
 * PANEL HEADER
 *****************************************************/
.timer-panel-header {
  background: #ffffff;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timer-close-btn {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.timer-close-btn:hover {
  opacity: 0.9;
}

/*****************************************************
 * NEW ENTRY BUTTON
 *****************************************************/
.timer-add-btn {
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-weight: 500;
}

.plus-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef0f4;
  color: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

/*****************************************************
 * LIST PANEL BODY
 *****************************************************/
.timer-panel-body {
  padding: 0;
  overflow-y: auto;
}

.timer-row {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.12s ease;
}

.timer-row:hover {
  background: #f9fafb;
}

/*****************************************************
 * PLAY / PAUSE BUTTON
 *****************************************************/
.timer-play-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
}

.timer-play-icon:hover {
  background: #f3f4f6;
}

/*****************************************************
 * LIST TEXT STYLES
 *****************************************************/
.timer-info {
  flex: 1;
}

.timer-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.timer-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.timer-time {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 10px;
}

/*****************************************************
 * SMALL SUBMIT BUTTON (IN LIST VIEW)
 *****************************************************/
.timer-submit-small {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  margin-left: 12px;
}

.timer-submit-small:hover {
  background: #eef0f3;
}

/*****************************************************
 * DETAIL PANEL STYLES
 *****************************************************/
.timer-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.timer-back-link,
.timer-reset-link {
  color: #5a5f6d;
  font-size: 13px;
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
  padding: 4px 0;
}

.timer-back-link:hover,
.timer-reset-link:hover {
  text-decoration: underline;
}

/*****************************************************
 * LARGE TIMER DISPLAY
 *****************************************************/
.timer-large {
  padding: 20px 0;
  text-align: center;
}

.timer-large-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.timer-large-btn:hover {
  background: #f3f4f6;
}

.timer-large-time {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 600;
  color: #111827;
}

/*****************************************************
 * FORM FIELDS
 *****************************************************/
.timer-field-group {
  margin: 16px 18px;
}

.timer-field-group label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.timer-field-group select,
.timer-field-group textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 14px;
}

.timer-field-group textarea {
  resize: vertical;
}

/*****************************************************
 * ROW OF TWO FIELDS (PHASE + TASK)
 *****************************************************/
.timer-field-row {
  display: flex;
  gap: 10px;
  margin: 16px 18px;
}

/*****************************************************
 * FOOTER ACTIONS
 *****************************************************/
.timer-detail-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px;
  gap: 12px;
}

.timer-cancel-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid #d1d5db;
  cursor: pointer;
  font-size: 13px;
}

.timer-submit-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: #7c3aed;
  border: none;
  color: white;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.timer-submit-btn:hover {
  background: #6d28d9;
}
