/* --- Admin Styles --- */
body {
  background-color: #0d0d14;
}

/* --- Admin Header --- */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(12, 238, 250, 0.12);
}

.admin-header h1 {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff0099;
  text-shadow: 0 0 8px rgba(255, 0, 153, 0.3);
  margin: 0;
}

/* --- Admin Nav --- */
.admin-nav {
  display: flex;
  gap: 0.5rem;
}

.admin-nav a,
.admin-nav button {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(12, 238, 250, 0.2);
  border-radius: 3px;
  background: rgba(12, 238, 250, 0.04);
  color: #0ceefa;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.admin-nav a:hover,
.admin-nav button:hover {
  border-color: rgba(12, 238, 250, 0.4);
  background: rgba(12, 238, 250, 0.08);
}

.admin-nav .btn-new {
  border-color: rgba(255, 0, 153, 0.3);
  color: #ff0099;
}

.admin-nav .btn-new:hover {
  border-color: rgba(255, 0, 153, 0.6);
  background: rgba(255, 0, 153, 0.08);
}

.admin-nav .btn-logout {
  border-color: rgba(255, 80, 80, 0.3);
  color: #ff5050;
}

.admin-nav .btn-logout:hover {
  border-color: rgba(255, 80, 80, 0.6);
  background: rgba(255, 80, 80, 0.08);
}

/* --- Bookmark List --- */
ul.bookmarks {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.bookmarks li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(12, 238, 250, 0.08);
  border-radius: 3px;
  margin-bottom: 0.4rem;
  background: rgba(12, 238, 250, 0.02);
  transition: border-color 0.2s, background 0.2s;
}

ul.bookmarks li:hover {
  border-color: rgba(12, 238, 250, 0.2);
  background: rgba(12, 238, 250, 0.04);
}

ul.bookmarks li a {
  color: #0ceefa;
  text-decoration: none;
  font-size: 0.9rem;
}

ul.bookmarks li a:hover {
  color: #ff0099;
  text-shadow: 0 0 6px rgba(255, 0, 153, 0.3);
}

ul.bookmarks li .actions {
  display: flex;
  gap: 0.5rem;
}

ul.bookmarks li .actions a {
  font-size: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

ul.bookmarks li .actions a:hover {
  opacity: 1;
}

ul.bookmarks li .actions .delete {
  color: #ff5050;
}

/* --- Editor --- */
.editor {
  margin-top: 1rem;
}

.editor .field {
  margin-bottom: 1rem;
}

.editor label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 238, 250, 0.5);
  margin-bottom: 0.3rem;
}

.editor input[type=text],
.editor input[type=url],
.editor textarea {
  width: 100%;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #0ceefa;
  background: rgba(12, 238, 250, 0.04);
  border: 1px solid rgba(12, 238, 250, 0.15);
  border-radius: 3px;
  padding: 0.5rem 0.6rem;
  outline: none;
  transition: border-color 0.2s;
}

.editor input[type=text]:focus,
.editor input[type=url]:focus,
.editor textarea:focus {
  border-color: rgba(12, 238, 250, 0.4);
}

.editor textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.editor .hint {
  font-size: 0.7rem;
  color: rgba(12, 238, 250, 0.3);
  margin-top: 0.2rem;
}

.editor .actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.editor input[type=submit],
.editor .btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(255, 0, 153, 0.3);
  border-radius: 3px;
  background: rgba(255, 0, 153, 0.06);
  color: #ff0099;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.editor input[type=submit]:hover,
.editor .btn:hover {
  border-color: rgba(255, 0, 153, 0.6);
  background: rgba(255, 0, 153, 0.12);
}

.editor .btn-cancel {
  border-color: rgba(12, 238, 250, 0.2);
  color: #0ceefa;
  background: rgba(12, 238, 250, 0.04);
  text-decoration: none;
}

.editor .btn-cancel:hover {
  border-color: rgba(12, 238, 250, 0.4);
  background: rgba(12, 238, 250, 0.08);
}

.error-message {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 3px;
  background: rgba(255, 80, 80, 0.08);
  color: #ff5050;
  font-size: 0.85rem;
}

/* --- Delete Confirmation --- */
.delete-confirm {
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 1rem;
  background: rgba(255, 80, 80, 0.04);
  text-align: center;
}

.delete-confirm h2 {
  font-size: 1.1rem;
  color: #ff5050;
  margin-bottom: 0.5rem;
}

.delete-confirm p {
  margin-bottom: 1rem;
  color: rgba(12, 238, 250, 0.7);
}

.delete-confirm .actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.delete-confirm .btn-delete {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(255, 80, 80, 0.4);
  border-radius: 3px;
  background: rgba(255, 80, 80, 0.08);
  color: #ff5050;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.delete-confirm .btn-delete:hover {
  border-color: rgba(255, 80, 80, 0.7);
  background: rgba(255, 80, 80, 0.15);
}

.delete-confirm .btn-cancel {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(12, 238, 250, 0.2);
  border-radius: 3px;
  background: rgba(12, 238, 250, 0.04);
  color: #0ceefa;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.delete-confirm .btn-cancel:hover {
  border-color: rgba(12, 238, 250, 0.4);
  background: rgba(12, 238, 250, 0.08);
}

