body {
  display: flex;
  margin: 0;
  background-color: #222;
  font-family: Arial;
  color: white;
}

/* Dark scrollbar for body */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #1a1a1a;
}

body::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 0px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

p,
h1,
h2,
h3,
label {
  margin: 0;
  font-family: Arial;
  color: white;
}

.spacer {
  width: 100%;
  height: 1px;
  background-color: #444;
}

.outer-dropdown-menu {
  position: absolute;
  border: 1px solid #424242;
  border-bottom: none;
  background: #333;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.outer-dropdown-menu-option {
  border-bottom: 1px solid #424242;
  padding: 8px 13px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.outer-dropdown-menu-option:hover {
  background: #444;
}

.outer-dropdown-menu a {
  color: white;
  text-decoration: none;
  font-family: Arial;
}

.popup-menu {
  position: absolute;
  border: 1px solid #424242;
  background: #333;
  display: flex;
  flex-direction: column;
  padding: 10px;
  z-index: 10;
}

#notifications-menu {
  top: 54px;
  right: 60px;
  display: none;
  max-height: 350px;
  overflow-y: auto;
}

#ntf-inner-one {
  padding: 0 80px 15px 0;  
  background: #333;
}

.notification-entry {
  display: flex;
  flex-direction: row;
  font-size: 14px;
  padding: 5px 0;
  cursor: pointer;
}

.notification-entry:hover {
  background-color: #3b3b3b;
}

.read {
  color: grey;
}

.ntf-dot {
  margin-right: 5px;
}

.toggle-switch {
  width: 32px;
  height: 18px;
  background: #bbb;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
  border: 1px solid #ccc;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: #fff;
  top: 1px;
  left: 1px;
  transition: transform 0.2s;
  box-shadow: none;
  border: 1px solid #ccc;
}

.toggle-switch.active {
  background: #4af;
  border-color: #4af;
}

.toggle-switch.active::after {
  transform: translateX(15px);
}

.dropdown-menu {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 0px;
  padding: 8px 12px;
  width: 200px;
  font-size: 14px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.dropdown-menu:hover {
  background: #444;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  border-color: #666;
}

.dropdown-menu:focus {
  outline: 2px solid #fff;
  background: #444;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

.dropdown-menu option {
  background: #333;
  color: #fff;
  padding: 8px;
}

.dropdown-menu option:hover,
.dropdown-menu option:checked:hover,
.dropdown-menu option:focus,
.dropdown-menu option:checked,
.dropdown-menu option:selected {
  background: #555;
  color: #fff;
}

#nav-bar {
  width: 100%;
  height: 62px;
  position: fixed;
  align-items: center;
  top: 0;
  background-color: #303030;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  z-index: 4;
}

#nav-left {
  display: flex;
  margin-left: 10px;
  gap: 10px;
}

#nav-center {
  display: flex;
  width: 45%;
  margin: 0 10px;
}

#nav-right {
  display: flex;
  margin-right: 10px;
  gap: 10px;
}

#home-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

#home-btn:hover {
  opacity: 0.8;
}

#logo {
  display: flex;
  align-items: center;
  width: 120px;
  cursor: pointer;
}

#logo:hover { 
  opacity: 0.8;
}

#filters-btn {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 8px;
  background: solid;
  background-color: rgb(63, 63, 63);
  border: none;
  border-radius: 25px;
  padding: 0px 16px;
  cursor: pointer;
}

#filters-btn:hover {
  background-color: rgb(77, 77, 77);
}

#notifications-btn {
  background: none;
  border: none;
  cursor: pointer;
}

#notifications-btn:hover {
  opacity: 0.8;
}

#account-btn {
  background: none;
  border: none;
}

#account-btn:hover {
  opacity: 0.8;
}

#account-pfp {
  width: 36px;
  height: 36px;
  cursor: pointer;
  object-fit: cover;
  border-radius: 18px;
}

#account-dropdown {
  display: none;
  top: 54px;
  right: 10px;
}

