body.dark-mode {
    background-color: #0d1117 !important;
    color: #e6ecf1;
    font-family: 'Raleway', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .fact-link {
  color: rgb(167 200 247)!important;
}

body.dark-mode .map-gradient-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #0d1117 100%);
}

body.dark-mode .navbar {
    background-color: rgba(22, 27, 34, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    border-bottom: none;
}

body.dark-mode #theme-toggle {
  color: #e6ecf1;
}

body.dark-mode .navbar-brand,
body.dark-mode .nav-link {
    color: #e6ecf1 !important;
}

body.dark-mode .nav-link:hover {
    color: #ffffff !important;
}

body.dark-mode .header {
    background: url('https://images.pexels.com/photos/2113566/pexels-photo-2113566.jpeg') no-repeat center center;
    background-size: cover;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

body.dark-mode .card {
    background-color: #1c2128;
    color: #e6ecf1;
    border: 1px solid #2d333b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .card-overlay,
body.dark-mode .newest-overlay {
    background: rgba(13, 17, 23, 0.7);
    color: #e6ecf1;
}

body.dark-mode .badge {
    background-color: #30363d;
    color: #c9d1d9;
}

body.dark-mode .btn-light {
    background-color: #30363d;
    color: #ffffff;
    border: none;
}

body.dark-mode .btn-light:hover {
    background-color: #424a53;
}

body.dark-mode .sticky-sidebar {
    background-color: #1c2128;
    border: 1px solid #2d333b;
    color: #e6ecf1;
}

body.dark-mode footer {
    background-color: #0a0f14;
    color: #ccc;
}

body.dark-mode footer a {
    color: #68c3e8;
}

body.dark-mode .play-overlay svg polygon {
    fill: #ffffff;
}

body.dark-mode .play-overlay svg circle {
    fill: rgba(200, 220, 255, 0.3);
}

body.dark-mode .post-img-overflow-hidden,
body.dark-mode .video-container {
    background-color: #0d1117;
}

body.dark-mode .modal-content {
    background-color: #1c2128;
    color: #e6ecf1;
    border: 1px solid #2d333b;
  }
  
  body.dark-mode .modal-header,
  body.dark-mode .modal-footer {
    border-color: #30363d;
  }
  
  body.dark-mode .modal-title {
    color: #e6ecf1;
  }
  
  body.dark-mode .btn-close {
    filter: invert(1);
  }

  body.dark-mode table,
  body.dark-mode table.table,
  body.dark-mode table.dataTable {
    background-color: #1c2128 !important;
    color: #e6ecf1 !important;
    border-color: #2d333b !important;
  }
  
  body.dark-mode table th,
  body.dark-mode table td {
    background-color: inherit !important;
    color: inherit !important;
    border-color: #2d333b !important;
  }

body.dark-mode .table-striped > tbody > tr:nth-of-type(odd),
body.dark-mode .dataTable tbody tr:nth-child(odd) {
  background-color: #242b33 !important;
}

body.dark-mode .table-hover > tbody > tr:hover,
body.dark-mode .dataTable tbody tr:hover {
  background-color: #2a323b !important;
}

body.dark-mode .dataTables_wrapper select,
body.dark-mode .dataTables_wrapper input {
  background-color: #30363d !important;
  color: #e6ecf1 !important;
  border: 1px solid #2d333b !important;
}

body.dark-mode .paginate_button {
    background-color: #30363d !important;
    color: #e6ecf1 !important;
    border: 1px solid #2d333b !important;
  }
  
  body.dark-mode .paginate_button.current {
    background-color: #0d6efd !important;
    color: #ffffff !important;
  }

body.dark-mode .dropdown-menu {
    background-color: #2b2b2b;
    color: #f8f9fa;
}

body.dark-mode .dropdown-menu .dropdown-item {
    color: #f8f9fa;
}

body.dark-mode .dropdown-menu .dropdown-item:hover,
body.dark-mode .dropdown-menu .dropdown-item:focus {
    background-color: #444;
    color: #fff;
}

body.dark-mode .june-july-text {
  color:#0d1117!important;
}

body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

body.dark-mode .text-muted {
  color: #adb5bd !important;
}

body.dark-mode #side-panel {
  background: rgba(0, 0, 0, 0.6);
}

body.dark-mode .map-controls {
  background: rgba(22, 27, 34, 0.95);
}

body.dark-mode .list-group-item,
body.dark-mode .list-group{
  background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
  color: rgba(var(--bs-light-rgb), var(--bs-text-opacity)) !important;
  border-color: #242b33 !important;
}

body.dark-mode {
  --fb-bg: #1f2430;
  --fb-elev: #232a36;
  --fb-top-bg: #1f2430;
  --fb-reply-bg: #232a36;
  --fb-border: #2d3442;
  --fb-text: #e6e9ef;
  --fb-muted: #98a2b3;
  --fb-link: #8ab4ff;
  --fb-accent: #87b0ff;
  --fb-avatar-bg: #30384a;
  --fb-reply-line: #2b3341;
  --fb-input-bg: #1f2430;
  --fb-input-bg-focus: #252b38;
  --fb-pill-bg: #0e2a5a;
  --fb-pill-text: #a8c8ff;
}