:root {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-teal: #2dd4bf;
  --accent-teal-hover: #5eead4;
  --card-border: #334155;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  margin: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--accent-teal);
  text-shadow: 0 0 20px rgba(45, 212, 191, 0.2);
}

#links-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-teal);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-url {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-teal);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.card-url:hover {
  color: var(--accent-teal-hover);
  text-decoration: underline;
}

.card-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-id {
  background: var(--card-border);
  color: var(--text-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: monospace;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-left: 1rem;
}

.action-btn {
  background: var(--card-border);
  color: var(--text-primary);
  border: 1px solid transparent;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover, .copy-btn.copied {
  background: var(--accent-teal);
  color: var(--bg-color);
}

.delete-btn {
  color: #ef4444; /* Red for delete */
}

.delete-btn:hover {
  background: #ef4444;
  color: white;
}

@media (max-width: 640px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .card {
    padding: 1.25rem;
  }
}
