 /* Dark theme */
    body.dark-theme {
      background-color: #121212; 
      color: #ffffff;
    }
    body.dark-theme a {
      color: inherit; 
    }
    body.dark-theme .card {
      background-color: #080808;
      color: #fff;
      border-color: #080808;
      position: relative;
    }
    body.dark-theme .list-group-item {
      background-color: #222;
      color: #fff;
      border-color: #444;
    } 
    /* Light theme */
    body.light-theme {
      background-color: #ffffff;
      color: #000000;
    }
    body.light-theme a {
      color: inherit;
    }
    body.light-theme .card {
      background-color: #fff;
      color: #000;
      border-color: #ddd;
      position: relative;
    }
    body.light-theme .list-group-item {
      background-color: #fff;
      color: #000;
      border-color: #ddd;
    }
    /* Additional styles */
    body {
      padding-top: 20px;
      background-color: #ffffff;
      color: #000000;
    }
    /* Headline links: no text-decoration */
    h1 a {
      text-decoration: none !important;
      color: inherit;
    }
    h1 a:hover {
      text-decoration: none !important;
    }
    /* Sidebar container styling */
    #sidebar {
      position: relative;
      transition: margin-left 0.5s ease;
    }
    /* Videos container */
    #videosContainer {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
      overflow-y: auto;
      height: calc(100vh - 150px);
    }
    /* Video card styling */
    .video-card {
      display: flex;
      flex-direction: column;
      padding: 0;
      box-sizing: border-box;
      margin-bottom: 20px;
      position: relative;
    }
    .video-card .card {
      flex: 1;
    }
    .video-thumbnail {
      max-width: 100%;
      max-height: 100%;
      object-fit: cover;
      display: block;
    }
    /* Duration overlay on thumbnail */
    .video-thumbnail-container {
      position: relative;
      display: inline-block;
      width: 100%;
      aspect-ratio: 16 / 9;
    }
    .video-duration-overlay {
      position: absolute;
      bottom: 5px;
      right: 5px;
      background-color: rgba(0, 0, 0, 0.6);
      color: #fff;
      padding: 2px 4px;
      font-size: 0.8rem;
      border-radius: 2px;
    }
    .card-title {
      font-weight: normal;
      color: rgb(0, 0, 0);
    }
    .card-title a:hover {
      text-decoration: none !important;
    }
    body.dark-theme .card-title {
      font-weight: normal;
      color: rgb(78, 255, 62);
    }
    .video-channel-name {
      font-weight: normal;
      color: #3ea6ff;
    }
    /* Channel name styling */
    body.dark-theme .video-channel-name {
      font-weight: normal;
      color: #3ea6ff;
    }
    /* Clickable tags styling */
    .card-tag {
      font-size: 0.8rem;
      color: #fff;
      cursor: pointer;
      text-decoration: none;
      margin-right: 5px;
    }
    /* Published date styling */
    .published-date {
      color: #fff;
    }
    .alert {
      margin-top: 10px;
    }
    .btn-group .active {
      box-shadow: 0 0 5px rgba(0,0,0,0.5);
    }
    /* Modal theming */
    body.dark-theme .modal-content {
      background-color: #333;
      color: #fff;
      border: 1px solid #444;
    }
    body.dark-theme .modal-header,
    body.dark-theme .modal-body,
    body.dark-theme .modal-footer {
      border-color: #444;
    }
    body.dark-theme .modal-header .close {
      color: #fff;
    }
    body.light-theme .modal-content {
      background-color: #fff;
      color: #000;
    }
    /* Global tag filters container */
    #globalTagFiltersContainer {
      margin-bottom: 10px;
    }
    /* Global Watch Later Filter Icon */
    .watchlater-filter-icon {
      display: inline-block;
      cursor: pointer;
      font-weight: bold;
      padding: 5px 10px;
      margin-right: 10px;
      background-color: transparent;
      border: 1px solid transparent;
      border-radius: 3px;
    }
    .watchlater-filter-icon.active {
      background-color: #007bff;
      color: white;
      border-color: #007bff;
    }
    /* Sidebar channels list */
    #channelListContainer {
      overflow-y: auto;
    }
    /* Remove/Clear buttons transition */
    .remove-btn {
      transition: background-color 1s linear;
    }
    .remove-btn-active {
      background-color: #28a745 !important;
    }
    /* Blacklist button on video cards */
    .blacklist-btn {
      position: absolute;
      bottom: 5px;
      right: 5px;
      cursor: pointer;
      background-color: transparent;
      color: white;
      border: none;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      font-weight: bold;
      outline: none;
    }
    .blacklist-btn-active {
      background-color: #28a745 !important;
      transition: background-color 1s linear;
    }
    /* Watch Later button on video cards */
    .watchlater-btn {
      position: absolute;
      bottom: 5px;
      left: 5px;
      cursor: pointer !important;
      background-color: transparent;
      color: white;
      border: none;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      font-weight: bold;
      outline: none;
    }
    .watchlater-btn-active {
      background-color: #007bff !important;
      cursor: pointer;
      transition: background-color 1s linear;
    }
    /* Video info styling */
    .video-info {
      font-size: 0.8rem;
      color: #fff;
      margin-top: 5px;
    }
    /* Channel Profile Image styling */
    .video-channel-profile-img {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 5px;
      vertical-align: middle;
    }
    .card-body {
      padding-top: 0.25rem;
    }
    /* Material symbols style for filter icons */
    .material-symbols-outlined {
      font-variation-settings:
      'FILL' 0,
      'wght' 400,
      'GRAD' 0,
      'opsz' 20;
    }
    /* ------------------ DROPDOWN THEME STYLES ------------------ */

    /* Dark theme dropdown styles */
    body.dark-theme .dropdown-menu {
      background-color: #333;
      border-color: #444;
      color: #fff;
    }
    body.dark-theme .dropdown-item {
      color: #fff;
    }
    body.dark-theme .dropdown-item:hover,
    body.dark-theme .dropdown-item:focus {
      background-color: #444;
      color: #fff;
    }
    body.dark-theme #settingsMenuButton {
      color: #fff;
    }

    /* Light theme dropdown styles */
    body.light-theme .dropdown-menu {
      background-color: #fff;
      border-color: #ddd;
      color: #000;
    }
    body.light-theme .dropdown-item {
      color: #000;
    }
    body.light-theme .dropdown-item:hover,
    body.light-theme .dropdown-item:focus {
      background-color: #eee;
      color: #000;
    }
    body.light-theme #settingsMenuButton {
      color: #000;
    }

    /* Dark theme dropdown additional styling */
    body.dark-theme .dropdown-item label,
    body.dark-theme .dropdown-item select {
      color: #fff;
    }

    /* Light theme dropdown additional styling */
    body.light-theme .dropdown-item label,
    body.light-theme .dropdown-item select {
      color: #000;
    }

    /* Header search input styling */
    #searchInput {
      border-radius: 5px;
      padding: 5px;
      font-size: 0.9rem;
    }

    /* Dark theme styles for search input */
    body.dark-theme #searchInput {
      background-color: #222;
      color: #e0d6c8;
      border: 1px solid #444;
    }

    /* Light theme styles for search input */
    body.light-theme #searchInput {
      background-color: #fff;
      color: #000;
      border: 1px solid #ddd;
    }

    /* Radio button styling */
    .custom-control-input:checked ~ .custom-control-label::before {
      border-color: #007bff;
      background-color: #007bff;
    }

    /* Dark theme adjustments */
    body.dark-theme .custom-control-label {
      color: #fff;
    }

    body.dark-theme .custom-control-label::before {
      background-color: #333;
      border-color: #666;
    }

    body.dark-theme .custom-control-input:checked ~ .custom-control-label::before {
      border-color: #007bff;
      background-color: #007bff;
    }

    /* Prevent dropdown from closing when clicking radio buttons */
    .dropdown-item:active {
      background-color: transparent;
    }
	