#log-out-ico {
  display: flex;
}

#pm-ico-svg {
  display: flex;
}

#settings-ico {
  display: flex;
}

/**/
.sidebar {
  background-color: #363636;
  width: 48%;
  height: calc(100% - 62px);
  position: fixed;
  display: flex;
  flex-direction: column;
  right: 0;
  top: 62px;
  z-index: 4;
  padding: 10px;
}

.sidebar-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-left: 10px;
  width: 100%;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

#close-sidebar-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: rgb(196, 196, 196);
  cursor: pointer;
}

#close-sidebar-btn:hover {
  color: white;
}

.toast {
  position: fixed;
  z-index: 3;
  bottom: 50px;
  left: 50vw;
  transform: translateX(-50%);
}

#sort-btn-holder {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-btn {
  display: flex;
  color: white;
  align-items: center;
  justify-content: center;
  background: solid;
  background-color: rgb(71, 71, 71);
  border: none;
  border-radius: 25px;
  padding: 10px 16px;
  cursor: pointer;
}

.sort-btn:hover {
  background-color: rgb(77, 77, 77);
}

.sort-btn.active {
  border: 1px solid #797979
}

#enrolled-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#global {
  background-color: #222;
  margin-top: 65px;
  padding: 30px;
  gap: 20px;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#map-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 18px;
  grid-row-gap: 22px;
}

@media (min-width: 1096px) {
  #map-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1634px) {
  #map-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 2172px) {
  #map-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

#profile-page {
  background-color: #292929;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.hidden {
  display: none !important;
}

#profile-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

#join-btn {
  background-color: white;
  border: solid 2px rgb(36, 138, 206);
  border-radius: 50px;
  display: flex;
  width: fit-content;
  flex-direction: row;
  align-items: center;
  color: rgb(36, 138, 206);
  font-size: 18px;
  font-weight: 700;
  padding: 10px 20px 10px 15px;
  gap: 5px;
}

#join-btn-icon {
  display: flex;
  align-items: center;
}

#join-btn:hover {
  opacity: 0.8;
}

#join-btn:active {
  opacity: 0.5;
}

#create-btn {
  background-color: white;
  border: solid 2px rgb(36, 138, 206);
  border-radius: 50px;
  display: none; /* Hidden by default */
  width: fit-content;
  flex-direction: row;
  align-items: center;
  color: rgb(36, 138, 206);
  font-size: 18px;
  font-weight: 700;
  padding: 10px 20px 10px 15px;
  gap: 5px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

#create-btn-icon {
  display: flex;
  align-items: center;
}

#create-btn:hover {
  opacity: 0.8;
}

#create-btn:active {
  opacity: 0.5;
}

.by-user-card {
  background: #444;
  padding: 20px;
}

.inner-for-uc {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.big-pfp {
  border-radius: 44px;
}

#uc-posts {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
}

#user-card-container {
  background-color: #2c2c2c;
}

.user-card-post {
  height: 100%;
  padding: 5px;
  cursor: pointer;
}

.user-card-post:hover {
  background: #313131;
}

.post-entry {
  background-color: rgb(59, 59, 59);
  display: flex;
  flex-direction: column;
  min-width: 420px;
  position: relative;
}

/* Mobile fix for post-entry overflow */
@media (max-width: 768px) {
  .post-entry {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.post-thumbnail {
  position: relative;
  cursor: pointer;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 623 / 276;
}

.gradient-top {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgb(22, 22, 22) 0%, transparent 50%);
}

.gradient-bottom {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgb(22, 22, 22) 0%, transparent 30%);
}

.hz-one {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  padding: 15px 20px;
}

.post-info {
  display: flex;
  flex-direction: column;
}

.post-title {
  display: inline-block;
  margin-bottom: 8px;
}

.post-description {
  display: inline-block;
  color: rgb(161, 160, 160);
  margin-bottom: 10px;
  font-size: 14px;
  max-height: 50px;
  overflow: hidden;
}

.course-price {
  display: inline-block;
  color: #4CAF50;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
  align-self: flex-start;
}

