/* Schedule Task List Layout */
.go-schedule-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.go-schedule-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border-soft, #dee0e3);
  border-radius: 12px;
  background: var(--surface, #ffffff);
  box-shadow: 0 1px 3px rgba(31, 35, 41, 0.04);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.go-schedule-card:hover {
  border-color: #c9dafd;
  box-shadow: 0 4px 16px rgba(30, 111, 255, 0.08);
}

.schedule-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.schedule-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #1f2329);
}

.schedule-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-soft, #eaf2ff);
  color: var(--primary, #1e6fff);
}

.schedule-badge.once {
  background: #f3f4f6;
  color: #4b5563;
}

.schedule-badge.daily {
  background: #e6f7f1;
  color: #00a870;
}

.schedule-badge.weekly {
  background: #fef3e6;
  color: #e68a00;
}

.schedule-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.schedule-card-actions .button.small {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.button.danger-subtle {
  background: #fff0f1;
  color: #c34f5c;
  border: 1px solid #ffd4d8;
}

.button.danger-subtle:hover {
  background: #ffe3e6;
  border-color: #fca5a5;
}

.schedule-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-card-text {
  margin: 0;
  color: var(--text-secondary, #646a73);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.schedule-card-image-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  width: fit-content;
  border: 1px solid var(--border-soft, #dee0e3);
  border-radius: 8px;
  background: var(--surface-soft, #f8f9fa);
  font-size: 11px;
  color: var(--text-secondary, #646a73);
}

.schedule-card-image-chip img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.schedule-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft, #f0f2f5);
  font-size: 12px;
  color: var(--text-tertiary, #8f959e);
  flex-wrap: wrap;
}

.schedule-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.schedule-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.schedule-meta-item svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-meta-result {
  color: var(--text-secondary, #646a73);
  font-size: 11px;
}

/* Empty State */
.schedule-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: var(--surface, #ffffff);
  border: 1px dashed var(--border, #dee0e3);
  border-radius: 14px;
}

.schedule-empty-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-soft, #f2f3f5);
  color: var(--text-tertiary, #8f959e);
  margin-bottom: 14px;
}

.schedule-empty-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-tertiary, #8f959e);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-empty-state h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text, #1f2329);
}

.schedule-empty-state p {
  margin: 0 0 18px;
  color: var(--text-tertiary, #8f959e);
  font-size: 13px;
}

/* Modal Card Styles */
.schedule-modal-card {
  width: min(720px, calc(100vw - 32px));
  max-height: min(840px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
}

.schedule-modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.schedule-modal-body {
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.schedule-modal-body textarea {
  width: 100%;
  resize: vertical;
}

/* Weekday Pills */
.schedule-weekdays-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--surface-soft, #f8f9fa);
  border: 1px solid var(--border-soft, #eff0f1);
  border-radius: 10px;
}

.schedule-picker-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text, #1f2329);
}

.weekday-pill-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.weekday-pill {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.weekday-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.weekday-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border, #dee0e3);
  border-radius: 8px;
  background: var(--surface, #ffffff);
  color: var(--text-secondary, #646a73);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.weekday-pill:hover span {
  border-color: #c9dafd;
  background: var(--primary-soft, #eaf2ff);
  color: var(--primary, #1e6fff);
}

.weekday-pill input:checked + span {
  background: var(--primary, #1e6fff);
  border-color: var(--primary, #1e6fff);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(30, 111, 255, 0.28);
}

/* Groups Selection Grid */
.schedule-groups-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border, #dee0e3);
  border-radius: 10px;
  background: #fafbfc;
}

.schedule-groups-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-groups-quick {
  display: flex;
  gap: 10px;
}

.text-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary, #1e6fff);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.text-button:hover {
  text-decoration: underline;
}

.schedule-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 2px;
}

.schedule-group-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-soft, #dee0e3);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text, #1f2329);
  transition: all 0.15s ease;
  overflow: hidden;
}

.schedule-group-grid label:hover {
  border-color: #c9dafd;
  background: #f4f8ff;
}

.schedule-group-grid label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-group-grid input[type="checkbox"] {
  accent-color: var(--primary, #1e6fff);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Schedule Image Upload & Preview */
.schedule-image-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1.5px dashed var(--border, #cbd5e1);
  border-radius: 12px;
  background: var(--surface-soft, #f8f9fa);
  cursor: pointer;
  transition: border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.schedule-image-dropzone:hover {
  border-color: var(--primary, #1e6fff);
  background-color: #f8faff;
}

.schedule-upload-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-soft, #e2e8f0);
  color: var(--text-secondary, #64748b);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.schedule-image-dropzone:hover .schedule-upload-icon-badge {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary, #1e6fff);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(30, 111, 255, 0.12);
}

.schedule-upload-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.schedule-dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.schedule-dropzone-text strong {
  font-size: 13px;
  color: var(--text, #1f2329);
  font-weight: 600;
}

.schedule-dropzone-text small {
  font-size: 11px;
  color: var(--text-tertiary, #8f959e);
}

.schedule-image-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border-soft, #dee0e3);
  border-radius: 10px;
  background: var(--surface, #ffffff);
}

.schedule-image-preview img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-soft, #dee0e3);
  flex-shrink: 0;
}

.schedule-image-preview-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.schedule-image-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #1f2329);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-image-preview-actions {
  display: flex;
  gap: 6px;
}
