/* Dark Mode Presets */

:root {
    --bg: #C8D5B9;
    --header-text: #000;
    --card-bg: #52796F;
    --card-text: #ffffff;
    --text-main: #222;
    --header-bg: #7A9E7E;
    --toast-bg: #4F772D;
    --toast-text: #ECF39E;
    --addcard-bg: transparent;
    --addcard-border: #31572C;
    --addcard-text: #31572C;

    --addcard-hover-bg: #31572C;
    --addcard-hover-text: #FFFFFF;
    --addcard-hover-border: #31572C;
}


/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lora", serif;
}

/* Base & fonts */
body {
    background: var(--bg);
    color: var(--header-text);
    font-family: "Outfit", "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Container */
.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 0 80px;
}

/* ---------------- NAVBAR ---------------- */
.primary-header {
    width: 100%;
    background: var(--header-bg); /* chosen color */
    padding: 20px 20px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 40;
}

.logo-text {
    color: #fff;
    font-size: 1.6rem;
    font-family: "Lora", serif;
    letter-spacing: 1px;
}

/* Title + search group */
.title-search-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
    flex-wrap: wrap;
}

/* Page title center */
.title-text {
    width: 100%;
    text-align: center;
    font-family: "Lora", serif;
    font-size: 1.9rem;
    margin-bottom: 6px;
}

/* Search & filters group layout */
.search-filter-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Search input (wide with icon on left) */
.search {
    width: 520px;
    max-width: 78vw;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: white;
    padding-left: 48px;
    padding-right: 18px;
    font-size: 1rem;
    box-shadow: 0px 6px 18px rgba(0,0,0,0.08);
    background-image: url('https://cdn-icons-png.flaticon.com/512/622/622669.png');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: 16px center;
}

/* Difficulty & prep filters */
.difficulty-filter,
.prep-filter {
    width: 200px;
    height: 44px;
    border-radius: 12px;
    background: white;
    border: none;
    padding: 0 12px;
    box-shadow: 0px 6px 18px rgba(0,0,0,0.06);
    font-size: 0.95rem;
}

/* Section title */
.section-title {
    margin-top: 30px;
    font-family: "Lora", serif;
    font-size: 1.4rem;
    text-align: center;
    color: var(--header-text);
}

/* ---------------- RECIPE GRID ---------------- */
/* Use flex layout to match screenshot spacing */
.recipe-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 36px;
    flex-wrap: wrap;
    position: relative;
}

/* Recipe card placeholder (rounded with large shadow) */
.recipe-card {
    width: 400px;
    height: 170px;
    background: #e6e6e6;
    border-radius: 14px;
    gap: 10px;
    box-shadow: 0 10px 18px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

/* ============================
   Recipe Card (New UI)
============================ */
#cards{
    display: flex;
}

#recipe-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    margin-top: 30px;
    width: 100%;
}

.category-chip {
    position: absolute;
    top: 10px;
    right: 10px;

    background: #C8D5B9;       /* chip background */
    color: #31572C;            /* text color */
    padding: 4px 10px;
    border-radius: 18px;
    border: 2px #52796F;  /* dashed border */
    font-size: 0.8rem;
    font-weight: 600;

    z-index: 10;
}

.category-options label {
    display: grid;
    grid-template-columns: 30px auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.category-options input[type="checkbox"] {
    margin: 0;
}


.recipe-card-ui {
    width: 290px;
    border-radius: 18px;
    background: var(--card-bg);
    color: var(--card-text);
    overflow: hidden;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.15);
    position: relative;
    transition: 0.3s ease;
}

.recipe-card-ui:hover {
    transform: translateY(-5px);
}

/* Image Section */
.recipe-img {
    width: 100%;
    height: 140px;
    background: white;
}
.recipe-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section */
.recipe-info {
    padding: 14px 16px 18px;
    position: relative;
    width: 100%;
    /* cursor: pointer; */
}

.read-more {
    pointer-events: auto; /* add this explicitly */
}

.recipe-container-actions{
    width: 100%;
    display: flex;
    flex-direction: row;
}

.recipe-actions {
    margin-top: 10px;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}


.recipe-info {
    padding: 14px 16px 18px;
    position: relative; /* anchor for absolute children */
    height: 195px;  /* ensures enough vertical space */
}