.paid-price {
  color: white;
}

.vt-one {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.enroll-btn {
  color: rgb(255, 255, 255);
  font-size: 18px;
  font-weight: bold;
  background-color: rgb(34, 34, 34);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  padding: 9px 25px;
}

.enroll-btn:hover {
  color: rgb(182, 182, 182);
}

.enroll-btn:active {
  color: rgb(87, 87, 87);
}

.enroll-btn.own-course {
  color: rgb(120, 120, 120);
  cursor: not-allowed;
  pointer-events: none;
}

.view-btn {
  color: rgb(255, 255, 255);
  font-size: 18px;
  font-weight: bold;
  background-color: rgb(34, 34, 34);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  padding: 9px 25px;
}

.view-btn:hover {
  color: rgb(182, 182, 182);
}

.number-enrolled,
.number-viewed {
  white-space: nowrap;
  margin-top: 8px;
  font-size: 14px;
  color: grey;
  text-align: center;
}

.user-traits {
  position: absolute;
  display: flex;
  justify-content: space-between;
  height: 74px;
  z-index: 3;
  width: 100%;
}

.verified-badge {
  display: flex;
  padding: 15px;
  align-items: center;
  gap: 10px;
}

.verified-label {
  font-size: 22px;
  font-weight: bold;
  color: #2C67E6;
}

.profile-card {
  display: flex;
  align-self: right;
  padding: 15px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.profile-card:hover {
  opacity: 0.8;
}

.profile-picture-holder {
  width: 35px;
  height: 35px;
  margin-right: 10px;
}

.profile-picture {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.ownership-username {
  font-size: 16px;
  font-weight: bold;
}

#notification-list-view {
  display: none;
  flex-direction: column;
  position: relative;
  background-color: #222;
  box-sizing: border-box;
}

#notification-list-header {
  position: fixed;
  top: 111px;
  left: 250px;
  width: 100%;
  height: 62px;
  background-color: #303030;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1001;
}

#back-to-profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

#notification-list-header h3 {
  margin: 0;
  color: white;
  font-size: 20px;
  font-weight: 500;
}

#notification-list-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notification-list-item {
  background: #333;
  border: 1px solid #444;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  cursor: pointer;
}

.notification-list-item:hover {
  background: #3b3b3b;
}

.notification-list-item .ntf-dot {
  margin-top: 2px;
}

.notification-list-item .notification-content {
  flex: 1;
  color: white;
  font-size: 16px;
  line-height: 1.4;
}

.notification-list-item.read .notification-content {
  color: #888;
}

.notification-list-item .notification-time {
  color: #666;
  font-size: 12px;
  margin-top: 8px;
}

#enrollment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#enrollment-menu {
  max-width: 70%;
  max-height: 90vh;
  background: rgb(41, 41, 41);
  border: 1px solid #444;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  position: relative;
}

#enrollment-thumbnail {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 623 / 276;
}

#enrollment-content {
  padding: 20px;
}

#enrollment-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 12px;
  color: white;
}

#enrollment-description {
  font-size: 16px;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 80px;
}

#start-course-btn {
  position: absolute;
  bottom: 20px;
  left: 18%;
  right: 18%;
  background: white;
  color: black;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform: translateY(100%);
}

#start-course-btn:hover {
  background: #dbdbdb;
}

/* Settings Modal Styles */
.settings-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.settings-popup-content {
  background: #2a2a2a;
  border-radius: 0px;
  width: 90%;
  max-width: 800px;
  height: 80%;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #444;
  position: relative;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #444;
  position: relative;
}

.settings-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  flex: 1;
  text-align: left;
}

.settings-close {
  background: none !important;
  border: none !important;
  color: #aaa !important;
  font-size: 24px !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
  transition: none !important;
  position: absolute !important;
  right: 20px !important;
  top: 20px !important;
  box-sizing: border-box !important;
  outline: none !important;
  transform: none !important;
}

