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

/* URL Obfuscator Tool Styles — golden luxury */
.url-obfuscator-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);
}

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

.mode-tab {
  flex: 1;
  padding: 12px 20px;
  background: rgba(182, 138, 58, 0.07);
  border: 2px solid rgba(145, 103, 48, 0.22);
  border-radius: 12px;
  color: rgba(88, 64, 38, 0.75);
  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(145, 103, 48, 0.35);
  color: #5e4329;
}

.mode-tab.active {
  background: linear-gradient(180deg, #bc8e3d 0%, #9f742f 100%);
  border-color: rgba(121, 85, 40, 0.48);
  color: #fff8ef;
}

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

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

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

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

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

.url-output {
  background: #fffaf2;
  cursor: not-allowed;
}

.url-input::placeholder,
.url-output::placeholder {
  color: #8c7558;
}

.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.2);
  border-color: #ab7c34;
}

.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: 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);
}

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

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

  .url-obfuscator-tool {
    padding: 20px;
    overflow-x: hidden;
    max-width: 100%;
  }

  .mode-tabs {
    flex-direction: column;
  }

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

  .btn {
    width: 100%;
  }

  .url-input,
  .url-output {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

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

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

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