/* =============================================================================
   Fridgeo Dark Mode Toggle Styles – Refined Modern Dark
============================================================================= */

.fridgeo-logo-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  border: none;
  margin-top: 5px;
}

.fridgeo-logo-link:focus {
  outline: none;
  box-shadow: none;
}

/* =============================================================================
   Toggle Switch Styling (Compact Modern Light Gray Style)
============================================================================= */

.fridgeo-dark-toggle-wrapper {
  position: absolute;
  top: 34px; /* Adjust as needed */
  right: 50px;
}

.fridgeo-toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.fridgeo-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider track */
.fridgeo-toggle-switch .slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  cursor: pointer;
  transition: background-color 0.4s;
}

/* The knob inside the slider */
.fridgeo-toggle-switch .slider .knob {
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s, background-color 0.4s;
}

/* When checked – slide knob + change colors */
.fridgeo-toggle-switch input:checked ~ .slider {
  background-color: #e0e0e0;
}

.fridgeo-toggle-switch input:checked ~ .slider .knob {
  transform: translateX(22px);
  background-color: #333;
}

@media (max-width: 480px) {

  /* =========================================
   Toggle Switch
  ========================================= */
  .fridgeo-dark-toggle-wrapper {
    top: 34px;
    right: 35px;
  }
}

/* =============================================================================
   Light Mode Theme – Light
============================================================================= */

body {
  color: #656565;
}

h1,
h2,
h3,
h4,
h5,
h6,
a {
  color: #111 !important;
}

/* Change all bold text */
b, strong {
  color: #111 !important;
}

.fridgeo-footer-top p,
.fridgeo-footer-bottom p {
  color: #111;
}

.fridgeo-homepage-banner h2 {
  color: #fff !important;
}

/* =============================================================================
   Dark Mode Theme – Dark
============================================================================= */

html.dark-mode,
html.dark-mode body {
  background-color: #0d0d0d !important;
  color: #B0B0B0;
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode a {
  color: #fff !important;
}

/* Change all bold text */
html.dark-mode b, html.dark-mode strong {
  color: #fff !important;
}

html.dark-mode ul, 
html.dark-mode li {
  color: #B0B0B0;
}

html.dark-mode input#fridgeo-ingredients {
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark-mode input#fridgeo-ingredients::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

html.dark-mode .fridgeo-meal-card,
html.dark-mode .fridgeo-recipe-card,
html.dark-mode .fridgeo-latest-post,
html.dark-mode .fridgeo-post-card,
html.dark-mode .fridgeo-value-block {
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html.dark-mode .fridgeo-homepage-banner p {
  color: #fff;
}

html.dark-mode .fridgeo-meal-card h2 {
  color: #fff;
}

html.dark-mode p {
  color: #B0B0B0;
}

html.dark-mode .fridgeo-latest-post a {
  color: #fff;
}

html.dark-mode .fridgeo-panel {
  background-color: #1a1a1a;
  color: #fff;
}

html.dark-mode .fridgeo-panel h2,
html.dark-mode .fridgeo-panel h4 {
  color: #fff;
}

html.dark-mode .fridgeo-panel p,
html.dark-mode .fridgeo-panel li {
  color: rgba(255, 255, 255, 0.75);
}

html.dark-mode #fridgeo-submit,
html.dark-mode #fridgeo-panel-close {
  background-color: #20f20a;
  color: #000;
  border: none;
}

html.dark-mode .fridgeo-footer-top p,
html.dark-mode .fridgeo-footer-bottom p {
  color: #fff;
}

html.dark-mode .fridgeo-action-link:hover {
  color: #fff;
}

html.dark-mode .fridgeo-panel h2::before {
  background-color: #20f20a;
}