/* Page-specific/shared dashboard styles extracted from app.css. Loaded before final app polish. */

/* ── Checker status banner on Problems page ── */
.recheck-status-banner {
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 650;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.recheck-status-banner.running {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}
.recheck-status-banner.finished {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.recheck-status-banner .progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: #e0e7ff;
  border-radius: 999px;
  overflow: hidden;
}
.recheck-status-banner .progress-bar {
  height: 100%;
  background: #4f46e5;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ── Bulk Actions Toolbar on Dashboard ── */
.bulk-toolbar-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 100px);
  z-index: 90;
  width: min(720px, calc(100vw - 32px));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}
.bulk-toolbar-wrap.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid #1e293b;
  border-radius: 14px;
  background: #1e293b;
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.bulk-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 650;
}
.bulk-count {
  background: #3b82f6;
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.bulk-actions-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}
.bulk-actions-form select.input {
  background: #334155;
  border-color: #475569;
  color: #fff;
  height: 34px;
  padding: 4px 8px;
  font-size: 12.5px;
  border-radius: 8px;
}
.bulk-actions-form .btn {
  height: 34px;
  padding: 4px 12px;
  font-size: 12.5px;
  border-radius: 8px;
  min-height: 0;
}
.bulk-actions-form .btn-primary {
  background: #3b82f6;
  border-color: #3b82f6;
}
.bulk-actions-form .btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}
.bulk-actions-form .btn-ghost {
  color: #94a3b8;
  border-color: transparent;
}
.bulk-actions-form .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Checkbox positioning for list and cards */
.brow-select-wrap, .card-select-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}
.brow-select-wrap {
  margin-right: 4px;
}
.card-select-wrap {
  position: absolute;
  top: 12px;
  right: 12px;
}
.brand-select-check {
  width: 17px;
  height: 17px;
  border: 1.5px solid #d0d5dd;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .bulk-toolbar-wrap {
    bottom: 16px;
  }
  .bulk-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .bulk-actions-form {
    justify-content: flex-start;
  }
}

/* Dashboard problem/settings polish extracted from app.css */
.problem-section{padding:20px 22px}
.problem-section-title{
  display:flex;align-items:center;gap:9px;margin:0 0 14px!important;padding-bottom:12px!important;
}
.problem-count{
  display:inline-grid;place-items:center;min-width:25px;height:23px;padding:0 8px;
  border-radius:999px;background:#fff3d6;color:#9a6700;font-size:12px;font-weight:800;
}
.problem-table{
  overflow-x:auto;
  padding-bottom:2px;
}
.problem-table .tbl{table-layout:fixed;min-width:1180px}
.problem-table th:nth-last-child(3),.problem-table td:nth-last-child(3){width:92px}
.problem-table th:nth-last-child(2),.problem-table td:nth-last-child(2){width:140px}
.problem-table th:last-child,.problem-table td:last-child{width:260px}
.problem-url{max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.problem-url a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.urg-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px}
.urg-badge.urg-critical{background:#fff0ef;color:#b42318;border:1px solid #ffd6d2}
.geo-code{display:inline-grid;place-items:center;min-width:34px;padding:3px 7px;border-radius:7px;background:#eef4ff;color:#2459a8;font-weight:800}
.problem-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;
}
.problem-toolbar-actions,.problem-actions{display:flex;align-items:center;gap:7px}
.problem-toolbar-actions form,.problem-actions form{margin:0}
.segmented{display:inline-flex;padding:3px;border:1px solid #dfe5ed;border-radius:10px;background:#eef1f5}
.segmented-item{padding:7px 13px;border-radius:7px;color:#667085;font-weight:750;text-decoration:none}
.segmented-item:hover{text-decoration:none}
.segmented-item.is-active{background:#fff;color:#1769e0;box-shadow:0 1px 4px rgba(16,24,40,.08)}
.problem-action{min-height:34px;padding:6px 13px;font-size:12px;white-space:nowrap}
.problem-action-ok{color:#067647;border-color:#abefc6;background:#ecfdf3}
.problem-state{font-size:11px;font-weight:750;color:#667085}
.problem-row-handled{opacity:.58}
.diagnostic-panel{
  margin-bottom:14px;border:1px solid #f0dfb5;border-radius:12px;background:#fffaf0;overflow:hidden;
}
.diagnostic-panel>summary{
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;
  cursor:pointer;list-style:none;
}
.diagnostic-panel>summary::-webkit-details-marker{display:none}
.diagnostic-panel summary span:first-child{display:flex;flex-direction:column}
.diagnostic-panel summary small{color:#8a6a22;font-size:12px}
.diagnostic-badge{padding:3px 8px;border-radius:999px;background:#fff0c2;color:#8a5d00;font-size:11px;font-weight:800}
.diagnostic-list{border-top:1px solid #f0dfb5;padding:6px 14px}
.diagnostic-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 2px;border-bottom:1px solid #f5e9cb}
.diagnostic-row:last-child{border-bottom:0}
.diagnostic-row div{display:flex;flex-direction:column}
.diagnostic-row small{color:#8a6a22}
.settings-card{position:relative}
.settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.settings-card-head h3{margin:0!important;border:0!important;padding:0!important}
.settings-card-head p{margin:4px 0 0}
.settings-status{padding:4px 9px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:11px;font-weight:800}
.settings-status.is-on{background:#ecfdf3;color:#067647}
.switch-row{display:flex;flex-direction:row;align-items:center;gap:11px;margin-top:16px;color:#344054}
.switch-row>input{position:absolute;opacity:0;pointer-events:none}
.switch{width:42px;height:24px;padding:2px;border-radius:999px;background:#d0d5dd;transition:.15s;cursor:pointer}
.switch span{display:block;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(16,24,40,.25);transition:.15s}
.switch-row>input:checked+.switch{background:#1769e0}
.switch-row>input:checked+.switch span{transform:translateX(18px)}
.switch-row>span:last-child{display:flex;flex-direction:column}
.switch-row small{color:#667085;font-weight:500}
.settings-test-form{position:absolute;right:24px;bottom:22px;margin:0}
@media (max-width:860px){
  .sidebar{background:#101a2d}
  .content{padding:68px 16px 28px}
  .problem-section{padding:14px;background:transparent;border:0;box-shadow:none}
  .problem-section-title{padding-left:2px!important}
  .problem-table .tbl{min-width:0;table-layout:auto}
  .problem-url{max-width:none;white-space:normal}
  .problem-url a{white-space:normal;overflow-wrap:anywhere}
  .problem-toolbar{align-items:stretch;flex-direction:column}
  .problem-toolbar-actions{display:grid;grid-template-columns:1fr 1fr}
  .problem-toolbar-actions .btn{width:100%}
  .problem-actions{flex-wrap:wrap}
  .diagnostic-row{align-items:flex-start;flex-direction:column}
  .settings-test-form{position:static;margin-top:10px}
}
@media (max-width:480px){
  .content{padding-left:11px;padding-right:11px}
  .hero{padding:15px}
  .hero-main{align-items:flex-start}
  .hero-logo{width:40px;height:40px}
  .stat{min-width:0}
  .form-card{padding:16px 14px}
}