/* --- Login Page --- */
.login-container {
  max-width: 20rem;
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid rgba(12, 238, 250, 0.15);
  border-radius: 4px;
  background: rgba(12, 238, 250, 0.02);
}

.login-container h2 {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff0099;
  text-shadow: 0 0 8px rgba(255, 0, 153, 0.3);
  margin-bottom: 1.5rem;
}

.login-container .field {
  margin-bottom: 1rem;
}

.login-container label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 238, 250, 0.5);
  margin-bottom: 0.25rem;
}

.login-container input[type=text],
.login-container input[type=password] {
  width: 100%;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #0ceefa;
  background: rgba(12, 238, 250, 0.04);
  border: 1px solid rgba(12, 238, 250, 0.15);
  border-radius: 3px;
  padding: 0.5rem 0.6rem;
  outline: none;
  transition: border-color 0.2s;
}

.login-container input[type=text]:focus,
.login-container input[type=password]:focus {
  border-color: rgba(12, 238, 250, 0.4);
}

.login-container input[type=submit] {
  width: 100%;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 0, 153, 0.3);
  border-radius: 3px;
  background: rgba(255, 0, 153, 0.06);
  color: #ff0099;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.login-container input[type=submit]:hover {
  border-color: rgba(255, 0, 153, 0.6);
  background: rgba(255, 0, 153, 0.12);
}

.login-error {
  text-align: center;
  color: #ff5050;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* --- Export Links --- */
.export-links {
  font-size: 0.8rem;
  color: rgba(12, 238, 250, 0.5);
  margin-bottom: 1rem;
}

.export-links a {
  color: #0ceefa;
  text-decoration: none;
}

.export-links a:hover {
  color: #ff0099;
}

/* --- Bookmark List Enhancements --- */
ul.bookmarks li .bookmark-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

ul.bookmarks li .bookmark-info a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

ul.bookmarks li .favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

ul.bookmarks li .thumbnail {
  width: 60px;
  height: 38px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(12, 238, 250, 0.1);
}

ul.bookmarks li .new-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
  background: rgba(255, 0, 153, 0.2);
  border: 1px solid rgba(255, 0, 153, 0.4);
  border-radius: 2px;
  color: #ff0099;
  flex-shrink: 0;
}

ul.bookmarks li.is-unread {
  border-left: 3px solid #ff0099;
}

ul.bookmarks li.is-read {
  opacity: 0.6;
}

.btn-sm {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid rgba(12, 238, 250, 0.2);
  border-radius: 2px;
  background: rgba(12, 238, 250, 0.04);
  color: #0ceefa;
  cursor: pointer;
  text-decoration: none;
}

.btn-sm:hover {
  border-color: rgba(12, 238, 250, 0.4);
  background: rgba(12, 238, 250, 0.08);
}

.btn-sm.archived {
  color: #00ff64;
  border-color: rgba(0, 255, 100, 0.3);
}

.btn-sm.delete {
  color: #ff5050;
  border-color: rgba(255, 80, 80, 0.3);
}

.btn-sm.delete:hover {
  border-color: rgba(255, 80, 80, 0.5);
  background: rgba(255, 80, 80, 0.1);
}

/* --- Import Page --- */
.import-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(12, 238, 250, 0.12);
  border-radius: 4px;
  background: rgba(12, 238, 250, 0.02);
}

.import-info ul {
  margin: 0.5rem 0 0 1.5rem;
  font-size: 0.85rem;
}

.import-info li {
  margin-bottom: 0.25rem;
}

.import-result {
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(0, 255, 100, 0.2);
  border-radius: 4px;
  background: rgba(0, 255, 100, 0.04);
}

.import-result .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgba(255, 0, 153, 0.3);
  border-radius: 3px;
  background: rgba(255, 0, 153, 0.06);
  color: #ff0099;
  text-decoration: none;
}

/* --- API Keys Page --- */
.new-key-notice {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 255, 100, 0.3);
  border-radius: 4px;
  background: rgba(0, 255, 100, 0.06);
}

.new-key-notice p {
  margin-bottom: 0.5rem;
}

.api-key {
  display: block;
  padding: 0.75rem;
  background: rgba(12, 238, 250, 0.08);
  border-radius: 3px;
  font-size: 0.85rem;
  word-break: break-all;
  user-select: all;
}

.section-title {
  font-size: 1rem;
  color: #0ceefa;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(12, 238, 250, 0.12);
}

.no-items {
  color: rgba(12, 238, 250, 0.4);
  font-size: 0.9rem;
}

.api-keys-list {
  list-style: none;
  padding: 0;
}

.api-keys-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(12, 238, 250, 0.08);
  border-radius: 3px;
  margin-bottom: 0.5rem;
  background: rgba(12, 238, 250, 0.02);
}

.api-keys-list .key-info {
  flex: 1;
}

.api-keys-list .key-meta {
  display: block;
  font-size: 0.75rem;
  color: rgba(12, 238, 250, 0.4);
  margin-top: 0.25rem;
}

/* --- File Input --- */
input[type="file"] {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #0ceefa;
}
