/* CSS Variables for Light and Dark Themes */
:root {
  --bg-color: #f2f2f2;
  --text-color: #212529;
  --nav-bg: #f8f9fa;
  --border-color: #e9ecef;
  --card-bg: #f8f9fa;
  --input-bg: #ffffff;
  --input-border: #ced4da;
  --modal-bg: #ffffff;
  --modal-overlay: rgba(0, 0, 0, 0.5);
  --shadow-color: rgba(0, 0, 0, 0.1);
  --accent-color: #007bff;
  --theme-toggle-bg: #f8f9fa;
  --theme-toggle-border: #ced4da;
}

[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --text-color: #e9ecef;
  --nav-bg: #2d3748;
  --border-color: #4a5568;
  --card-bg: #2d3748;
  --input-bg: #4a5568;
  --input-border: #718096;
  --modal-bg: #2d3748;
  --modal-overlay: rgba(0, 0, 0, 0.8);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --accent-color: #4299e1;
  --theme-toggle-bg: #2d3748;
  --theme-toggle-border: #4a5568;
}

body {
  font-family: sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  background: var(--nav-bg);
  padding: 1rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  font-weight: 500;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
}

.modal-avatar {
  width: 24px;
  height: 24px;
}

.user-clickable {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
}

.user-clickable:hover {
  background: var(--border-color);
}

.logout-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background: #c82333;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.05);
}

/* Help Toggle Button */
.help-toggle {
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.help-toggle:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.05);
}

/* Changelog Toggle Button */
.changelog-toggle {
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.changelog-toggle:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.05);
}

/* Nav Link */
.nav-link {
  background: var(--theme-toggle-bg);
  border: 1px solid var(--theme-toggle-border);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.05);
}

/* Form Styling */
.create-album, .upload-photo {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.create-album h2, .upload-photo h2 {
  margin-top: 0;
  color: var(--text-color);
}

.create-album form, .upload-photo form {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Input and Button Styling */
input[type="text"], input[type="file"] {
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--input-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="file"]:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

input[type="text"] {
  flex: 1;
  min-width: 200px;
}

button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

button:hover {
  background: var(--accent-color);
  filter: brightness(0.9);
}

/* Albums Grid */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.album-card {
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px var(--shadow-color);
  overflow: hidden;
}

.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

/* Album Thumbnail */
.album-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.album-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-thumbnail:hover img {
  transform: scale(1.05);
}

.album-thumbnail-placeholder {
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-thumbnail-placeholder a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--text-color);
}

.placeholder-content {
  text-align: center;
  opacity: 0.6;
}

.placeholder-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.placeholder-text {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Album Info */
.album-info {
  padding: 1rem;
}

.album-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-color);
}

.album-info a {
  text-decoration: none;
  color: var(--accent-color);
}

.album-info a:hover {
  text-decoration: underline;
}

.album-tag-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: white !important;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.album-tag-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
  text-decoration: none;
  color: white !important;
}

/* Photos Grid */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.photo-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px var(--shadow-color);
  position: relative;
  transition: all 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-item img:hover {
  transform: scale(1.02);
}

/* Video thumbnail styling to match images */
.photo-item .photo-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-item .photo-thumbnail:hover {
  transform: scale(1.02);
}

/* Video indicator overlay */
.video-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 24px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  background: transparent;
  cursor: pointer;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Ensure the overlay doesn't block clicks except on the button areas */
.photo-overlay {
  background: transparent;
}

/* Only the action areas should capture clicks, rest should pass through */
.photo-actions, .photo-bottom-actions {
  pointer-events: auto;
}

.photo-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px;
}

.photo-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.delete-btn {
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
  pointer-events: auto;
}

.delete-btn:hover {
  background: rgba(200, 35, 51, 0.95);
}

.share-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 6px 8px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  backdrop-filter: blur(4px);
  min-width: 32px;
  height: 32px;
}

.share-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.share-btn .share-icon {
  font-size: 16px;
  transition: transform 0.2s;
}

