/* Container */
.hermes-settings-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Master Control Hero Card Active Hover & Color */
.hermes-hero-card.active {
  border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.25);
  background: linear-gradient(180deg, #ffffff 0%, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.02) 100%);
  box-shadow: 0 1px 3px rgba(var(--theme-primary-rgb, 58, 124, 165), 0.01), 0 8px 24px rgba(var(--theme-primary-rgb, 58, 124, 165), 0.05);
}

.hermes-hero-card .model-icon-box {
  position: relative;
}

.hermes-hero-card .model-icon-box.active {
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
  border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), 0.18);
}

/* Pulse Dot */
.status-pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: #cbd5e1;
  border: 2px solid #ffffff;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.status-pulse-dot.active {
  background-color: var(--theme-primary);
  animation: pulse-ring 1.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--theme-primary-rgb, 58, 124, 165), 0.36);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(var(--theme-primary-rgb, 58, 124, 165), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--theme-primary-rgb, 58, 124, 165), 0);
  }
}

.status-badge {
  padding: 6px 12px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.status-badge.active {
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

/* Task Section */
.hermes-tasks-section.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Tasks Grid */
.hermes-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Task Card */
.hermes-task-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01), 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hermes-task-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.01), 0 10px 20px rgba(15, 23, 42, 0.04);
}

.task-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.task-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  font-size: 20px;
  transition: all 0.3s ease;
}

.task-meta-info {
  flex: 1;
  min-width: 0;
}

.task-meta-info strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.task-meta-info small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Task card colors (SaaS Gray) */
.task-icon-box.indigo,
.task-icon-box.warning,
.task-icon-box.danger,
.task-icon-box.info,
.task-icon-box.success,
.task-icon-box.primary,
.task-icon-box.secondary,
.task-icon-box.default {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Card Footer & Time picker */
.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed #f1f5f9;
}

.frequency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.frequency-badge.active {
  background: #f0f9ff;
  color: #2f6d95;
}

.time-picker-wrapper input[type="time"] {
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-picker-wrapper input[type="time"]:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.time-picker-wrapper input[type="time"]:focus {
  border-color: var(--theme-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--theme-focus-ring);
}

.time-picker-placeholder {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hermes-hero-card.active {
    background: #ffffff;
  }
  .hermes-task-grid {
    grid-template-columns: 1fr;
  }
}
