body {
  width: 300px;
  background-color: #121214;
  color: #e1e1e6;
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 16px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.brand-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 20px;
  height: 20px;
}

.app-name {
  font-weight: 600;
  font-size: 15px;
}

.tagline {
  margin: 0;
  font-size: 11px;
  color: #8d8d99;
  line-height: 1.4;
  max-width: 180px;
}

.text-btn {
  background: none;
  border: none;
  color: #8d8d99;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding-top: 2px;
}

.text-btn:hover {
  color: #007bff;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-card {
  background-color: #29292e;
  padding: 10px 16px; /* Reduced padding to match input height */
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s, border-color 0.2s;
  min-height: 38px; /* Standardizing height close to inputs */
  box-sizing: border-box;
}

.link-card:hover {
  border-color: #007bff;
  background-color: #323238;
}

.link-label {
  font-size: 13px;
  font-weight: 500;
  color: #e1e1e6;
}

.edit-icon {
  font-size: 12px;
  color: #8d8d99;
  opacity: 0.6;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, opacity 0.2s;
}

.link-card:hover .edit-icon {
  opacity: 1;
  color: #007bff;
}

#edit-area {
  background: #202024;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid #323238;
}

.input-group {
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  font-size: 10px;
  color: #8d8d99;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 600;
}

#edit-area input {
  width: 100%;
  box-sizing: border-box;
  background: #121214;
  border: 1px solid #29292e;
  color: white;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
}

.edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

#form-title { 
  font-size: 12px; 
  color: #e1e1e6;
  font-weight: 700;
}

.close-x {
  background: none;
  border: none;
  color: #8d8d99;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.primary-btn, .secondary-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.1s;
}

.primary-btn {
  background-color: #007bff;
  color: white;
  border: none;
}

.secondary-btn {
  background-color: transparent;
  color: #ff4444;
  border: 1px solid #323238;
}

#status {
  text-align: center;
  font-size: 11px;
  color: #00ff41;
  margin-top: 10px;
  height: 12px;
}

.footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.footer-link {
  font-size: 11px;
  color: #8d8d99;
  text-decoration: none;
}

.footer-link:visited, .footer-link:active {
  color: #8d8d99;
}

.footer-link:hover {
  color: #007bff;
}

.hidden {
  display: none !important;
}

.is-editing .grid, .is-editing .footer {
  display: none;
}