.desktop-header {
    display: none;
}

.mobile-header {
    display: block;
    background-color: #000000; /* Ensure the entire mobile header has a dark background */
}

.mobile-header .top-bar-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background-color: #000;
}

.mobile-header .dark-mode-toggle span {
    color: white;
}

.mobile-header .dark-mode-toggle .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.mobile-header .dark-mode-toggle .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.mobile-header .dark-mode-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444; /* Darker gray when off */
    -webkit-transition: .4s;
    transition: .4s;
    overflow: hidden; /* Hide overflowing moon/stars */
}

.mobile-header .dark-mode-toggle input:checked + .slider {
    background-color: #2196F3; /* Blue when on */
}

.mobile-header .dark-mode-toggle input:focus + .slider {
    box-shadow: 0 0 1px #2196F3; /* Accent color for focus */
}

.mobile-header .dark-mode-toggle input:checked + .slider:before {
    content: none; /* Remove default circle */
}

/* Rounded sliders */
.mobile-header .dark-mode-toggle .slider.round {
    border-radius: 34px;
}

/* Moon styles */
.mobile-header .dark-mode-toggle .moon {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #FFD700; /* Gold color for moon */
    border-radius: 50%;
    transition: transform .4s;
    box-shadow: inset -5px -5px 0px 0px rgba(0,0,0,0.2); /* Moon craters */
}

.mobile-header .dark-mode-toggle input:checked + .slider .moon {
    transform: translateX(26px); /* Move moon to the right when checked */
}

/* Stars styles */
.mobile-header .dark-mode-toggle .stars {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    transition: opacity .4s;
    opacity: 0; /* Hidden by default */
}

.mobile-header .dark-mode-toggle input:checked + .slider .stars {
    opacity: 1; /* Show stars when checked */
}

.mobile-header .dark-mode-toggle .stars::before, .mobile-header .dark-mode-toggle .stars::after {
    content: '';
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
}

.mobile-header .filter-button button {
    background-color: #c00; /* Red background */
    color: white;
    font-size: 12px;
    padding: 5px 10px;
}

.mobile-header .logo-mobile {
    text-align: center;
    padding: 10px;
    background-color: #1A1A1A;
}

.mobile-header .logo-mobile img {
    max-width: 180px;
}

.mobile-header .main-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #1A1A1A; 
}

.mobile-header .menu-toggle {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 10px; /* Space between menu icon and search input */
}

.mobile-header #mobile-search-form {
    flex-grow: 1; /* Allow form to take all available space */
    display: flex;
}

.mobile-header #mobile-search-form input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 5px 0 0 5px;
    background-color: #333;
    color: #fff;
}

.mobile-header .mobile-search-submit-button {
    background: #333; /* Dark background for the button */
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 10px; /* Space between search input and button */
}

.mobile-header .main-nav-mobile {
    display: none;
    background-color: #1A1A1A;
    padding: 10px;
}

.mobile-header .main-nav-mobile.active {
    display: block;
}

.mobile-header .main-nav-mobile a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.container {
    background-color: #131722; /* Ensure container background is dark */
}