/* URL Encode specific styles */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 16px;
  border: 2px solid #e1e8ed;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
}

.tab-btn:hover:not(.active) {
  border-color: #667eea;
  background: #f8f9fa;
}

.mode-content {
  display: block;
}

.mode-content.hidden {
  display: none;
}

.encode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 2px solid #e1e8ed;
}

.option-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.option-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #667eea;
}

.component-section {
  margin-top: 16px;
}

.url-components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e1e8ed;
}

.component-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-btn {
  padding: 6px 12px;
  border: 2px solid #e1e8ed;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-btn:hover {
  border-color: #667eea;
  background: #f8f9fa;
}

.encoding-table {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e1e8ed;
}

.table-row {
  display: grid;
  grid-template-columns: 80px 120px 1fr;
  border-bottom: 1px solid #e1e8ed;
}

.table-row:last-child {
  border-bottom: none;
}

.table-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-weight: 600;
}

.table-cell {
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.table-header .table-cell {
  font-weight: 600;
}

.table-row:not(.table-header):nth-child(even) {
  background: rgba(102, 126, 234, 0.05);
}

.help-content {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.help-content ul {
  margin: 0;
  padding-left: 20px;
}

.help-content li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #495057;
}

.help-content strong {
  color: #2c3e50;
}

.url-preview {
  background: white;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: #495057;
  word-break: break-all;
  line-height: 1.5;
}

.url-preview.empty {
  color: #6c757d;
  font-style: italic;
}

.component-highlight {
  background: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
  border: 1px solid #ffeaa7;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 6px;
  border: 2px solid #f5c6cb;
  margin-top: 12px;
  font-size: 13px;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px 16px;
  border-radius: 6px;
  border: 2px solid #c3e6cb;
  margin-top: 12px;
  font-size: 13px;
}

.stats-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #6c757d;
}

.char-count {
  font-weight: 500;
}

@media (max-width: 768px) {
  .encode-options {
    flex-direction: column;
    gap: 12px;
  }
  
  .url-components {
    grid-template-columns: 1fr;
  }
  
  .table-row {
    grid-template-columns: 60px 100px 1fr;
  }
  
  .table-cell {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .test-cases {
    justify-content: center;
  }
  
  .stats-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}