/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: #0f0f0f;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Input section */
.input.section {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.input.section input {
  padding: 1rem;
  background: #111;
  border: 2px solid #333;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input.section input:focus {
  outline: none;
  border-color: #667eea;
  background: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input.section input::placeholder {
  color: #666;
}

.input.section button {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.input.section button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.input.section button:active {
  transform: translateY(0);
}

/* Bookmark list */
.bookmark-list {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Empty state */
.empty-state {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding: 4rem 2rem;
}

/* Bookmark items */
.bookmark-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.bookmark-item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bookmark-item:last-child {
  margin-bottom: 0;
}

.category-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bookmark-content {
  flex: 1;
  min-width: 0;
}

.bookmark-url {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-url:hover {
  color: #667eea;
}

.bookmark-category {
  color: #888;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.delete-btn {
  background: #ff4757;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.delete-btn:hover {
  background: #ff3742;
  transform: scale(1.05);
}

/* Category colors */
.category-work { background: linear-gradient(135deg, #ff6b6b, #ee5a52); }
.category-personal { background: linear-gradient(135deg, #4ecdc4, #44a08d); }
.category-learning { background: linear-gradient(135deg, #a55eea, #8e44ad); }
.category-entertainment { background: linear-gradient(135deg, #ffa502, #ff6348); }
.category-tools { background: linear-gradient(135deg, #26de81, #20bf6b); }
.category-news { background: linear-gradient(135deg, #45aaf2, #2d98da); }
.category-default { background: linear-gradient(135deg, #778ca3, #57606f); }

/* Footer */
.footer {
  text-align: center;
  padding: 3rem 2rem 2rem;
  margin-top: 3rem;
  border-top: 1px solid #333;
}

.footer h4 {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.developer-link {
  color: #667eea;
  text-decoration: none;
  margin-left: 0.25rem;
  font-weight: 500;
}

.developer-link:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  h1 {
    padding: 1.5rem 1rem;
    font-size: 1.5rem;
  }
  
  .input-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .input.section {
    padding: 1.5rem;
  }
  
  .bookmark-list {
    padding: 1.5rem;
  }
  
  .bookmark-item {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .bookmark-content {
    width: 100%;
  }
  
  .delete-btn {
    align-self: flex-end;
  }
}