.settings-close:hover {
  color: #fff !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  font-size: 24px !important;
  position: absolute !important;
  right: 20px !important;
  top: 20px !important;
  box-sizing: border-box !important;
  outline: none !important;
  transform: none !important;
  transition: none !important;
}

.settings-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0; 
}

.settings-sidebar {
  width: 200px;
  background: #333;
  padding: 20px 0;
  border-right: 1px solid #444;
}

.settings-nav-item {
  padding: 12px 24px;
  cursor: pointer;
  color: #ccc;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.settings-nav-item:hover {
  background: #3a3a3a;
  color: #fff;
}

.settings-nav-item.active {
  background: #3a3a3a;
  color: #fff;
  border-left-color: #fff;
}

.settings-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.settings-tab {
  display: none !important;
}

.settings-tab.active {
  display: block !important;
}

.settings-tab h3 {
  margin: 0 0 24px 0;
  color: #fff;
  font-size: 1.25rem;
  border-bottom: 1px solid #444;
  padding-bottom: 12px;
}

.settings-group {
  margin-bottom: 32px;
}

.settings-group:last-child {
  margin-bottom: 0;
}

.earnings-balance {
  text-align: center;
  padding: 40px 20px;
  background: #2a2a2a;
  margin: 20px 0;
}

.balance-label {
  font-size: 16px;
  color: #6c757d;
  margin-bottom: 8px;
  font-weight: 500;
}

.balance-amount {
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.earnings-stats {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  gap: 20px;
}

.stat-item {
  text-align: center;
  background: #333;
  padding: 20px;
  flex: 1;
  max-width: 200px;
}

.stat-label {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.earnings-chart {
  width: 100%;
  margin: 20px 0;
  background: #333;
}

.earnings-chart canvas {
  width: 100% !important;
  height: 150px !important;
}

/* Dark scrollbars for settings popup */
.settings-content::-webkit-scrollbar {
  width: 12px;
}

.settings-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.settings-content::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 0px;
}

.settings-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.cache-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.cache-item:last-child {
  margin-top: 16px;
  padding-top: 16px;
}

.cache-label {
  color: #e0e0e0;
  font-size: 15px;
  flex: 1;
}

.action-btn.clear-all {
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: 8px !important;
}

.action-btn.clear-all:hover {
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: 8px !important;
  background: #444 !important;
  color: #bbb !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  min-height: 32px !important;
  max-height: 32px !important;
  height: 32px !important;
  transition: none !important;
  transform: none !important;
  position: relative !important;
}

#toolbarAlignment {
  background: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
  border-radius: 0px !important;
  padding: 8px 12px !important;
  width: 200px !important;
  font-size: 14px !important;
  appearance: none !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px !important;
}

#toolbarAlignment:hover {
  background: #444 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px !important;
  border-color: #666 !important;
}

#toolbarAlignment:focus {
  outline: 2px solid #fff !important;
  outline-offset: -2px !important;
  background: #444 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px !important;
}

#toolbarAlignment option {
  background: #333 !important;
  color: #fff !important;
  padding: 8px !important;
}

#toolbarAlignment option:hover,
#toolbarAlignment option:checked:hover,
#toolbarAlignment option:focus,
#toolbarAlignment option:checked,
#toolbarAlignment option:selected {
  background: #555 !important;
  color: #fff !important;
}

#qualityRefresh {
  background: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
  border-radius: 0px !important;
  padding: 8px 12px !important;
  width: 200px !important;
  font-size: 14px !important;
  appearance: none !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px !important;
}

#qualityRefresh:hover {
  background: #444 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px !important;
  border-color: #666 !important;
}

#qualityRefresh:focus {
  outline: 2px solid #fff !important;
  outline-offset: -2px !important;
  background: #444 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px !important;
}

#qualityRefresh option {
  background: #333 !important;
  color: #fff !important;
  padding: 8px !important;
}