.share-btn:hover .share-icon {
  transform: scale(1.1);
}

.like-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.like-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.like-btn .like-icon {
  font-size: 16px;
  transition: transform 0.2s;
}

.like-btn:hover .like-icon {
  transform: scale(1.1);
}

.like-btn .like-count {
  font-weight: 600;
  font-size: 12px;
}

/* Modal Actions Section */
.modal-actions-section {
  margin-top: 10px;
  text-align: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.modal-share-btn {
  background: rgba(31, 78, 129, 0.7);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.modal-share-btn:hover {
  background: rgba(0, 123, 255, 0.9);
  transform: scale(1.05);
}

.modal-share-btn .share-icon {
  font-size: 18px;
  transition: transform 0.2s;
}

.modal-share-btn:hover .share-icon {
  transform: scale(1.1);
}

.modal-share-btn .share-text {
  font-weight: 600;
}

/* Modal Like Section */
.modal-like-section {
  margin-top: 10px;
  text-align: center;
}

.modal-like-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.modal-like-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.modal-like-btn .like-icon {
  font-size: 18px;
  transition: transform 0.2s;
}

.modal-like-btn:hover .like-icon {
  transform: scale(1.1);
}

.modal-like-btn .like-count {
  font-weight: 600;
}

/* Login Page Styling */
.login-container {
  text-align: center;
  max-width: 400px;
  margin: 50px auto;
  padding: 2rem;
}

.login-form {
  margin-top: 2rem;
}

.discord-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #5865F2;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.discord-login-btn:hover {
  background: #4752C4;
  color: white;
}

/* Image Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal[style*="block"] {
  display: flex !important;
}

.modal-content {
  max-width: 90%;
  /* Ensure room for info panel; prevent pushing it off-screen */
  max-height: 60vh;
  border-radius: 8px;
  cursor: default;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.modal-close:hover,
.modal-close:focus {
  color: #ccc;
}

/* Modal Navigation Arrows */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 60px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  user-select: none;
  padding: 20px;
  transition: color 0.2s, background-color 0.2s;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav:hover {
  color: #007bff;
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-nav-left {
  left: 20px;
}

.modal-nav-right {
  right: 20px;
}

/* Modal Photo Info - Positioned below image using flexbox */
.modal-info {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  max-width: 400px;
  z-index: 1001;
  margin-top: 20px;
  flex-shrink: 0;
  /* Keep info within viewport and scroll if overflowing */
  max-height: 32vh;
  overflow-y: auto;
}

.photo-meta {
  text-align: center;
}

.photo-meta p {
  margin: 5px 0;
  font-size: 14px;
}

.photo-meta strong {
  color: #007bff;
}

/* Hide navigation arrows when not enough photos */
.modal-nav.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Make photo items clickable */
.photo-item img {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

input, button {
  margin: 5px;
}
.flash {
  list-style: none;
  padding: 0;
  color: green;
}

.pagination {
  margin-top: 20px;
  font-size: 1.1em;
  text-align: center;
}
.pagination a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--accent-color);
  padding: 8px 12px;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--accent-color);
  color: white;
}

/* Footer Styling */
.footer {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: var(--nav-bg);
  border-top: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.version-info {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 12px;
  font-family: 'Courier New', monospace;
}

/* Back Button Styling */
.back-btn {
  background: var(--card-bg);
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  display: inline-block;
  margin-bottom: 1rem;
}

.back-btn:hover {
  background: var(--accent-color);
  color: white;
}

/* Custom Confirm Dialog */
.confirm-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(2px);
}

.confirm-modal-content {
  background-color: var(--modal-bg);
  margin: 15% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px var(--shadow-color);
  animation: confirmModalSlideIn 0.2s ease-out;
}

@keyframes confirmModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirm-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
}

.confirm-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #dc3545;
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirm-modal-body {
  padding: 20px 24px;
  color: var(--text-color);
  line-height: 1.5;
}

