/* Tool Container Styles */
.tool-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* Hash Identifier Tool Styles */
.image-blur-tool {
  background: linear-gradient(135deg, #1b1408, #120d04);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

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

.upload-area {
  width: 100%;
  min-height: 200px;
  padding: 40px;
  background: #151007;
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.05);
}

.upload-area.dragover {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
}

.upload-area i {
  font-size: 3rem;
  color: #d4af37;
}

.upload-area p {
  color: #b8aa86;
  font-size: 1rem;
  margin: 0;
}

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

.mode-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-tab {
  flex: 1;
  padding: 12px 20px;
  background: rgba(212, 175, 55, 0.05);
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  color: #b8aa86;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mode-tab:hover {
  border-color: rgba(212, 175, 55, 0.4);
  color: #e8dcc0;
}

.mode-tab.active {
  background: #d4af37;
  border-color: #d4af37;
  color: #120d04;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-group label {
  color: #d4af37;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-group input[type="range"] {
  width: 100%;
  height: 6px;
  background: #151007;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #d4af37;
  border-radius: 50%;
  cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #d4af37;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.section-title {
  color: #d4af37;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.preset-item {
  padding: 12px 16px;
  background: #151007;
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.preset-item:hover {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

.preset-name {
  color: #e8dcc0;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.preset-details {
  color: #b8aa86;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.effect-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.form-select {
  width: 100%;
  padding: 12px 15px;
  background: #151007;
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  color: #e8dcc0;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.image-stats-section {
  margin-bottom: 25px;
  padding: 20px;
  background: #151007;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.image-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.stat-label {
  color: #b8aa86;
  font-size: 0.9rem;
  font-weight: 500;
}

.stat-value {
  color: #d4af37;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

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

.comparison-container {
  position: relative;
  background: #151007;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
}

.comparison-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.comparison-original {
  position: relative;
  z-index: 1;
  width: 100%;
}

.comparison-original canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.comparison-processed {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 0 var(--slider-position, 50%));
  pointer-events: none;
}

.comparison-processed canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.comparison-slider-container {
  margin-top: 20px;
  position: relative;
}

.comparison-slider {
  width: 100%;
  height: 6px;
  background: #151007;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 10;
}

.comparison-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #d4af37;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
  border: 3px solid #151007;
}

.comparison-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.comparison-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #d4af37;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
  border: 3px solid #151007;
}

.comparison-slider::-moz-range-thumb:active {
  cursor: grabbing;
}

.comparison-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #b8aa86;
  font-size: 0.9rem;
  font-weight: 500;
}

.download-progress-container {
  margin: 25px 0;
  padding: 20px;
  background: #151007;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.download-progress-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #d4af37;
  font-size: 1rem;
  font-weight: 600;
}

.download-progress-header i {
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.download-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}

.download-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #b8891f);
  border-radius: 6px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.download-progress-percent {
  text-align: center;
  color: #d4af37;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

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

.sizes-section h3 {
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.size-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #151007;
  border: 2px solid #d4af3733;
  border-radius: 12px;
  color: #e8dcc0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-option:hover {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.05);
}

.size-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

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

.download-section h3 {
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.favicons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.favicon-item {
  background: #151007;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
}

.favicon-preview {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.favicon-size {
  color: #b8aa86;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.download-btn {
  background: #d4af37;
  color: #120d04;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.category-tab {
  padding: 10px 20px;
  background: #151007;
  border: 2px solid #d4af3733;
  border-radius: 12px;
  color: #b8aa86;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-tab:hover {
  border-color: rgba(212, 175, 55, 0.4);
  color: #e8dcc0;
}

.category-tab.active {
  background: #d4af37;
  border-color: #d4af37;
  color: #120d04;
}

.converter-form {
  margin-bottom: 25px;
}

.conversion-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.input-group {
  flex: 1;
  display: flex;
  gap: 10px;
}

.input-group .form-input {
  flex: 1;
}

.unit-select {
  padding: 12px 15px;
  background: #151007;
  border: 2px solid #d4af3733;
  border-radius: 8px;
  color: #e8dcc0;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.unit-select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.swap-btn {
  padding: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  color: #d4af37;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  transform: rotate(180deg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #d4af37;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  background: #151007;
  border: 2px solid #d4af3733;
  border-radius: 8px;
  color: #e8dcc0;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.form-input::placeholder {
  color: #7f7150;
}

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

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  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: #d4af37;
  color: #120d04;
}

.btn-primary:hover {
  background: #b8891f;
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: #d4af37;
  border: 2px solid #d4af37;
}

.btn-secondary:hover {
  background: #d4af3722;
  color: #ffffff;
  transform: scale(1.05);
}

border: 1px solid rgba(212, 175, 55, 0.1);
  margin-top: 20px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.result-header h3 {
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.result-card {
  background: rgba(212, 175, 55, 0.05);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  color: #b8aa86;
  font-size: 1rem;
  font-weight: 500;
}

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

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

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

.hash-type-info p {
  color: #b8aa86;
  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(0, 0, 0, 0.2);
  border-radius: 6px;
}

.detail-label {
  color: #b8aa86;
  font-weight: 500;
}

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

.error-message {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff6b6b;
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
}

/* Disclaimer Section */

/* Mobile Responsive */
@media (max-width: 768px) {
  .tool-container {
    padding: 0 15px;
  }

  .image-blur-tool {
    padding: 20px;
  }

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

  .btn {
    width: 100%;
  }

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

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

  /* 1px border for reset button on mobile */
  #resetBtn.btn-secondary {
    border-width: 1px;
  }
}

/* Disclaimer Section */
/* Fix disclaimer orange bar - make it static instead of animated */
.tool-page-shell .disclaimer-content::before {
    animation: none !important;
    background: linear-gradient(90deg, #ff8c00, #ffa500, #ff7f00, #ff8c00);
    background-size: 100% 100%;
    background-position: 0 0;
}

