.tool-ui {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Tabs */
.hash-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #2A2D3A;
  padding-bottom: 0.75rem;
}

.hash-tab {
  background: transparent;
  border: 1px solid #2A2D3A;
  color: #6B7280;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hash-tab.active {
  background: #4F8EF7;
  border-color: #4F8EF7;
  color: #FFFFFF;
}

.hash-tab:hover:not(.active) {
  border-color: #4F8EF7;
  color: #F0F2F8;
}

/* Cards */
.hash-card {
  background: #1A1D27;
  border: 1px solid #2A2D3A;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Text Input Area */
.text-input-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.text-area {
  width: 100%;
  min-height: 120px;
  background: #0F1117;
  border: 1px solid #2A2D3A;
  border-radius: 8px;
  padding: 0.875rem;
  color: #F0F2F8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.text-area:focus {
  border-color: #4F8EF7;
}

/* File Drop Zone */
.drop-zone {
  border: 2px dashed #2A2D3A;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #0F1117;
  transition: border-color 0.2s, background-color 0.2s;
}

.drop-zone.drag-over {
  border-color: #4F8EF7;
  background: rgba(79, 142, 247, 0.08);
}

.file-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #0F1117;
  border: 1px solid #2A2D3A;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

/* Format & Verification Controls */
.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(15, 17, 23, 0.5);
  border: 1px solid #2A2D3A;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.verify-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 240px;
}

.verify-input {
  background: #0F1117;
  border: 1px solid #2A2D3A;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  color: #F0F2F8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  flex: 1;
  outline: none;
  transition: border-color 0.2s;
}

.verify-input:focus {
  border-color: #4F8EF7;
}

/* Radio case toggles */
.format-pills {
  display: flex;
  gap: 0.4rem;
}

.format-pill {
  background: #0F1117;
  border: 1px solid #2A2D3A;
  color: #6B7280;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.775rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.format-pill.active {
  border-color: #4F8EF7;
  color: #FFFFFF;
  background: #4F8EF7;
}

/* Hash Results List */
.hashes-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hash-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #0F1117;
  border: 1px solid #2A2D3A;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}

.hash-row:hover {
  border-color: #4F8EF7;
}

.hash-row.matched {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.05);
}

.hash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.algo-tag {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #F0F2F8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.match-badge {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.match-badge.matched {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid #4ade80;
}

.hash-output-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hash-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  color: #4F8EF7;
  word-break: break-all;
  user-select: all;
  flex: 1;
}

.hash-row.matched .hash-val {
  color: #4ade80;
}

.btn-icon-copy {
  background: transparent;
  color: #6B7280;
  border: 1px solid #2A2D3A;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-icon-copy:hover {
  border-color: #4F8EF7;
  color: #F0F2F8;
}

.btn-secondary {
  background: transparent;
  color: #F0F2F8;
  border: 1px solid #2A2D3A;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-secondary:hover {
  border-color: #4F8EF7;
  color: #FFFFFF;
}
