/* send_tiger.css */

/* --- Modal dialog container --- */
.tc-dialog {
  padding: 1rem;
  border: none;
  border-radius: 1rem;           /* roughly “rounded-xl” */
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); /* roughly “shadow-xl” */
}

/* --- Form styling --- */
.tc-form {
  font-family: system-ui, sans-serif;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- Header --- */
.tc-header {
  margin: 0 0 0.5rem;
  color: #0d3c28;
  font-size: 1.1rem;
  font-weight: 600;
}

/* --- Labels & inputs --- */
.tc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tc-label-text {
  margin-right: 0.5rem;
}

.tc-input,
.tc-select {
  margin-left: 0.5rem;
  flex: 1;
  padding: 0.25rem;
  font-size: 0.85rem;
}

/* --- Fieldsets & legends --- */
.tc-fieldset {
  border: 1px solid #b4c4bb;
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  margin: 0.5rem 0;
}

.tc-fieldset > legend {
  font-size: 0.85rem;
  padding: 0 0.2rem;
}

/* --- Checkbox & radio labels --- */
.tc-checkbox-label,
.tc-radio-label {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
}

.tc-checkbox,
.tc-radio {
  margin-right: 0.25rem;
}

/* --- Button row & buttons --- */
.tc-button-row {
  margin: 0.5rem 0;
  display: flex;
  gap: 0.5rem;
}

.tc-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

/* you can override these with your theme colors */
.tc-btn.btn-primary {
  background-color: #3b82f6;
  color: #ffffff;
}

.tc-btn.btn-ghost {
  background-color: transparent;
  color: #374151;
}

.tc-btn.btn-danger {
  background-color: #dc2626;
  color: #ffffff;
}

/* --- Preview textarea --- */
.tc-preview {
  width: 100%;
  padding: 0.25rem;
  font-size: 0.85rem;
  border: 1px solid #b4c4bb;
  border-radius: 4px;
  resize: vertical;
}

dialog:not([open]) { display: none; }

/* ─── Modal-only tweaks for balanced button row ─── */
/* let the dialog size down to 90% of the viewport, up to 500px */
/* ─── Desktop: let the dialog grow naturally ─── */
@media (min-width: 600px) {
  dialog#tigerFormModal {
    /* fixed “comfortable” width on desktop */
    width: 500px;
    /* no artificial height limit */
    max-height: none;
    /* show full content */
    overflow: visible;
  }
}

/* ─── Mobile: cap size and allow internal scroll ─── */
@media (max-width: 599px) {
  dialog#tigerFormModal {
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    padding: 1rem;
  }
}


#tigerFormModal .tc-button-row {
  display: flex;
  flex-wrap: wrap;            /* <<< new */
  gap: 0.5rem;
  margin: 1rem 0;
  padding-inline: 0.5rem;
  justify-content: center;    /* optional: center the wrapped rows */
}

#tigerFormModal .tc-button-row .tc-btn {
  flex: 1 1 auto;             /* allow natural shrinking/wrapping */
  min-width: 100px;           /* avoid buttons collapsing too small */
  text-align: center;
}