.confirm-modal-footer {
  padding: 16px 24px 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.confirm-modal-btn-cancel {
  background: #6c757d;
  color: white;
}

.confirm-modal-btn-cancel:hover {
  background: #5a6268;
}

.confirm-modal-btn-delete {
  background: #dc3545;
  color: white;
}

.confirm-modal-btn-delete:hover {
  background: #c82333;
}

.confirm-modal-btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* User Info Modal */
.user-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(2px);
}

.user-modal-content {
  background-color: var(--modal-bg);
  margin: 10% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px var(--shadow-color);
  animation: userModalSlideIn 0.2s ease-out;
}

@keyframes userModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-modal-close {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.user-modal-close:hover {
  opacity: 1;
}

.user-modal-body {
  padding: 20px 24px 24px;
}

.user-info-grid {
  display: grid;
  gap: 16px;
}

.user-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--card-bg);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  transition: all 0.3s ease;
}

.user-info-item strong {
  color: var(--text-color);
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 16px;
}

.user-info-item span {
  color: var(--text-color);
  text-align: right;
  word-break: break-word;
}

.user-id {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  background: var(--input-bg);
  color: var(--text-color);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* Pagination styling with theme support */
.pagination a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--accent-color);
  padding: 8px 12px;
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--accent-color);
  color: white;
}

/* Flash messages with theme support */
.flash {
  list-style: none;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #28a745;
  margin-bottom: 1rem;
}

.verification-status {
  font-weight: 600;
}

/* Replaced invalid :contains with explicit classes */
.verification-status.verified-yes {
  color: #28a745;
}

.verification-status.verified-no {
  color: #dc3545;
}

/* Discord Roles Styling */
.roles-item {
  flex-direction: column;
  align-items: flex-start !important;
}

.user-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.role-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  transition: transform 0.1s ease;
}

.role-badge:hover {
  transform: scale(1.05);
}

/* Help Modal */
.help-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(2px);
}

.help-modal-content {
  background-color: var(--modal-bg);
  margin: 8% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 30px var(--shadow-color);
  animation: helpModalSlideIn 0.2s ease-out;
}

