body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 15px 20px;
  padding-bottom: 16px;
  background-color: #4285f4;
  color: white;
  border-bottom: 2px solid red;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(33deg, #ff4500, #ff6b3d);
  padding: 8px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  z-index: 1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-text {
  font-size: 16px;
  font-weight: bold;
  color: rgb(0, 41, 177);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-highlight {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.bottom-section {
  flex: 1;
  min-height: 0;
  position: relative;
}

#content-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 10px;
  padding: 4px 0;
  height: 36px;
  white-space: nowrap;
  flex: 1;
  margin-top: 10px;
  width: 100%;
  margin-left: 10px;
}

.shuffle-button {
  padding: 8px 20px;
  background: linear-gradient(45deg, #ff4500, #ff6b3d);
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.shuffle-button:hover {
  background: linear-gradient(45deg, #ff6b3d, #ff4500);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.shuffle-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Add shimmer effect */
.shuffle-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.action-button {
  padding: 8px;
  width: 36px;
  height: 36px;
  background-color: white;
  border: 1px solid #dadce0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #5f6368;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.action-button:hover {
  background-color: #f6f8fa;
  border-color: #dadce0;
}

.action-button.loading {
  pointer-events: none;
  position: relative;
}

.action-button.loading > * {
  visibility: hidden;
}

.action-button.loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(66, 133, 244, 0.3);
  border-radius: 50%;
  border-top-color: #4285f4;
  animation: spin 0.8s linear infinite;
}

.action-button.success {
  pointer-events: none;
  position: relative;
}

.action-button.success > * {
  visibility: hidden;
}

.action-button.success::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #34a853;
  font-size: 18px;
  animation: fadeIn 0.2s ease-in;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.like-button {
  color: #dc3545; /* Red color for the heart */
  font-size: 16px; /* Slightly larger for the heart emoji */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.like-button:hover {
  background-color: #fde8eb; /* Lighter red background on hover */
  border-color: #dc3545;
  transform: scale(1.1);
}

.like-button:active {
  transform: scale(0.95);
}

/* Success state animation for like button */
.like-button.success::after {
  content: '❤️';
  animation: heartBeat 0.3s ease-in-out;
}

.dislike-button:hover {
  background-color: #fbe9e7;
  border-color: #ffab91;
}

.auth-section {
  position: absolute;
  right: 20px;
  top: 4px;
  z-index: 1;
  padding: 0;
  display: flex;
  align-items: center;
}

.auth-section button {
  background: white;
  border: 1px solid #dadce0;
  border-radius: 4px;
  color: #5f6368;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  white-space: nowrap;
}

.auth-section button:hover {
  background-color: #f6f8fa;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: white;
  border-radius: 20px;
  border: 1px solid #ddd;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

#userName {
  font-size: 14px;
  color: #333;
}

.logout-button {
  padding: 4px 8px;
  background-color: #f0f2f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.logout-button:hover {
  background-color: #e4e6e9;
  color: #333;
}

/* Google-styled user profile */
.google-user-profile {
  display: flex !important;
  align-items: center;
  background: white;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 4px;
  height: 32px;
}

.google-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
}

.google-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.google-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.google-name {
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
}

.google-email {
  color: #5f6368;
  font-size: 12px;
  line-height: 14px;
}

.google-logout-button {
  display: flex !important;
  align-items: center;
  background: none !important;
  border: none !important;
  color: white !important;
  padding: 8px 16px !important;
  cursor: pointer;
}

.google-logout-button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Remove old styles */
.mobile-sign-out {
  display: none;
}

.add-button {
  font-size: 14px;
  padding: 8px 12px;
  background-color: #f0f2f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.add-button:hover {
  background-color: #e8f5e9;
  border-color: #a5d6a7;
}

/* Tooltip base styles */
[data-tooltip] {
  position: relative;
}

/* Only show tooltips on desktop/non-touch devices */
@media (hover: hover) {
  [data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    margin-bottom: 5px;
  }

  [data-tooltip]:hover:before {
    visibility: visible;
    opacity: 1;
  }
}

/* Base styles for mobile sign out button */
.mobile-sign-out {
  display: none; /* Hidden by default on desktop */
  padding: 8px 12px;
  background-color: #f0f2f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.mobile-sign-out:hover {
  background-color: #fbe9e7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .top-section {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .controls {
    margin-top: 10px;
    width: 100%;
  }

  .logo {
    flex: 0 0 auto;
  }

  .auth-section {
    top: 4px;
  }

  .google-user-profile {
    display: flex !important;
    align-items: center;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 4px;
  }

  .google-logout-button {
    display: flex !important;
    background: white !important;
    border: 1px solid #dadce0 !important;
    color: #5f6368 !important;
    padding: 6px 12px !important;
    margin-left: 8px;
    border-radius: 4px;
    font-size: 14px;
    align-items: center;
    height: auto;
  }

  .google-logout-button:hover {
    background-color: #fbe9e7 !important;
    border-color: #ffab91 !important;
  }

  /* Hide desktop elements */
  .desktop-signin {
    display: none !important;
  }

  /* Show mobile elements */
  .mobile-user-profile {
    display: flex !important;
    align-items: center;
    height: 32px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 0;
  }

  .mobile-sign-in {
    display: flex !important;
    padding: 6px 12px;
    height: 32px;
    align-items: center;
    margin: 0;
  }

  .google-user-profile {
    display: flex !important;
    align-items: center;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 4px;
    margin-left: auto;
  }

  .google-logout-button {
    display: flex !important;
    margin-left: 8px;
    height: auto;
  }

  .google-logout-button::before {
    display: none; /* Remove the separator line */
  }

  /* Ensure auth section is visible */
  .auth-section {
    display: flex !important;
    align-items: center;
    margin-left: auto;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .g_id_signin {
    transform: scale(0.7);
  }

  .google-user-profile {
    transform: scale(0.8);
  }

  .auth-section {
    margin-left: 4px;
  }
}

/* Add these styles */
.mobile-sign-in {
  display: none;
  padding: 8px 12px;
  background-color: white;
  border: 1px solid #dadce0;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-sign-in-text {
  color: #5f6368;
  font-size: 14px;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
}

.google-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.desktop-signin {
  display: none !important;
}

/* Add this to base styles (outside media queries) */
.mobile-user-profile {
  display: none; /* Hidden by default on desktop */
}

/* Hide logo-auth-container by default */
.logo-auth-container {
  display: none;
}

.shuffle-icon {
  font-size: 18px;
}

/* Add these styles */
.shuffle-button.loading {
  position: relative;
  color: white; /* Keep text visible */
  pointer-events: none; /* Prevent clicks while loading */
}

.shuffle-button.loading::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Remove old loading styles */
.shuffle-button.loading::after {
  display: none;
}

/* Add iframe loading styles */
.bottom-section {
  position: relative;
}

.bottom-section::after {
  content: 'Loading...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #666;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-section.loading::after {
  opacity: 1;
}

/* Update button loading style */
.shuffle-button.loading {
  position: relative;
  color: white; /* Keep text visible */
  pointer-events: none; /* Prevent clicks while loading */
}

.shuffle-button.loading::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Remove old loading styles */
.shuffle-button.loading::after {
  display: none;
}

.profile-button:hover {
  background-color: #f6f8fa;
  border-color: #dadce0;
}

/* Hide desktop signin when logged in */
body.logged-in .desktop-signin {
  display: none !important;
}

/* Show logout button when logged in */
body.logged-in .google-logout-button {
  display: flex !important;
}

@media (min-width: 768px) {
  .controls {
    margin-top: 0;
    width: auto;
  }

  .auth-section {
    position: absolute;
    right: 20px;
    top: 10px;
  }
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

[data-tooltip]:hover::before {
  opacity: 1;
}

@media (max-width: 1024px) {
  [data-tooltip]::before {
    display: none;
  }
}

@media (min-width: 1024px) {
  .controls {
    margin-top: 0;
    width: auto;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  overflow-y: auto; /* Enable scrolling on the modal itself */
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 5vh auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.close-modal:hover {
  background-color: #c82333;
}

@media (max-width: 768px) {
  .close-modal {
    right: 12px;
    top: 12px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .modal-content {
    margin: 15% auto;
    max-height: 80vh;
  }
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.submit-button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.submit-button:hover {
  background-color: #45a049;
}

.submit-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Enhanced Select Styles */
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background-color: white;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: all 0.2s ease;
}

.form-group select:hover {
  border-color: #aaa;
  background-color: #f8f8f8;
}

.form-group select:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.form-group select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Style for the options */
.form-group select option {
  padding: 10px;
  font-size: 14px;
  background-color: white;
  color: #333;
}

.form-group select option:hover {
  background-color: #f0f0f0;
}

/* Loading state */
.form-group select.loading {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='12' y1='2' x2='12' y2='6'%3e%3c/line%3e%3cline x1='12' y1='18' x2='12' y2='22'%3e%3c/line%3e%3cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'%3e%3c/line%3e%3cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'%3e%3c/line%3e%3cline x1='2' y1='12' x2='6' y2='12'%3e%3c/line%3e%3cline x1='18' y1='12' x2='22' y2='12'%3e%3c/line%3e%3cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'%3e%3c/line%3e%3cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'%3e%3c/line%3e%3c/svg%3e");
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Error state */
.form-group select.error {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e%3cline x1='12' y1='8' x2='12' y2='12'%3e%3c/line%3e%3cline x1='12' y1='16' x2='12.01' y2='16'%3e%3c/line%3e%3c/svg%3e");
}

/* Success state */
.form-group select.success {
  border-color: #28a745;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Profile Modal Styles */
.profile-section {
  position: relative;
}

.profile-section h3 {
  color: #333;
  margin-bottom: 10px;
}

.section-description {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 70px; /* Space for the fixed button */
}

/* Style the scrollbar */
.modal-content::-webkit-scrollbar,
.categories-grid::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track,
.categories-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb,
.categories-grid::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.categories-grid::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Custom Checkbox Styles */
.category-checkbox {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-checkbox:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.category-checkbox input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.category-checkbox input[type='checkbox']:checked ~ .checkbox-custom {
  background-color: #4285f4;
  border-color: #4285f4;
}

.checkbox-custom:after {
  content: '';
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.category-checkbox input[type='checkbox']:checked ~ .checkbox-custom:after {
  display: block;
}

.category-label {
  font-size: 14px;
  color: #333;
  user-select: none;
}

.save-preferences-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(90% - 40px);
  max-width: 760px;
  padding: 12px;
  background: linear-gradient(45deg, #4285f4, #5c9fff);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.save-preferences-button:hover {
  background: linear-gradient(45deg, #3b78e7, #4285f4);
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.save-preferences-button:active {
  transform: translateY(1px);
}

.save-preferences-button.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.save-preferences-button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

.save-preferences-button.success {
  background: linear-gradient(45deg, #34a853, #40c463);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 3vh auto;
    padding: 15px;
    max-width: 500px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    max-height: 60vh;
  }
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  position: relative;
  gap: 0; /* Remove gap between tabs */
}

.tab-button {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px; /* Align with bottom border */
  position: relative;
  z-index: 1;
}

.tab-button:hover {
  color: #4285f4;
  background: none;
}

.tab-button.active {
  color: #4285f4;
  background: none;
  border-bottom: 2px solid #4285f4;
}

/* Add a subtle separator between tabs */
.tab-button:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: #e9ecef;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Favorites List */
.favorites-list {
  max-height: 400px;
  overflow-y: auto;
  padding-top: 12px;
  padding-bottom: 12px;
}

.favorites-list .favorite-item {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.favorite-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.favorite-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: #4285f4;
}

.favorite-link {
  flex: 1;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

.favorite-link:hover {
  color: #4285f4;
}

.favorite-date {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.loading-favorites {
  text-align: center;
  padding: 20px;
  color: #666;
}

.no-favorites {
  text-align: center;
  padding: 30px;
  color: #666;
  font-style: italic;
}

/* Scrollbar styling for favorites list */
.favorites-list::-webkit-scrollbar {
  width: 8px;
}

.favorites-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.favorites-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.favorites-list::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.favorites-list .favorite-item:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

.favorites-list .favorite-item:hover {
  background-color: rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease;
}

.favorite-item {
  margin-bottom: 12px;
}

.favorite-link {
  text-decoration: none;
  display: block;
}

.favorite-title {
  color: #000;
  margin-bottom: 4px;
}

.favorite-url {
  font-size: 12px;
  color: #666;
  word-break: break-all;
}