#qualityRefresh option:hover,
#qualityRefresh option:checked:hover,
#qualityRefresh option:focus,
#qualityRefresh option:checked,
#qualityRefresh option:selected {
  background: #555 !important;
  color: #fff !important;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.toggle-switch {
  width: 32px;
  height: 18px;
  background: #bbb;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
  border: 1px solid #ccc;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: #fff;
  top: 1px;
  left: 1px;
  transition: transform 0.2s;
  box-shadow: none;
  border: 1px solid #ccc;
}

.toggle-switch.active {
  background: #4af;
  border-color: #4af;
}

.toggle-switch.active::after {
  transform: translateX(15px);
}

.toggle-label {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.login-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 16px;
  background: #222 !important;
  color: #bbb !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s !important;
  box-sizing: border-box;
  min-width: fit-content;
}

.login-prompt:hover {
  background: #444 !important;
  color: #fff !important;
}

.prompt-logo {
  width: 24px;
  height: 24px;
}

.prompt-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: #222;
  border: 1px solid #3f3f3f;
  color: #f0f6fc;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: 1px solid #fff;
}

.form-group input:disabled {
  background: #333;
  color: #888;
  cursor: not-allowed;
  border-color: #444;
}

.username-availability {
  margin-top: 4px;
  font-size: 12px;
}

.username-availability.available {
  color: #28a745;
}

.username-availability.unavailable {
  color: #dc3545;
}

.username-availability.checking {
  color: #ffc107;
}

.color-options {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-option {
  width: 20px;
  height: 20px;
  border: 2px solid #555;
  cursor: pointer;
  position: relative;
}

.color-option.selected {
  border-color: #fff;
}

.color-option.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.color-option[data-color="#222"] {
  background: #222;
}

.color-option[data-color="#333"] {
  background: #333;
}

.color-option[data-color="#fff"] {
  background: #fff;
  border-color: #ccc;
}

.color-option[data-color="#fff"].selected {
  border-color: #fff;
}

.color-option[data-color="#fff"].selected::after {
  color: #000;
}

#colorPickerOption {
  background: conic-gradient(
    rgb(207, 46, 46), rgb(236, 236, 48), rgb(57, 209, 43), rgb(0, 183, 255), rgb(0, 89, 255), rgb(219, 23, 219), rgb(218, 51, 51)
  );
}

#colorPickerOption.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.settings-footer {
  flex-shrink: 0; 
  height: 56px;
  background: #2a2a2a;
  border-top: 1px solid #444;
  box-sizing: border-box;
}

.settings-footer-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}

.settings-footer-buttons {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.settings-btn.cancel,
.settings-btn.save {
  background: #222 !important;
  color: #bbb !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: none !important;
  font-size: 14px !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
  min-width: fit-content !important;
  max-width: none !important;
  width: auto !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  transform: none !important;
  position: relative !important;
}

.settings-btn.cancel:hover,
.settings-btn.save:hover {
  background: #444 !important;
  color: #bbb !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
  min-width: fit-content !important;
  max-width: none !important;
  width: auto !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  transition: none !important;
  transform: none !important;
  position: relative !important;
}

.post-menu-container {
  position: relative;
  margin-left: auto;
}

.post-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.pm-three-dots-icon {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.post-menu-btn:hover .pm-three-dots-icon {
  opacity: 1;
}

.post-context-menu {
  position: absolute;
  top: calc(100% - 20px);
  right: 15px;
  background: #333;
  border: 1px solid #555;
  min-width: 120px;
  display: none;
  z-index: 1000000;
  padding: 5px;
  cursor: default;
}

.post-context-menu.active {
  display: block;
}

.post-context-menu .context-menu-option {
  padding: 8px 10px;
  cursor: pointer;
  color: #fff;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  font-size: 14px;
  transition: background 0.2s;
}

.post-context-menu .context-menu-option:hover:not(.disabled) {
  background: #444;
}

.post-context-menu .context-menu-option.disabled {
  color: #888;
  cursor: not-allowed;
}

.post-context-menu .context-divider {
  height: 0;
  border-top: 1px solid #444;
  margin: 0;
  width: 100%;
}