/* Dark theme button styling for date filters */
body.dark-theme #filterToday,
body.dark-theme #filterWeek,
body.dark-theme #filterMonth,
body.dark-theme #filterAll {
  background-color: #2c2420;  
  border-color: #222;  
  color: #e0d6c8;
}

/* Hover state for date filter buttons */
body.dark-theme #filterToday:hover,
body.dark-theme #filterWeek:hover,
body.dark-theme #filterMonth:hover,
body.dark-theme #filterAll:hover {
  background-color: #3c3026;  
  border-color: #222;
  color: white;
  box-shadow: 0 0 0 2px rgba(44, 36, 32, 1);
}

/* Active/selected state for date filter buttons */
body.dark-theme #filterToday.active,
body.dark-theme #filterWeek.active,
body.dark-theme #filterMonth.active,
body.dark-theme #filterAll.active {
  background-color: #3c3026;  
  color: #e0d6c8;
  box-shadow: 0 0 0 2px rgba(44, 36, 32, 1);
}

/* Reset filter button - distinct color to stand out */
body.dark-theme #resetFilter {
  background-color: #698b69;  /* Purple */
  border-color: #698b69;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(44, 36, 32, 1);
}

/* Hover state for reset button */
body.dark-theme #resetFilter:hover {
  background-color: #448344;  
  border-color: #448344;
}

/* Active state for reset button */
body.dark-theme #resetFilter.active {
  background-color: #698b69; 
  border-color: #698b69;
  box-shadow: 0 0 0 0px rgba(105, 139, 105, 1);
}