/* tools.css
   Shared UI for CasinoLove tools (no external fonts, no libraries)
*/
:root{
  --navy: #091540;
  --gold: #FFD700;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --danger: #b91c1c;
  --ok: #16a34a;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.topbar{
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-inner{
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img{
  width: 160px;
  height: auto;
  display: block;
}

.wrap{
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px;
}

.panel{
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero{
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9,21,64,0.03), rgba(255,255,255,1));
}
.hero h1{
  margin: 6px 0 0 0;
  font-size: 22px;
  line-height: 1.2;
}
.hero .desc{
  margin: 8px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.breadcrumb{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb .sep{ opacity: 0.8; }

.benefits{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.benefit{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}
.tick{
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,163,74,0.12);
  border: 1px solid rgba(22,163,74,0.25);
  color: #166534;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px;
}
@media (min-width: 1100px){
  .grid{
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 70vh;
  }
}

.pane{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.pane.alt{
  background: rgba(2, 6, 23, 0.02);
}

.stephead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px 0;
}
.step-title{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.step-num{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}
.step-title h2{
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.pillrow{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgb(248, 250, 252);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.pill.ok{
  border-color: rgba(22,163,74,0.35);
  background: rgba(22,163,74,0.08);
  color: #166534;
}
.pill.bad{
  border-color: rgba(185,28,28,0.35);
  background: rgba(185,28,28,0.08);
  color: var(--danger);
}

.row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  flex: 1;
}
label{ font-size: 12px; color: var(--muted); }
select, textarea, input[type="file"]{ font: inherit; }
select{
  width: 100%;
  padding: 10px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
textarea{
  width: 100%;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  line-height: 1.4;
  font-size: 14px;
  min-height: 260px;
}
@media (min-width: 1100px){
  textarea{ min-height: 52vh; }
}

.btnbar{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.btn{
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}
.btn.primary{
  background: var(--gold);
  border-color: rgba(0,0,0,0.12);
}
.btn.big{
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
}
.btn.full{ width: 100%; justify-content: center; }
.btn:disabled{ opacity: 0.55; cursor: not-allowed; }

.box{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgb(248, 250, 252);
  margin-top: 12px;
}
.box h3{
  margin: 0 0 10px 0;
  font-size: 14px;
}

.toggle-row{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.check{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text);
  user-select: none;
}
.check input{ width: 18px; height: 18px; }

.meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.error{
  margin-top: 10px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.35;
  display: none;
}

.output-area textarea{ min-height: 220px; }
@media (min-width: 1100px){
  .output-area textarea{ min-height: 38vh; }
}

.footer{
  margin-top: 16px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
}
.footer .links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}