@keyframes helpModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.help-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-modal-close {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.help-modal-close:hover {
  opacity: 1;
}

.help-modal-body {
  padding: 20px 24px 24px;
}

.shortcuts-grid {
  display: grid;
  gap: 24px;
}

.shortcut-section h4 {
  margin: 0 0 12px 0;
  color: var(--accent-color);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 6px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.shortcut-item kbd {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
  min-width: 24px;
  text-align: center;
  box-shadow: 0 1px 2px var(--shadow-color);
}

.shortcut-item span {
  color: var(--text-color);
  font-size: 14px;
}

/* Changelog Modal */
.changelog-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(2px);
}

.changelog-modal-content {
  background-color: var(--modal-bg);
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  box-shadow: 0 10px 30px var(--shadow-color);
  animation: changelogModalSlideIn 0.2s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes changelogModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.changelog-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.changelog-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.changelog-modal-close {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.changelog-modal-close:hover {
  opacity: 1;
}

.changelog-modal-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.changelog-versions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.changelog-version {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.changelog-version:hover {
  box-shadow: 0 2px 8px var(--shadow-color);
}

.changelog-version-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.changelog-version-header:hover {
  background: var(--accent-color);
  color: white;
}

.changelog-version-header:hover .changelog-version-date,
.changelog-version-header:hover .changelog-collapse-icon {
  color: rgba(255, 255, 255, 0.8);
}

.changelog-version-title {
  margin: 0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.changelog-version-name {
  color: var(--text-color);
  font-weight: 700;
}

.changelog-version-date {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
  font-weight: 400;
}

.changelog-collapse-icon {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.changelog-version-content {
  padding: 20px;
  background: var(--modal-bg);
}

.changelog-category {
  margin-bottom: 20px;
}

.changelog-category:last-child {
  margin-bottom: 0;
}

.changelog-category-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 4px;
  display: inline-block;
}

.changelog-category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog-item {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-color);
  line-height: 1.5;
  font-size: 14px;
}

.changelog-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 16px;
}

.changelog-item:hover {
  color: var(--accent-color);
  padding-left: 24px;
  transition: all 0.2s ease;
}

/* Album Header Styling */
.album-header {
  margin-bottom: 1rem;
}

.album-name-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.album-name-display h1 {
  margin: 0;
  color: var(--text-color);
  flex: 1;
}

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

.edit-album-btn, .delete-album-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.edit-album-btn:hover {
  opacity: 1;
  background: var(--accent-color);
  color: white;
  transform: scale(1.05);
}

.delete-album-btn:hover {
  opacity: 1;
  background: #dc3545;
  color: white;
  transform: scale(1.05);
}

.album-name-edit {
  margin-top: 8px;
}

.album-name-edit form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.album-name-edit input[type="text"] {
  flex: 1;
  min-width: 200px;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 12px;
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-color);
}

.album-name-edit input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.album-tag-select {
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.album-tag-select:hover {
  border-color: var(--accent-color);
}

.album-tag-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.save-btn, .cancel-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.save-btn {
  background: #28a745;
  color: white;
}

.save-btn:hover {
  background: #218838;
  transform: scale(1.05);
}

.cancel-btn {
  background: #6c757d;
  color: white;
}

.cancel-btn:hover {
  background: #5a6268;
  transform: scale(1.05);
}

/* Search Container */
.search-container {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  background: var(--input-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.search-btn, .clear-search-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

.search-btn {
  background: var(--accent-color);
  color: white;
}

.search-btn:hover {
  background: var(--accent-color);
  filter: brightness(0.9);
  transform: scale(1.05);
}

.clear-search-btn {
  background: #6c757d;
  color: white;
}

.clear-search-btn:hover {
  background: #5a6268;
  transform: scale(1.05);
}

.search-results-info {
  margin: 0.5rem 0 0 0;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 14px;
  font-style: italic;
}

/* Alfred-style Search Modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  padding: 10vh 20px 20px;
  box-sizing: border-box;
}

.search-modal-content {
  max-width: 600px;
  margin: 0 auto;
  background: var(--modal-bg);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: searchModalSlideIn 0.2s ease-out;
}

@keyframes searchModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-modal-input-container {
  position: relative;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.search-modal-input {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--text-color);
  outline: none;
  box-sizing: border-box;
}

.search-modal-input::placeholder {
  color: var(--text-color);
  opacity: 0.5;
}

.search-modal-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-modal-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-color);
  opacity: 0.6;
  font-style: italic;
}

.search-modal-error {
  color: #dc3545;
  opacity: 0.8;
}

.search-modal-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.search-modal-item:last-child {
  border-bottom: none;
}

.search-modal-item:hover,
.search-modal-item.selected {
  background: var(--accent-color);
  color: white;
}

.search-modal-item:hover .search-modal-item-subtitle,
.search-modal-item.selected .search-modal-item-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.search-modal-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.search-modal-item-subtitle {
  font-size: 14px;
  opacity: 0.7;
  color: var(--text-color);
  transition: color 0.2s ease;
}

/* Album Actions Container */
.album-actions-container {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.album-actions-container h2 {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
}

/* Admin Actions Container */
.admin-actions-container {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.admin-actions-container h2 {
  margin: 0 0 0 0;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: var(--accent-color);
  color: white;
  min-width: 140px;
  justify-content: center;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
  filter: brightness(1.1);
}

.action-btn .btn-icon {
  font-size: 18px;
}

.action-btn .btn-text {
  font-weight: 600;
}

.create-btn {
  background: #28a745;
}

.create-btn:hover {
  background: #218838;
}

.search-btn {
  background: var(--accent-color);
}

.search-btn:hover {
  background: var(--accent-color);
  filter: brightness(0.9);
}

/* Search Results Banner */
.search-results-banner {
  background: var(--card-bg);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
}

.search-results-banner .search-results-info {
  margin: 0;
  color: var(--text-color);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-search-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.clear-search-link:hover {
  background: var(--accent-color);
  color: white;
}

/* Create Album Modal */
.create-album-modal {
  display: none;
  position: fixed;
  z-index: 2500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(2px);
}

.create-album-modal-content {
  background-color: var(--modal-bg);
  margin: 15% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 10px 30px var(--shadow-color);
  animation: createAlbumModalSlideIn 0.2s ease-out;
}

@keyframes createAlbumModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.create-album-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.create-album-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.create-album-modal-close {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.create-album-modal-close:hover {
  opacity: 1;
}

.create-album-modal-body {
  padding: 20px 24px 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 14px;
}

.album-name-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  background: var(--input-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.album-name-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-cancel, .btn-create {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.btn-cancel {
  background: #6c757d;
  color: white;
}

.btn-cancel:hover {
  background: #5a6268;
}

.btn-create {
  background: #28a745;
  color: white;
}

.btn-create:hover {
  background: #218838;
}

/* Likers Tooltip Styles */
.likers-tooltip {
  position: absolute;
  background: var(--modal-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 4px 12px var(--shadow-color);
  z-index: 10000;
  min-width: 160px;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

.tooltip-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.likers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.liker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
}

.liker-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border-color);
}

.liker-name {
  font-size: 13px;
  line-height: 1;
}

/* Modal likers section */
.modal-likers {
  margin-top: 12px;
  text-align: left;
}

.modal-likers-title {
  font-weight: 600;
  color: #fff;
  opacity: 0.9;
  font-size: 14px;
  margin-bottom: 6px;
}

.modal-likers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-liker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

/* Foldable container (Admin Actions) */
.foldable {
  /* inherits album-actions-container visuals */
}
.foldable-summary {
  list-style: none;
  display: flex;
  flex-direction: column; /* stack title and icon vertically */
  align-items: flex-start; /* left-align */
  justify-content: flex-start;
  gap: 2px; /* reduced from 4px */
  cursor: pointer;
  user-select: none;
}
/* Hide default marker */
.foldable-summary::-webkit-details-marker {
  display: none;
}
.collapse-icon {
  font-size: 16px;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-top: 2px; /* reduced from 4px */
}
.foldable[open] .collapse-icon {
  transform: rotate(90deg); /* point down when open */
  opacity: 1;
}
.foldable-content {
  margin-top: 10px;
}

/* Tags List */
.tags-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}

.tag-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tag-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.tag-info {
  flex: 1;
}

.tag-info h3 {
  margin: 0 0 8px 0;
  color: var(--text-color);
  font-size: 18px;
  font-weight: 600;
}

.tag-info p {
  margin: 4px 0;
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
}

.tag-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.edit-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.edit-btn:hover {
  filter: brightness(0.9);
  transform: scale(1.05);
}

.delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.color-input {
  width: 100%;
  height: 50px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  background: var(--input-bg);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.color-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.tag-filter-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tag-filter-container label {
  font-weight: 600;
  color: var(--text-color);
  margin-right: 0.5rem;
}

.tag-filter-select {
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
}

.tag-filter-select:hover {
  border-color: var(--accent-color);
}

.tag-filter-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.clear-filter-link {
  margin-left: 1rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.clear-filter-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.show-archived-container {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.show-archived-container label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--text-color);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--input-border);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent-color);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Archive Toggle Button */
.archive-album-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.archive-album-btn:hover {
  opacity: 1;
  background: var(--accent-color);
  color: white;
  transform: scale(1.05);
}

/* Filter/Sort Controls */
.filter-sort-controls {
  margin: 20px 0;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.filter-sort-form {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

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

.filter-group label {
  font-weight: bold;
  color: var(--text-color);
}

.filter-select, .sort-select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-color);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover, .sort-select:hover {
  border-color: var(--accent-color);
}

.filter-select:focus, .sort-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.clear-filter-btn {
  padding: 8px 16px;
  background: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-block;
}

.clear-filter-btn:hover {
  background: #5a6268;
  transform: scale(1.05);
}
