/* Inbox Ready v3.1 — No sidebar layout */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

.ir-app *, .ir-app *::before, .ir-app *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ir-app a { text-decoration: none; }
.ir-app button { cursor: pointer; }

.ir-app {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #1e293b;
  background: #f0f2f5;
  border-radius: 10px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* When rendered inside WP admin, flatten the outer frame */
.wrap > .ir-app {
  border-radius: 6px;
  margin-top: 12px;
}

/* Topbar */
.ir-topbar {
  background: #fff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8ecf0;
}
.ir-topbar-brand { display: flex; align-items: center; gap: 10px; }
.ir-brand-icon {
  width: 32px; height: 32px;
  background: #7F8C00;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; flex-shrink: 0;
}
.ir-brand-name { font-size: 16px; font-weight: 700; color: #1e293b; }
.ir-hamburger {
  background: none; border: none; padding: 2px;
  display: flex; flex-direction: column; gap: 4px;
}
.ir-hamburger span { display: block; width: 18px; height: 2px; background: #64748b; border-radius: 1px; }

/* Panels */
.ir-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 22px 0;
}
@media (max-width: 680px) { .ir-panels { grid-template-columns: 1fr; } }

.ir-panel {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ir-panel-title {
  font-size: 15px; font-weight: 700; color: #1e293b;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

/* Drop zone */
.ir-drop-zone {
  position: relative;
  border: 2px dashed #dde3ec;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: #fafbfc;
  transition: border-color .2s, background .2s;
}
.ir-drop-zone:hover, .ir-drop-zone.ir-dragover { border-color: #7F8C00; background: #f5f9e6; }
.ir-drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ir-drop-txt { font-size: 12px; color: #64748b; margin-bottom: 12px; }
.ir-btn-upload {
  background: #7F8C00; color: #fff; border: none; border-radius: 5px;
  padding: 8px 18px; font-size: 12px; font-weight: 600;
  font-family: inherit; transition: background .2s; position: relative; z-index: 1;
}
.ir-btn-upload:hover { background: #6a7600; }

/* Or divider */
.ir-or-div {
  text-align: center; position: relative; margin: 11px 0;
  color: #94a3b8; font-size: 11px;
}
.ir-or-div::before, .ir-or-div::after {
  content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: #e8ecf0;
}
.ir-or-div::before { left: 0; } .ir-or-div::after { right: 0; }
.ir-or-div span { background: #fff; padding: 0 8px; position: relative; }

/* Textarea */
.ir-textarea {
  width: 100%; resize: vertical;
  border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 9px 11px; font-size: 12px;
  font-family: 'Courier New', monospace;
  color: #334155; line-height: 1.6;
  transition: border-color .2s;
}
.ir-textarea:focus { outline: none; border-color: #7F8C00; }

/* Bulk bar */
.ir-bulk-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; flex-wrap: wrap; }
.ir-count-tag { font-size: 12px; color: #64748b; background: #f1f5f9; padding: 3px 10px; border-radius: 20px; }
.ir-bulk-btns { display: flex; gap: 7px; }
.ir-btn-ghost {
  background: #fff; border: 1px solid #dde3ec; color: #64748b;
  border-radius: 5px; padding: 7px 13px; font-size: 12px; font-weight: 500;
  font-family: inherit; transition: border-color .2s;
}
.ir-btn-ghost:hover { border-color: #94a3b8; }
.ir-btn-run {
  background: #7F8C00; color: #fff; border: none; border-radius: 5px;
  padding: 7px 15px; font-size: 12px; font-weight: 600;
  font-family: inherit; transition: background .2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.ir-btn-run:hover { background: #6a7600; }
.ir-btn-run:disabled { background: #94a3b8; cursor: default; }

/* Single panel */
.ir-single-field-wrap { display: flex; flex-direction: column; gap: 10px; }
.ir-single-field {
  display: flex; align-items: center;
  border: 1px solid #dde3ec; border-radius: 6px;
  background: #fff; overflow: hidden; transition: border-color .2s;
}
.ir-single-field:focus-within { border-color: #7F8C00; }
.ir-field-icon { padding: 0 11px; color: #94a3b8; font-size: 15px; }
.ir-single-input {
  flex: 1; border: none; padding: 10px 0;
  font-size: 14px; color: #1e293b; background: transparent;
  outline: none; font-family: inherit;
}
.ir-btn-verify {
  background: #7F8C00; color: #fff; border: none; border-radius: 5px;
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  font-family: inherit; width: 100%; transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ir-btn-verify:hover { background: #6a7600; }
.ir-btn-verify:disabled { background: #94a3b8; }

/* Single loading / result */
.ir-single-loading { display: none; align-items: center; gap: 9px; margin-top: 16px; color: #64748b; font-size: 13px; }
.ir-single-loading.ir-show { display: flex; }
.ir-spin {
  width: 18px; height: 18px;
  border: 2px solid #e2e8f0; border-top-color: #7F8C00;
  border-radius: 50%; animation: ir-sp .7s linear infinite; flex-shrink: 0;
}
@keyframes ir-sp { to { transform: rotate(360deg); } }

.ir-single-result { display: none; flex-direction: column; gap: 7px; margin-top: 16px; }
.ir-single-result.ir-show { display: flex; }
.ir-res-row { display: flex; align-items: center; gap: 8px; }
.ir-res-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ir-res-dot.valid   { background: #22c55e; }
.ir-res-dot.invalid { background: #ef4444; }
.ir-res-dot.risk    { background: #f59e0b; }
.ir-res-dot.unknown { background: #94a3b8; }
.ir-res-email { font-size: 14px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; color: #1e293b; }
.ir-res-detail { font-size: 12px; color: #64748b; }
.ir-res-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 2px 10px; border-radius: 20px; flex-shrink: 0;
}
.ir-res-badge.valid   { background: #dcfce7; color: #15803d; }
.ir-res-badge.invalid { background: #fee2e2; color: #b91c1c; }
.ir-res-badge.risk    { background: #fef3c7; color: #b45309; }
.ir-res-badge.unknown { background: #f1f5f9; color: #475569; }

.ir-checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; margin-top: 4px; }
.ir-chk { font-size: 12px; padding: 4px 8px; border-radius: 4px; }
.ir-chk.pass { background: #f0fdf4; color: #15803d; }
.ir-chk.fail { background: #fef2f2; color: #b91c1c; }
.ir-chk.skip { background: #f8fafc; color: #94a3b8; }

.ir-res-suggestion {
  display: none;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 5px; padding: 7px 10px;
  font-size: 12px; color: #92400e; margin-top: 2px;
}

/* Progress */
.ir-prog-wrap { display: none; padding: 14px 22px 0; }
.ir-prog-wrap.ir-show { display: block; }
.ir-prog-meta { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; margin-bottom: 6px; }
.ir-prog-track { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.ir-prog-fill { height: 100%; width: 0%; background: #7F8C00; border-radius: 3px; transition: width .4s ease; }

/* Stats */
.ir-stats-row {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  margin: 16px 22px 0;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ir-stats-row.ir-show { display: grid; }
.ir-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px; border-right: 1px solid #f1f5f9; background: #fff;
}
.ir-stat:last-child { border-right: none; }
.ir-stat-num { font-size: 26px; font-weight: 800; line-height: 1; margin-bottom: 4px; color: #1e293b; }
.ir-stat-lbl { font-size: 11px; color: #64748b; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.ir-s-valid   .ir-stat-num { color: #16a34a; }
.ir-s-invalid .ir-stat-num { color: #dc2626; }
.ir-s-risk    .ir-stat-num { color: #d97706; }
.ir-s-unknown .ir-stat-num { color: #94a3b8; }

/* Results */
.ir-results-wrap {
  background: #fff; border-radius: 8px;
  margin: 16px 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05); overflow: hidden;
}
.ir-res-tabs { display: flex; border-bottom: 1px solid #e8ecf0; }
.ir-tab {
  padding: 13px 20px; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  background: none; border: none; border-bottom: 3px solid transparent;
  color: #94a3b8; font-family: inherit; cursor: pointer; transition: color .15s;
  text-transform: uppercase;
}
.ir-tab:hover { color: #475569; }
.ir-tab-active { color: #1e293b !important; border-bottom-color: #1e293b; }
.ir-tab-teal   { color: #7F8C00 !important; }

.ir-res-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; gap: 8px;
}
.ir-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ir-pill {
  padding: 4px 13px; border-radius: 20px; font-size: 11px; font-weight: 600;
  border: 1px solid #e2e8f0; background: #f8fafc; color: #475569;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.ir-pill:hover { border-color: #94a3b8; color: #1e293b; }
.ir-pill-on { background: #240040 !important; color: #fff !important; border-color: #240040 !important; }

.ir-btn-dl {
  background: #240040; color: #fff; border: none; border-radius: 5px;
  padding: 7px 14px; font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .2s; white-space: nowrap;
}
.ir-btn-dl:hover { background: #3d0066; }

.ir-empty { padding: 32px 18px; text-align: center; color: #94a3b8; font-size: 14px; }

.ir-tbl-scroll { overflow-x: auto; }
.ir-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ir-tbl th {
  background: #f8fafc; padding: 9px 15px; text-align: left;
  font-weight: 600; color: #475569; font-size: 11px;
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid #e2e8f0; white-space: nowrap;
}
.ir-tbl td { padding: 9px 15px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.ir-tbl tr:last-child td { border-bottom: none; }
.ir-tbl tr:hover td { background: #fafbfc; }
.ir-tbl-email { font-family: 'Courier New', monospace; font-size: 12px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ir-tbl-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ir-tbl-badge.valid   { background: #dcfce7; color: #15803d; }
.ir-tbl-badge.invalid { background: #fee2e2; color: #b91c1c; }
.ir-tbl-badge.risk    { background: #fef3c7; color: #b45309; }
.ir-tbl-badge.unknown { background: #f1f5f9; color: #475569; }

.ir-yes { color: #16a34a; font-weight: 700; }
.ir-no  { color: #cbd5e1; }
.ir-sug { color: #d97706; font-style: italic; font-size: 12px; }

/* Error */
.ir-err {
  display: none;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 6px; padding: 10px 14px; font-size: 13px;
  margin: 0 22px 16px;
}
.ir-err.ir-show { display: block; }

/* Footer */
.ir-footer {
  padding: 12px 22px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid #e8ecf0;
  background: #fff;
}

/* Spinner in button */
.ir-btn-spin {
  width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; display: inline-block;
  animation: ir-sp .6s linear infinite; vertical-align: middle;
}
