* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn.btn-primary {
  background-color: #3498db;
  color: #fff;
}
.btn.btn-primary:hover {
  background-color: #217dbb;
}
.btn.btn-secondary {
  background-color: #95a5a6;
  color: #fff;
}
.btn.btn-secondary:hover {
  background-color: #798d8f;
}
.btn.btn-danger {
  background-color: #e74c3c;
  color: #fff;
}
.btn.btn-danger:hover {
  background-color: #d62c1a;
}
.btn.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
}
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-box {
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}
.login-box h1 {
  margin-bottom: 0.5rem;
  color: #3498db;
}
.login-box h2 {
  margin-bottom: 1.5rem;
  color: #333;
}
.error {
  background-color: #fbdedb;
  color: #e74c3c;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.dashboard-header h1 {
  margin: 0;
}
.dashboard-header .header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.collections-actions {
  margin-bottom: 1.5rem;
}
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.collection-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.collection-card .collection-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}
.collection-card .collection-header h3 {
  margin: 0;
  font-size: 1.25rem;
}
.collection-card .collection-meta {
  color: #95a5a6;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.collection-card .collection-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.collection-card .collection-url input {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
}
.device-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.device-badge.device-both {
  background-color: #2ecc71;
  color: #fff;
}
.device-badge.device-desktop {
  background-color: #3498db;
  color: #fff;
}
.device-badge.device-mobile {
  background-color: #ffc107;
  color: #333;
}
.empty-state {
  text-align: center;
  color: #95a5a6;
  padding: 2rem;
}
.collection-header {
  margin-bottom: 2rem;
}
.collection-header h1 {
  margin: 0.5rem 0 0 0;
}
.collection-header .back-link {
  color: #3498db;
  text-decoration: none;
}
.collection-header .back-link:hover {
  text-decoration: underline;
}
.collection-header .header-actions {
  display: flex;
  gap: 0.5rem;
}
.collection-settings {
  margin-bottom: 2rem;
}
.bookmarks-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.bookmarks-section .section-header h3 {
  margin: 0;
}
.bookmark-list {
  list-style: none;
}
.bookmark-item {
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: move;
  transition: all 0.3s ease;
}
.bookmark-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.bookmark-item.dragging {
  opacity: 0.5;
}
.bookmark-item .bookmark-handle {
  color: #95a5a6;
  cursor: grab;
  user-select: none;
}
.bookmark-item .bookmark-handle:active {
  cursor: grabbing;
}
.bookmark-item .bookmark-content {
  flex: 1;
}
.bookmark-item .bookmark-content .bookmark-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.bookmark-item .bookmark-content .bookmark-url {
  font-size: 0.875rem;
  color: #95a5a6;
  word-break: break-all;
}
.bookmark-item .bookmark-actions {
  display: flex;
  gap: 0.5rem;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal .modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
  max-width: 500px;
  width: 90%;
}
.public-view {
  background: #fff;
}
.public-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}
.public-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ddd;
}
.public-header h1 {
  margin-bottom: 0.5rem;
}
.public-bookmark-list {
  list-style: none;
}
.public-bookmark-item {
  margin-bottom: 0.5rem;
}
.public-bookmark-item a {
  display: block;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}
.public-bookmark-item a:hover {
  background: #e8e8e8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.public-bookmark-item a .public-bookmark-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #3498db;
}
.public-bookmark-item a .public-bookmark-url {
  font-size: 0.875rem;
  color: #95a5a6;
  word-break: break-all;
}
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .collections-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .collection-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