/* DELETE BUTTON — bottom-left anchored */
.delete-recipe-btn {
    position: absolute;
    bottom: 12px;
    left: 16px;
    padding: 13px;
    border: none;
    background: #c93a43;
    color: #f7f7f7;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
}



/* HOVER */
.delete-recipe-btn:hover {
    background: #c1121f;
    color: #e5e5e5;
}


.recipe-title {
    font-family: "Lora", serif;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.recipe-prep {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Read More link */
.read-more {
    font-size: 0.95rem;
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

/* Difficulty Chip */
.difficulty-chip {
    position: absolute;
    bottom: 12px;
    right: 14px;
    gap: 10px;
    background: #e7ecef;
    color: #444;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.85rem;
}



/* Add new card: dashed border style */
.add-card {
    width: 260px;
    height: 300px;
    display: flex;
    border-radius: 14px;
    background: var(--addcard-bg);
    border: 2px dashed var(--addcard-border);
    color: var(--header-text);
    display: flex;
    margin-left: 1rem;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
    font-family: "Lora", serif;
    font-size: 1.25rem;
    text-align: center;
    padding: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.add-card:hover{
    background:var(--addcard-hover-bg);
    color: #fff;
    transition: ease-in 0.2s all;
    border: 2px solid var(--addcard-hover-border);
}

/* Title + Add Recipe button row */
.title-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 30px;
}

/* Smaller button style */
.add-card-top {
    width: auto !important;
    height: auto !important;
    padding: 10px 18px;
    border-radius: 10px;
    margin: 0;
    border: 2px dashed #31572c;
    color: #31572c;
    font-size: 1rem;
}

.add-card-top:hover {
    background: #31572c;
    color: white;
}



/* Empty state (hidden by default) */
.empty-state {
    display: block;
    text-align: center;
    margin-top: 48px;
    color: #555;
}
.empty-state img {
    width: 140px;
    margin-bottom: 12px;
}

/* Footer link to requirements PDF */
.app-footer {
    margin-top: 52px;
    text-align: center;
}
.requirements-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}
.requirements-link:hover {
    text-decoration: underline;
}

/* ---------------- MODAL STYLES (Add / Edit forms) ---------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* toggled by JS */
    justify-content: center;
    align-items: center;
    z-index: 120;
    padding: 20px;
}

.modal-box {
    background: #e5e5e5;
    width: 92%;
    max-width: 640px;
    border-radius: 16px;
    color: #000;
    padding: 26px 28px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.28);
    animation: modalIn 200ms ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-title {
    text-align: center;
    font-family: "Lora", serif;
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* Modal form controls */
.modal-form {
    display: grid;
    font-family: "Lora", serif;
    gap: 10px;
}
.modal-form label{
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 8px;
}
.modal-form input,
.modal-form textarea,
.modal-form select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cfcfcf;
    font-size: 0.98rem;
    background: #fff;
    resize: vertical;
}
.modal-form textarea {
    min-height: 100px;
}

/* Modal action buttons */
.modal-save-btn {
    margin-top: 6px;
    width: 100%;
    background: #4C9085;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}
.modal-save-btn:hover { opacity: 0.95; }

.modal-close-btn {
    margin-top: 8px;
    width: 100%;
    background: #d9534f;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
}

.error-msg {
    color: red;
    font-size: 0.85rem;
    margin-top: -4px;
    margin-bottom: 6px;
    display: block;
}


/** modal auto scrolling and prevent background scrolling while modal is open */
/* Make modal content scroll inside the box */
.modal-box {
    max-height: 90vh;        /* Prevent modal from exceeding viewport */
    overflow-y: auto;        /* Enable scroll INSIDE the modal */
}

/* Add padding to avoid text touching top */
.modal-box::-webkit-scrollbar {
    width: 8px;
}

.modal-box::-webkit-scrollbar-thumb {
    background: #bbbbbb;
    border-radius: 10px;
}

.modal-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body.modal-open {
    overflow: hidden;
}

/* ---------------- VIEW/EDIT MODAL LAYOUT ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;               /* toggled by JS */
  justify-content: center;
  align-items: center;
  z-index: 150;
  padding: 18px;
}

.modal-box.view-modal-grid {
    width: 92%;
    max-width: 980px;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    background: #e5e5e5;
    overflow-x: hidden;
    overflow-y: scroll;
}

/* grid: left (image+steps)  and right (fields) */
.view-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 18px;
    align-items: start;
}

