:root {
  --background: #ffffff;
  --foreground: #000000;
  --card-background: #f0f0f0;
  --button-background: #007bff;
  --button-foreground: #ffffff;
  --input-background: #ffffff;
  --input-border: #cccccc;
}

.dark-theme {
  --background: #1a1a1a;
  --foreground: #ffffff;
  --card-background: #2a2a2a;
  --button-background: #0056b3;
  --button-foreground: #ffffff;
  --input-background: #333333;
  --input-border: #444444;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 750px;
  margin: 0 auto;
  padding: 140px;
}

.theme-toggle {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

#themeToggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

#themeToggle .sun {
  display: none;
}

.dark-theme #themeToggle .sun {
  display: inline;
}

.dark-theme #themeToggle .moon {
  display: none;
}

.card {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.card-header {
  margin-bottom: 20px;
}

.card-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.card-description {
  color: #666666;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

input[type="url"],
input[type="text"] {
  width: 97%;
  padding: 10px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background-color: var(--input-background);
  color: var(--foreground);
}

.button {
  background-color: var(--button-background);
  color: var(--button-foreground);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #0056b3;
}

.flex {
  display: flex;
  gap: 10px;
}

.hidden {
  display: none;
}

#recentLinksList {
  margin-top: 20px;
}

#recentLinks {
  list-style-type: none;
  padding: 0;
}

#recentLinks li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background-color: var(--input-background);
  border-radius: 4px;
}

#recentLinks .long-url {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 10px;
}

#recentLinks .short-url {
  color: var(--button-background);
  text-decoration: none;
}

#recentLinks .short-url:hover {
  text-decoration: underline;
}

