/* calendar.css — カレンダー連携 UI スタイル */

.integration-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
}
.integration-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  font-size: 16px;
}
.integration-card__email {
  font-weight: 700;
  color: #0f172a;
}
.integration-card__meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.integration-card__badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
}
.integration-card__badge--mock   { background: #fef3c7; color: #92400e; }
.integration-card__badge--live   { background: #d1fae5; color: #065f46; }
.integration-card__badge--active { background: #dbeafe; color: #1e40af; }
.integration-card__badge--disconnected { background: #fee2e2; color: #991b1b; }

.cal-event {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.cal-event:hover {
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}
.cal-event--past {
  opacity: 0.68;
  background: #f8fafc;
}
.cal-event__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cal-event__title {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  line-height: 1.35;
}
.cal-event__when {
  font-size: 12px;
  color: #475569;
  font-family: ui-monospace, Menlo, monospace;
}
.cal-event__duration {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.cal-event__attendees {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cal-event__meet-link {
  color: #2563eb;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cal-event__meet-link:hover { text-decoration: underline; }

.cal-event__ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
  cursor: pointer;
  transition: background 0.1s;
}
.ai-chip:hover { background: #ddd6fe; }
.ai-chip__role { opacity: 0.7; font-weight: 500; }
.ai-chip__status {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  margin-left: 2px;
}
.ai-chip__status--pending   { background: #cbd5e1; }
.ai-chip__status--scheduled { background: #60a5fa; }
.ai-chip__status--joined    { background: #34d399; animation: pulse 1.5s infinite; }
.ai-chip__status--completed { background: #10b981; }
.ai-chip__status--failed    { background: #ef4444; }
.ai-chip__status--skipped   { background: #94a3b8; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.cal-event__add-ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  border: 1px dashed #cbd5e1;
}
.cal-event__add-ai:hover {
  background: #e0f2fe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.cal-event__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cal-event__btn-run {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}
.cal-event__btn-run:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.cal-event__btn-run:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cal-date-group {
  margin-top: 8px;
}
.cal-date-group__head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.08em;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cal-date-group__head::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed #cbd5e1;
}
.cal-date-group__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