/* left column */
.view-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* image preview */
.image-preview-wrap {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.image-preview-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* Steps textarea */
.view-steps {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #d0d0d0;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* right column */
.view-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #000;
}

/* labels + inputs */
.view-label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: #222;
}
.view-input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  background: #fff;
  font-size: 0.95rem;
}

/* textarea same as input styling when used on right */
.view-right textarea.view-input {
  min-height: 80px;
  resize: vertical;
}

/* file input */
.view-file-input {
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dcdcdc;
}

/* action buttons */
.view-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

/* simple button styles */
.btn {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary {
  background: #4C9085;
  color: white;
}
.btn-secondary {
  background: #d9534f;
  color: white;
}

/* disabled fields appearance */
.view-form input[disabled],
.view-form textarea[disabled],
.view-form select[disabled] {
  background: #f8f8f8;
  color: #333;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
  .view-grid { grid-template-columns: 1fr; }
  .image-preview-wrap { min-height: 180px; }
  .view-steps { min-height: 160px; }
}


/* DELETE MODAL */
.delete-modal-box {
    max-width: 350px;
    text-align: center;
    background: #e5e5e5;
}

/* Buttons in delete modal */
.delete-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Button styling */
.delete-recipe-btn {
    background: #c93a43;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG sizing */
.trash-svg {
    width: 22px;
    height: 22px;
}

/* LID pivot point */
.trash-lid {
    transform-origin: 12px 6px; /* hinge of the lid */
    transition: transform 0.25s ease;
}

/* On hover: trigger bounce animation */
.delete-recipe-btn:hover .trash-lid {
    animation: lidBounce 0.45s ease-out forwards;
}

/* Cute bounce-open animation */
@keyframes lidBounce {
    0%   { transform: rotate(0deg); }
    40%  { transform: rotate(-32deg); } /* first jump */
    65%  { transform: rotate(-22deg); } /* small recoil */
    85%  { transform: rotate(-30deg); } /* settle */
    100% { transform: rotate(-28deg); } /* final cute angle */
}





.confirm-btn {
    padding: 10px 18px;
    background: red;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.cancel-btn {
    padding: 10px 18px;
    background: #ccc;
    color: #222;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* FADE-OUT ANIMATION */
.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.35s ease;
}

/* TOAST */
#toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #333;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

#toast.show {
    opacity: 1;
    transform: translateY(-10px);
}

/** Lottie Files Spinner CSS */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0.9;

    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
}

#loading-text {
    margin-top: 12px;
    font-size: 1.1rem;
    color: #444;
    font-weight: 600;
}

/* ---------------- TABS ---------------- */
.tab-switch {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 26px;
}

.tab-btn {
    padding: 10px 22px;
    border-radius: 10px;
    background: #d8f3dc;
    color: #000;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.tab-btn:hover {
    background: #4F772D;
    color: #fff;
}

.tab-btn.active {
    background: #31572C;
    color: white;
}

/* Hide inactive content */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}


/* ---------------- KANBAN BOARD ---------------- */
.kanban-title {
    text-align: center;
    margin-bottom: 20px;
    font-family: "Lora", serif;
    font-size: 1.8rem;
    color: var(--header-text);
}

.kanban-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.kanban-column {
    background: var(--card-bg);
    color: var(--header-text);
    border-radius: 12px;
    padding: 14px;
    min-height: 420px;
}

.kanban-column h3 {
    text-align: center;
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.2rem;
}

.kanban-list {
    min-height: 350px;
    background: var(--bg);
    border-radius: 12px;
    padding: 10px;
    border: 2px dashed #7A9E7E;
}

.kanban-card {
    background: #5a8379;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    color: white;
    cursor: grab;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    transition: 0.2s ease;
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}


/* ---------------- COLORED TOAST ---------------- */
#toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--toast-bg);
    color: var(--toast-text);
    padding: 14px 18px;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    font-weight: 600;
    border: 2px solid #31572C;
}

#toast.show {
    opacity: 1;
    transform: translateY(-12px);
}


/* ---------------- RESPONSIVE ---------------- */

