/* Gmail-like Quill compose styles */
.compose-field {
  margin-bottom: 0.75rem;
}

.compose-editor-wrap {
  border: 1px solid #dadce0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.compose-editor-wrap .ql-toolbar.ql-snow {
  background: #f8f9fa;
  border: none;
  border-bottom: 1px solid #dadce0;
  padding: 8px 10px;
}

.compose-editor-wrap .ql-container.ql-snow {
  border: none;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
}

.compose-editor-wrap .ql-editor {
  min-height: 200px;
  max-height: 420px;
  overflow-y: auto;
  padding: 14px 16px;
  color: #202124;
  line-height: 1.5;
}

.compose-editor-wrap .ql-editor.ql-blank::before {
  color: #9aa0a6;
  font-style: normal;
  left: 16px;
  right: 16px;
}

.compose-editor-wrap .ql-snow .ql-stroke {
  stroke: #5f6368;
}

.compose-editor-wrap .ql-snow .ql-fill {
  fill: #5f6368;
}

.compose-editor-wrap .ql-snow.ql-toolbar button:hover,
.compose-editor-wrap .ql-snow .ql-toolbar button:hover,
.compose-editor-wrap .ql-snow.ql-toolbar button.ql-active,
.compose-editor-wrap .ql-snow .ql-toolbar button.ql-active {
  color: #1a73e8;
}

.compose-editor-wrap:focus-within {
  border-color: #1a73e8;
  box-shadow: 0 0 0 1px #1a73e8;
}

.compose-attachments {
  margin-top: 10px;
}

.compose-attachments label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #5f6368;
  font-size: 13px;
  margin-bottom: 6px;
}

.compose-attachments input[type="file"] {
  display: block;
  width: 100%;
  font-size: 13px;
  color: #5f6368;
}

.compose-attachments .attach-hint {
  display: block;
  font-size: 12px;
  color: #9aa0a6;
  margin-top: 4px;
  margin-bottom: 8px;
}

#attachment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#attachment-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 4px;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  border-radius: 16px;
  font-size: 13px;
  color: #202124;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#attachment-list li::before {
  content: "📎";
  flex-shrink: 0;
}

/* Neutral test UI (no GOI/UIDAI branding) */
.test-banner {
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #202124;
  background: #f1f3f4;
  border: 1px solid #dadce0;
  border-radius: 8px;
}

.loading-pill {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #5f6368;
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 999px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Safe test mode note */
.safe-test-note {
  margin: 8px 0 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #5f6368;
  background: #e8f0fe;
  border: 1px solid #aecbfa;
  border-radius: 8px;
}

.compose-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
  margin-bottom: 6px;
}

.optional-hint {
  font-weight: 400;
  color: #9aa0a6;
  font-size: 12px;
}

/* Smaller Quill for signature */
.signature-editor-wrap .ql-editor {
  min-height: 80px;
  max-height: 160px;
}
