/* QR Code Security Tool: tool-specific CSS
   Relies on shared tokens + components from ../css/tools.css */

.status{
  display: none;
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.10);
  color: #fecaca;
  font-size: 0.95rem;
}

/* Tabs */
.tabs{
  display: flex;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.tab{
  flex: 1;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid var(--border-color, rgba(231,236,255,.12));
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary, #94a3b8);
  font-weight: 700;
  padding: 12px 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tab:hover{
  background: rgba(255,255,255,0.05);
}

.tab.active{
  color: var(--text-primary, #e7ecff);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.10);
}

.tab-content{ display: none; }
.tab-content.active{ display: block; }

/* Inputs */
label{
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
  color: var(--text-primary, #e7ecff);
}

input, textarea, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color, rgba(231,236,255,.12));
  background: rgba(255,255,255,0.03);
  color: var(--text-primary, #e7ecff);
}

textarea{
  min-height: 110px;
  resize: vertical;
}

/* QR output */
.qr-output{
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid var(--border-color, rgba(231,236,255,.12));
  background: rgba(255,255,255,0.02);
  padding: 18px;
  display: none;
  text-align: center;
}

#qrcode{
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  display: inline-block;
}

.qr-actions{
  margin-top: 14px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.qr-actions .btn{
  width: auto;
  min-width: 160px;
}

/* Upload / Scan results */
.upload-area{
  border: 2px dashed rgba(56, 189, 248, 0.55);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  text-align: center;
  padding: 56px 18px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.upload-area:hover{
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.75);
}

.scan-panel{
  display: none;
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-color, rgba(231,236,255,.12));
  background: rgba(255,255,255,0.02);
  padding: 16px;
}

.scan-panel h3{
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.scan-alert{
  display: none;
  margin-bottom: 10px;
  color: #fca5a5;
}

.scan-text{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(231,236,255,.10);
  border-radius: 12px;
  padding: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  word-break: break-all;
  color: var(--text-primary, #e7ecff);
}

@media (max-width: 560px){
  .tabs{ flex-direction: column; }
  .qr-actions .btn{ flex: 1 1 100%; min-width: 0; }
}
