/* Hash Generator Styles */

.hash-container {
  padding: 1.5rem;
}

.hash-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: calc(100vh - 140px);
}

.hash-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.panel-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.header-buttons {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.hash-case-select {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  min-width: auto;
}

.btn-small {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  background: white;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-small:hover {
  background: #f1f5f9;
}

.btn-small.btn-copy {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-small.btn-copy:hover {
  background-color: var(--primary-hover);
}

/* Input textarea */
.hash-input-card {
  display: flex;
  flex-direction: column;
}

.hash-textarea {
  width: 100%;
  flex: 1;
  padding: 1rem;
  border: none;
  font-size: 0.875rem;
  font-family: 'Courier New', monospace;
  resize: none;
  line-height: 1.6;
  outline: none;
}

/* Results */
.hash-results {
  padding: 0;
  flex: 1;
  overflow-y: auto;
}

.hash-empty {
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

.hash-row {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border-color);
  gap: 0.75rem;
}

.hash-row:last-child {
  border-bottom: none;
}

.hash-algo {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  min-width: 72px;
  flex-shrink: 0;
}

.hash-value {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.8125rem;
  color: var(--text-color);
  word-break: break-all;
  line-height: 1.5;
  user-select: all;
}

.hash-row .btn-small {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hash-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hash-textarea {
    min-height: 120px;
    resize: vertical;
  }

  .hash-row {
    flex-wrap: wrap;
  }

  .hash-algo {
    min-width: 60px;
  }
}
