/* Tool Container Styles */
.tool-page-shell .tool-container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 0;
}

/* Hash Identifier Tool Styles — golden luxury */
.hash-identifier-tool {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.97), rgba(248, 238, 222, 0.97));
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 14px 36px -24px rgba(94, 65, 30, 0.35);
  border: 1px solid rgba(145, 103, 48, 0.2);
}

.input-section {
  margin-bottom: 25px;
}

.input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.input-header h3 {
  color: #5e4329;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.hash-input {
  width: 100%;
  padding: 16px;
  background: #fffaf2;
  border: 1px solid rgba(145, 103, 48, 0.26);
  border-radius: 8px;
  color: #4a351f;
  box-sizing: border-box;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 150px;
  transition: all 0.3s ease;
}

.hash-input:focus {
  outline: none;
  border-color: #ab7c34;
  box-shadow: 0 0 0 3px rgba(171, 124, 52, 0.16);
}

.hash-input::placeholder {
  color: #8c7558;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(180deg, #bc8e3d 0%, #9f742f 100%);
  color: #fff8ef;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #c89a4a 0%, #aa7d34 100%);
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: #7a572c;
  border: 2px solid rgba(145, 103, 48, 0.4);
}

.btn-secondary:hover {
  background: rgba(182, 138, 58, 0.12);
  color: #5e4329;
  transform: scale(1.05);
}

.result-section {
  background: #fffaf2;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(145, 103, 48, 0.15);
  margin-top: 20px;
  overflow: hidden;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(182, 138, 58, 0.08);
  border-bottom: 1px solid rgba(145, 103, 48, 0.12);
  margin: -20px -20px 20px -20px;
}

.result-header h3 {
  color: #5e4329;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hash-type-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(182, 138, 58, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(145, 103, 48, 0.15);
  margin-bottom: 20px;
}

.hash-type-icon {
  font-size: 2.5rem;
  color: #b98b3b;
}

.hash-type-info h4 {
  color: #4f3a24;
  font-size: 1.5rem;
  margin: 0 0 5px 0;
}

.hash-type-info p {
  color: rgba(88, 64, 38, 0.75);
  margin: 0;
  font-size: 0.95rem;
}

.hash-details {
  display: grid;
  gap: 15px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(182, 138, 58, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(145, 103, 48, 0.12);
}

.detail-label {
  color: rgba(88, 64, 38, 0.72);
  font-weight: 500;
}

.detail-value {
  color: #7a5526;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.error-message {
  background: rgba(173, 82, 47, 0.12);
  border: 1px solid rgba(154, 63, 43, 0.26);
  color: #9a3f2b;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.char-count {
  color: rgba(88, 64, 38, 0.65);
  font-size: 0.85rem;
  font-weight: 500;
}

.stats-section {
  background: rgba(182, 138, 58, 0.06);
  border: 1px solid rgba(145, 103, 48, 0.12);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-label {
  color: rgba(88, 64, 38, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
}

.stat-value {
  color: #7a5526;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.confidence-badge {
  margin-top: 10px;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.confidence-badge.high {
  background: rgba(182, 138, 58, 0.18);
  color: #7a5526;
  border: 1px solid rgba(145, 103, 48, 0.35);
}

.confidence-badge.medium {
  background: rgba(255, 193, 7, 0.2);
  color: #b87a1a;
  border: 1px solid rgba(255, 193, 7, 0.4);
}

.confidence-badge.low {
  background: rgba(255, 107, 107, 0.15);
  color: #b84a3d;
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.copy-btn-small {
  background: rgba(182, 138, 58, 0.12);
  border: 1px solid rgba(145, 103, 48, 0.28);
  color: #7a572c;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.copy-btn-small:hover {
  background: rgba(182, 138, 58, 0.22);
  border-color: #ab7c34;
}

.advanced-analysis {
  background: #fffaf2;
  border: 1px solid rgba(145, 103, 48, 0.15);
  border-radius: 12px;
  margin-top: 25px;
  overflow: hidden;
}

.analysis-header {
  padding: 15px 20px;
  background: rgba(182, 138, 58, 0.08);
  border-bottom: 1px solid rgba(145, 103, 48, 0.12);
}

.analysis-header h3 {
  color: #5e4329;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.analysis-content {
  padding: 20px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.analysis-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analysis-label {
  color: #7a5526;
  font-weight: 600;
  font-size: 0.95rem;
}

.frequency-chart {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.freq-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  background: rgba(182, 138, 58, 0.06);
  border: 1px solid rgba(145, 103, 48, 0.12);
  border-radius: 6px;
  min-width: 50px;
}

.freq-char {
  color: #b98b3b;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.freq-count {
  color: rgba(88, 64, 38, 0.72);
  font-size: 0.85rem;
}

.pattern-info,
.patterns-list {
  color: #4a351f;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 10px;
}

.pattern-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(182, 138, 58, 0.12);
  border: 1px solid rgba(145, 103, 48, 0.2);
  border-radius: 4px;
  color: #7a5526;
  font-size: 0.85rem;
  margin: 4px 4px 4px 0;
}

@media (max-width: 768px) {
  .tool-container {
    padding: 0 0;
  }

  .hash-identifier-tool {
    padding: 25px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  #clearBtn.btn-secondary,
  #copyHashBtn.btn-secondary {
    border-width: 1px;
  }

  .btn-secondary.copied {
    background: rgba(182, 138, 58, 0.22);
    border-color: #ab7c34;
    color: #7a572c;
  }

  .btn-secondary.copied svg {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 14px !important;
    height: 14px !important;
  }

  .btn-secondary.copied i {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #7a572c !important;
  }

  .hash-type-card {
    flex-direction: column;
    text-align: center;
  }

  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .stats-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }
}
