/* Google Calendar Material Design 3 event modal */

.gcal-backdrop {
  position: fixed;
  inset: 0;
  background: #F0F4F9;
  background: rgba(240, 244, 249, 0.92);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
  z-index: 1000;
  overflow-y: auto;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
}

.gcal-modal {
  position: relative;
  width: 600px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  padding: 16px 24px;
  color: #1F1F1F;
}

.gcal-modal.gcal-expanded {
  width: min(960px, 96vw);
  max-height: 96vh;
}

.gcal-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 8px;
}

.gcal-drag {
  color: #444746;
  font-size: 20px;
  letter-spacing: 2px;
  user-select: none;
  cursor: grab;
}

.gcal-close {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #444746;
  cursor: pointer;
  border-radius: 50%;
}

.gcal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.gcal-title {
  width: 100%;
  border: none;
  border-bottom: 1px solid #E0E0E0;
  font-size: 24px;
  font-weight: 400;
  padding: 8px 0;
  margin-top: 8px;
  color: #1F1F1F;
  background: transparent;
  font-family: inherit;
  transition: border-color 0.2s;
}

.gcal-title:focus {
  outline: none;
  border-bottom: 2px solid #0B57D0;
}

.gcal-title::placeholder {
  color: #70757a;
}

.gcal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 12px;
}

.gcal-tab {
  border: none;
  background: transparent;
  color: #444746;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.gcal-tab:hover {
  background: rgba(0, 0, 0, 0.04);
}

.gcal-tab.active {
  background: #D3E3FD;
  color: #041E49;
}

.gcal-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.gcal-row {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 48px;
  padding: 4px 0;
  border-radius: 8px;
}

.gcal-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.gcal-row-top {
  align-items: flex-start;
}

.gcal-row.hidden,
.gcal-type-row.hidden {
  display: none !important;
}

.gcal-ico {
  flex: 0 0 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444746;
}

.gcal-row-content {
  flex: 1;
  min-width: 0;
}

.gcal-field {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #1F1F1F;
  padding: 8px 0;
  font-family: inherit;
}

.gcal-field:focus {
  outline: none;
}

.gcal-field::placeholder {
  color: #70757a;
}

.gcal-textarea {
  flex: 1;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
}

.gcal-textarea:focus {
  outline: none;
  border-color: #0B57D0;
}

.gcal-summary-btn {
  border: none;
  background: transparent;
  font-size: 14px;
  color: #1F1F1F;
  cursor: pointer;
  padding: 8px 0;
  text-align: left;
  font-family: inherit;
}

.gcal-datetime-panel {
  margin-top: 8px;
}

.gcal-datetime-panel.collapsed {
  display: none;
}

.gcal-dt-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.gcal-dt-label {
  width: 48px;
  font-size: 12px;
  color: #444746;
}

.gcal-date,
.gcal-time {
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 14px;
  font-family: inherit;
}

.gcal-date:focus,
.gcal-time:focus {
  outline: none;
  border-color: #0B57D0;
}

.gcal-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1F1F1F;
  cursor: pointer;
}

.gcal-subrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.gcal-select-inline {
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  background: #fff;
  font-family: inherit;
}

.gcal-guest-wrap {
  flex: 1;
  position: relative;
}

.gcal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.gcal-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #E9EEF6;
  color: #041E49;
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 13px;
}

.gcal-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #444746;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}

.gcal-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

.gcal-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.gcal-suggestion:hover {
  background: #F1F3F4;
}

.gcal-suggestion small {
  display: block;
  color: #70757a;
  font-size: 12px;
}

.gcal-link-btn {
  border: none;
  background: transparent;
  color: #0B57D0;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
  text-align: left;
}

.gcal-link-btn:hover {
  text-decoration: underline;
}

.gcal-meet-link {
  padding-left: 36px;
}

.gcal-meet-url {
  flex: 1;
  color: #0B57D0;
  font-size: 14px;
  text-decoration: none;
  word-break: break-all;
}

.gcal-desc-wrap {
  flex: 1;
  background: #E9EEF6;
  border-radius: 4px;
  padding: 8px;
}

.gcal-desc-wrap:focus-within {
  border-bottom: 2px solid #0B57D0;
}

.gcal-richtoolbar {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.gcal-richtoolbar button {
  border: none;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #444746;
}

.gcal-richtoolbar button:hover,
.gcal-richtoolbar button.active {
  background: rgba(11, 87, 208, 0.12);
  color: #0B57D0;
}

.gcal-desc {
  min-height: 80px;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}

.gcal-desc:empty::before {
  content: attr(data-placeholder);
  color: #70757a;
}

.gcal-notes-btn {
  margin-top: 8px;
  border: none;
  background: transparent;
  color: #70757a;
  font-size: 13px;
  cursor: not-allowed;
  padding: 4px 0;
}

.gcal-hint {
  flex: 1;
  font-size: 14px;
  color: #444746;
  margin: 0;
}

.gcal-attachments {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gcal-attachment-item {
  font-size: 13px;
  color: #0B57D0;
}

.gcal-calendar-line {
  margin: 0 0 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gcal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0B57D0;
  flex-shrink: 0;
}

.gcal-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.gcal-meta-select {
  border: none;
  background: transparent;
  color: #444746;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.gcal-meta-sep {
  color: #dadce0;
}

.gcal-notify-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.gcal-error {
  color: #b3261e;
  font-size: 13px;
  margin: 8px 0 0;
}

.gcal-footer {
  border-top: 1px solid #F1F3F4;
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.gcal-footer-right {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.gcal-text-btn {
  border: none;
  background: transparent;
  color: #0B57D0;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
}

.gcal-text-btn.small {
  padding: 6px 12px;
  font-size: 13px;
}

.gcal-text-btn:hover {
  background: rgba(11, 87, 208, 0.08);
}

.gcal-save {
  background: #0B57D0;
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  padding: 10px 24px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.gcal-save:hover {
  background: #0842a0;
}

.gcal-save:active {
  background: #062e6f;
}

.gcal-delete {
  border: none;
  background: transparent;
  color: #b3261e;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
}

.gcal-delete:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}
