/* pgp-generator.css */
/* Tool-specific styles for PGP Generator (uses shared variables from tools.css) */
.title-row{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* Align logo with the title line, not the whole title+subtitle block */
.tool-header .brand{
  align-items: flex-start;
}

/* Remove default h1 margins so the title sits naturally */
.tool-header h1{
  margin: 0;
  line-height: 1.15;
}

/* Optional: tiny nudge to match visual baseline perfectly */
.tool-header .brand-logo{
  margin-top: 2px;
}


@media (max-width: 640px){
  .title-row{
    align-items: flex-start;
  }
  .pgp-pill{
    white-space: normal;
  }
}


.pgp-header-meta{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}

.tag-row{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pgp-pill{
  margin: 0;
  white-space: nowrap;
}

.pgp-pill-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(16, 185, 129, 0.95);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.55);
}

@media (max-width: 900px){
  .pgp-header-meta{
    align-items: flex-start;
    text-align: left;
  }
  .tag-row{
    justify-content: flex-start;
  }
}

/* Tabs */
.tab-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.tab-btn{
  flex: 1 1 180px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-secondary);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 10px 26px rgba(0, 212, 255, 0.10);
}

.tab-btn.active{
  background: rgba(0, 212, 255, 0.14);
  border-color: rgba(0, 212, 255, 0.55);
  color: var(--text-primary);
}

.tab-panel{
  display: none;
}

.tab-panel.active{
  display: block;
}

/* Fields */
.field-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 700px){
  .field-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label{
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
}

.input-small,
select.input-small{
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  padding: 12px 12px;
  outline: none;
}

.input-small:focus,
select.input-small:focus{
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.hint{
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.textarea{
  width: 100%;
  min-height: 160px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(5, 8, 16, 0.65);
  color: var(--text-primary);
  padding: 14px;
  font-family: var(--mono);
  outline: none;
}

.textarea:focus{
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 2px var(--focus-ring);
}

/* Button refinements */
.btn.mini{
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

/* Status row */
.status-row{
  margin-top: 10px;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.dot-ok,
.dot-error{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.dot-ok{
  background: rgba(16, 185, 129, 0.95);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.55);
}

.dot-error{
  background: rgba(239, 68, 68, 0.95);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

.status-text{
  color: var(--text-secondary);
}

/* Outputs */
.output-block{
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(5, 8, 16, 0.55);
  padding: 14px;
}

.output-label-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.output-block pre{
  margin: 10px 0 0 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--mono);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: rgba(5, 8, 16, 0.65);
  color: #e7ecff;
  padding: 12px;
  max-height: 320px;
  overflow: auto;
}

/* Sidebar */
.side-panel-section{
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.22);
}

.side-panel-section:last-of-type{
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.badge-list{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badge-list .badge{
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.85rem;
}

/* Legal disclaimer in sidebar (use shared gold styling, but fit the card) */
.legal-disclaimer.pgp-legal{
  margin-top: 18px;
  padding: 16px 18px;
}
