/*        !* Light/Dark Mode Toggle *!*/
/*        body.light {*/
/*            background-color: #f8f9fa;*/
/*            color: #000;*/
/*        }*/
/*        body.dark {*/
/*            background-color: #1c1c1c;*/
/*            color: #fff;*/
/*        }*/

/*        !* Navbar styling *!*/
/*        .navbar {*/
/*            background-color: #292c35;*/
/*        }*/

/*     !* Dark mode styling for Bootstrap and Flowbite cards *!*/
/*body.dark .card {*/
/*    background-color: #2d2f36; !* Dark background for cards *!*/
/*    color: #ffffff;            !* White text for readability *!*/
/*    border: 1px solid #444;    !* Subtle border for contrast *!*/
/*}*/

/*body.dark .card-title,*/
/*body.dark .card-text {*/
/*    color: #ffffff;            !* Ensure all card text is white *!*/
/*}*/

/*!* Dark mode adjustments for custom cards, input fields, buttons, and text *!*/
/*body.dark {*/
/*    !* General background and text color adjustments *!*/
/*    background-color: #1c1c1c;*/
/*    color: #ffffff;*/
/*}*/

/*!* Dark mode styling for general viewing area and cards *!*/
/*body.dark .bg-white,*/
/*body.dark .card,*/
/*body.dark .p-4 {*/
/*    background-color: #2d2f36 !important; !* Dark background *!*/
/*    color: #ffffff; !* White text *!*/
/*    border: 1px solid #444; !* Darker border for separation *!*/
/*}*/

/*!* Dark mode for input fields *!*/
/*body.dark input[type="number"],*/
/*body.dark input[type="file"] {*/
/*    background-color: #3a3d44; !* Darker field background *!*/
/*    color: #ffffff; !* Light text color for contrast *!*/
/*    border: 1px solid #666; !* Subtle border *!*/
/*}*/

/*!* Buttons in dark mode *!*/
/*body.dark .bg-blue-700,*/
/*body.dark .bg-blue-800,*/
/*body.dark button {*/
/*    background-color: #1e3a8a !important; !* Darkened blue for dark mode *!*/
/*    color: #ffffff; !* Ensure white text *!*/
/*    border: none;*/
/*}*/


/*!* Dark mode styling for accordion and content sections *!*/
/*body.dark #materials-accordion [data-accordion-target] {*/
/*    background-color: #333; !* Darker shade for accordions *!*/
/*    color: #ffffff;*/
/*}*/

/*body.dark .border-gray-200,*/
/*body.dark .border-gray-700 {*/
/*    border-color: #444; !* Adjust border color for dark mode consistency *!*/
/*}*/

/*body.dark .text-gray-500,*/
/*body.dark .text-gray-400,*/
/*body.dark .text-gray-900,*/
/*body.dark .form-label,*/
/*body.dark .font-medium {*/
/*    color: #d1d5db; !* Adjust text colors to lighter gray *!*/
/*}*/

/*body.dark .card-footer {*/
/*    background-color: #3a3d44;*/
/*    color: #ffffff;*/
/*}*/

/*!* Additional styling for links/buttons within dark mode cards *!*/
/*body.dark .card a {*/
/*    color: #ffffff;           !* Make links within cards stand out *!*/
/*}*/

/*body.dark .card a:hover {*/
/*    color: #63b3ed;           !* Lighter shade on hover for visual feedback *!*/
/*}*/

/*body.dark .card .btn {*/
/*    color: #ffffff;*/
/*    background-color: #007bff;*/
/*    border-color: #0069d9;*/
/*}*/

/*body.dark .card .btn:hover {*/
/*    background-color: #0056b3; !* Darker shade on hover for buttons *!*/
/*    border-color: #004085;*/
/*}*/


/*        body.light .navbar {*/
/*            background-color: #ffffff;*/
/*        }*/
/*        .navbar a {*/
/*            color: inherit;*/
/*            transition: color 0.3s ease;*/
/*        }*/
/*        .navbar a:hover {*/
/*            color: #0081ff;*/
/*        }*/

/*        !* Dark mode for Bootstrap components *!*/
/*        body.dark .btn {*/
/*            color: #fff;*/
/*            background-color: #333;*/
/*            border-color: #444;*/
/*        }*/
/*        body.dark .btn-primary {*/
/*            background-color: #007bff;*/
/*            border-color: #0069d9;*/
/*        }*/
/*        body.dark .btn-warning {*/
/*            background-color: #ffc107;*/
/*            border-color: #ffca2c;*/
/*        }*/
/*        body.dark .btn-success {*/
/*            background-color: #28a745;*/
/*            border-color: #218838;*/
/*        }*/



