/* src/tools/url-encoder/tool.css */
.url-tool-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: inherit;
}

.url-tabs {
  display: flex;
  border-bottom: 1px solid #2a2d3a;
  gap: 0.5rem;
}

.url-tab-btn {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.url-tab-btn:hover {
  color: #f0f2f8;
}

.url-tab-btn.active {
  color: #4f8ef7;
  border-bottom-color: #4f8ef7;
}

.url-card {
  background: #13161f;
  border: 1px solid #2a2d3a;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.url-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #1a1d27;
  border-bottom: 1px solid #2a2d3a;
  font-size: 0.8125rem;
  font-weight: 600;
}

.url-textarea {
  width: 100%;
  min-height: 140px;
  background: #0f1117;
  border: none;
  padding: 0.75rem;
  color: #f0f2f8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.url-parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  background: #0f1117;
}

.url-part-box {
  background: #13161f;
  border: 1px solid #2a2d3a;
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.url-part-key {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  color: #9ca3af;
  font-weight: 600;
}

.url-part-val {
  font-size: 0.775rem;
  font-family: 'JetBrains Mono', monospace;
  color: #f0f2f8;
  word-break: break-all;
}

.params-table-container {
  overflow-x: auto;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.params-table th {
  background: #1a1d27;
  padding: 0.5rem 0.75rem;
  color: #9ca3af;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid #2a2d3a;
}

.params-table td {
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid #1f2330;
}

.param-input {
  width: 100%;
  background: #0f1117;
  border: 1px solid #2a2d3a;
  border-radius: 0.25rem;
  padding: 0.375rem 0.5rem;
  color: #f0f2f8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  outline: none;
}

.param-input:focus {
  border-color: #4f8ef7;
}

.btn-del-param {
  color: #ef4444;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.btn-del-param:hover {
  background: rgba(239, 68, 68, 0.15);
}