/* Tablet & Medium Screens */
@media (max-width: 900px) {
  .container {
    width: 95%;
    padding: 20px 0 60px;
  }
  
  .logo-text {
    font-size: 1.4rem;
  }
  
  .title-text {
    font-size: 1.6rem;
  }
  
  .search {
    width: 420px;
  }
  
  .recipe-card-ui {
    width: 100%;
    max-width: 320px;
  }
  
  .add-card {
    width: 100%;
    max-width: 320px;
  }
  
  .title-row {
    flex-direction: column;
    gap: 14px;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 700px) {
  .primary-header {
    padding: 16px 16px;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .title-search-filters {
    gap: 12px;
    padding: 0 12px;
    flex-direction: column;
  }
  
  .title-text {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
  
  .search-filter-group {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  
  .search {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .difficulty-filter, .prep-filter {
    width: 100%;
    max-width: 100%;
  }
  
  #recipe-container {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  
  .recipe-card-ui {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .add-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 0;
  }
  
  .recipe-info {
    height: auto;
    min-height: 195px;
  }
  
  .modal-box {
    max-width: 95%;
    padding: 20px 16px;
  }
  
  .modal-title {
    font-size: 1.3rem;
  }
  
  .title-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .add-card-top {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .container {
    width: 96%;
    padding: 16px 0 50px;
  }
  
  .primary-header {
    padding: 14px 12px;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .title-text {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 1.1rem;
    margin-top: 24px;
  }
  
  .search {
    height: 44px;
    font-size: 0.95rem;
    padding-left: 44px;
  }
  
  .difficulty-filter, .prep-filter {
    height: 42px;
    font-size: 0.9rem;
  }
  
  .recipe-card-ui {
    border-radius: 14px;
  }
  
  .recipe-img {
    height: 120px;
  }
  
  .recipe-info {
    padding: 12px 14px 16px;
  }
  
  .recipe-title {
    font-size: 1rem;
  }
  
  .recipe-prep {
    font-size: 0.85rem;
  }
  
  .difficulty-chip {
    font-size: 0.8rem;
    padding: 3px 10px;
    bottom: 10px;
    right: 12px;
  }
  
  .delete-recipe-btn {
    padding: 10px;
    font-size: 0.8rem;
    bottom: 10px;
    left: 12px;
  }
  
  .add-card {
    height: 260px;
    font-size: 1.1rem;
  }
  
  .modal-box {
    max-width: 96%;
    padding: 18px 14px;
    border-radius: 12px;
  }
  
  .modal-title {
    font-size: 1.2rem;
  }
  
  .modal-form input,
  .modal-form textarea,
  .modal-form select {
    padding: 10px;
    font-size: 0.95rem;
  }
  
  .modal-save-btn {
    padding: 11px;
    font-size: 0.95rem;
  }
  
  .modal-close-btn {
    padding: 9px;
    font-size: 0.9rem;
  }
  
  .view-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .image-preview-wrap {
    min-height: 160px;
    padding: 14px;
  }
  
  .view-steps {
    min-height: 140px;
  }
  
  .btn {
    padding: 9px 12px;
    font-size: 0.9rem;
  }
  
  #toast {
    bottom: 15px;
    right: 15px;
    left: 15px;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .delete-modal-box {
    max-width: 300px;
  }
  
  .app-footer {
    margin-top: 40px;
  }
  
  .requirements-link {
    font-size: 0.9rem;
  }
}

/* Very Small Devices */
@media (max-width: 360px) {
  .logo-text {
    font-size: 1.1rem;
  }
  
  .title-text {
    font-size: 1.2rem;
  }
  
  .recipe-title {
    font-size: 0.95rem;
  }
  
  .modal-title {
    font-size: 1.1rem;
  }
}


/** Dark Mode */
/* --- macOS style toggle --- */

.theme-switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;

    inset: 0;
    background: #d0d0d0;
    border-radius: 34px;

    transition: background 0.3s ease;
}

/* The round circle */
.slider::before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;

    left: 2px;
    top: 2px;

    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* Sun/Moon icons */
.icon {
    position: absolute;
    font-size: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sun {
    left: 8px;
}

.moon {
    right: 8px;
}

/* Checked (Dark Mode Enabled) */
input:checked + .slider {
    background: #4c6e5c;
}

input:checked + .slider::before {
    transform: translateX(28px);
}

/* Fade icons in/out */
input:not(:checked) + .slider .sun {
    opacity: 1;
}

input:checked + .slider .moon {
    opacity: 1;
}