/*        !* Toggle switch *!*/
/*        .toggle-wrapper {*/
/*            display: flex;*/
/*            align-items: center;*/
/*        }*/
/*        .checkbox {*/
/*            display: none;*/
/*        }*/
/*        .checkbox-label {*/
/*            width: 40px;*/
/*            height: 20px;*/
/*            border-radius: 15px;*/
/*            background: #333;*/
/*            position: relative;*/
/*            cursor: pointer;*/
/*        }*/
/*        .checkbox-label .ball {*/
/*            width: 16px;*/
/*            height: 16px;*/
/*            border-radius: 50%;*/
/*            background: #fff;*/
/*            position: absolute;*/
/*            top: 2px;*/
/*            left: 2px;*/
/*            transition: transform 0.3s ease;*/
/*        }*/
/*        .checkbox:checked + .checkbox-label .ball {*/
/*            transform: translateX(20px);*/
/*        }*/


/* Light/Dark Mode Toggle */
body.light {
    background-color: #f8f9fa;
    color: #000;
}
body.dark {
    background-color: #1c1c1c;
    color: #fff;
}

/* Navbar Styling */
.navbar {
    transition: background-color 0.3s ease, color 0.3s ease;
}
body.light .navbar {
    background-color: #ffffff;
}
body.dark .navbar {
    background-color: #292c35;
}
.navbar a {
    color: inherit;
    transition: color 0.3s ease;
}
.navbar a:hover {
    color: #0081ff;
}

/* Card Styling */
.card {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
body.light .card {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
}
body.dark .card {
    background-color: #2d2f36;
    color: #fff;
    border: 1px solid #444;
}
body.dark .card-title,
body.dark .card-text {
    color: #fff;
}
body.dark .card-footer {
    background-color: #3a3d44;
    color: #fff;
}
body.dark .card a {
    color: #ffffff;
    transition: color 0.3s ease;
}
body.dark .card a:hover {
    color: #63b3ed;
}

/* Buttons */
.btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
body.dark .btn {
    color: #fff;
    background-color: #333;
    border-color: #444;
}
body.dark .btn-primary {
    background-color: #007bff;
    border-color: #0069d9;
}
body.dark .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}
body.dark .btn-warning {
    background-color: #ffc107;
    border-color: #ffca2c;
}
body.dark .btn-success {
    background-color: #28a745;
    border-color: #218838;
}

/* Input Fields */
input[type="number"],
input[type="file"] {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
body.dark input[type="number"],
body.dark input[type="file"] {
    background-color: #3a3d44;
    color: #fff;
    border: 1px solid #666;
}

/* Accordion and Borders */
#materials-accordion [data-accordion-target] {
    transition: background-color 0.3s ease, color 0.3s ease;
}
body.dark #materials-accordion [data-accordion-target] {
    background-color: #333;
    color: #fff;
}
body.dark .border-gray-200,
body.dark .border-gray-700 {
    border-color: #444;
}

/* General Text Adjustments */
body.dark .text-gray-500,
body.dark .text-gray-400,
body.dark .text-gray-900,
body.dark .form-label,
body.dark .font-medium {
    color: #d1d5db;
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
}
.checkbox {
    display: none;
}
.checkbox-label {
    width: 40px;
    height: 20px;
    border-radius: 15px;
    background: #333;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}
.checkbox-label .ball {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}
.checkbox:checked + .checkbox-label .ball {
    transform: translateX(20px);
}

/* Ensuring consistency for utility classes */
body.dark .bg-white,
body.dark .p-4 {
    background-color: #2d2f36 !important;
    color: #fff;
    border: 1px solid #444;
}

/* Consistent Hover Effects */
body.dark .btn:hover {
    background-color: #444;
    color: #fff;
    border-color: #666;
}














/* From Uiverse.io by Galahhad */
.theme-switch {
  --toggle-size: 10px;
  /* the size is adjusted using font-size,
     this is not transform scale,
     so you can choose any size */
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  /* radius 0 - minecraft mode :) */
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
}

.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius)
}

.theme-switch__checkbox {
  display: none;
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  -webkit-box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

.theme-switch__moon {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  -webkit-box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

/* actions */

.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
}

.theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  -webkit-transform: translate(0);
  -ms-transform: translate(0);
  transform: translate(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}