/* Dark Mode CSS */

/* Basic dark mode styles */
.dark-mode {
  background-color: #000000 !important;
  color: white !important;
}

/* HTML element styles */
html.dark-mode {
  background-color: #000000 !important;
}

/* Main container backgrounds */
.dark-mode .flex.flex-col.h-full {
  background-color: #000000 !important;
  backdrop-filter: none;
}

/* Background colors */
.dark-mode .bg-white,
.dark-mode .dark-bg,
.dark-mode .bg-white\/80 {
  background-color: #0a0a0a !important;
  backdrop-filter: none !important;
}

.dark-mode .bg-gray-50,
.dark-mode .bg-gray-100,
.dark-mode .dark-bg-secondary {
  background-color: #101010 !important;
}

/* Gradient backgrounds */
.dark-mode .bg-gradient-to-br,
.dark-mode .dark-gradient {
  background: #000000 !important;
  background-image: none !important;
}

/* Text colors */
.dark-mode .text-gray-700, 
.dark-mode .text-gray-600, 
.dark-mode .text-gray-500,
.dark-mode .text-gray-900 {
  color: #808080 !important;
}

.dark-mode .text-primary {
  color: #4ac8f0 !important;
}

/* Border colors */
.dark-mode .border-gray-200 {
  border-color: #1a1a1a !important;
}

/* Component-specific styles */
.dark-mode #report,
.dark-mode #insights-content,
.dark-mode #chat-container,
.dark-mode .toggle-switch,
.dark-mode .dark-container {
  background-color: #212121 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* Footer styles */
.dark-mode footer {
  background-color: #0a0a0a !important;
  border-color: #1a1a1a !important;
}

/* Form elements */
.dark-mode input[type="text"],
.dark-mode input[type="file"] {
  background-color: #101010;
  color: white;
  border-color: #1a1a1a;
}

/* Buttons */
.dark-mode button.bg-primary {
  background-color: #4ac8f0 !important;
}

.dark-mode button.hover\:bg-primary-dark:hover {
  background-color: #23baec !important;
}

/* Scrollbar customization for dark mode */
.dark-mode #report::-webkit-scrollbar-track,
.dark-mode #insights-content::-webkit-scrollbar-track,
.dark-mode .chat-messages::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.dark-mode #report::-webkit-scrollbar-thumb,
.dark-mode #insights-content::-webkit-scrollbar-thumb,
.dark-mode .chat-messages::-webkit-scrollbar-thumb {
  background: #333;
} 

/* From Uiverse.io by JustCode14 */ 
/* Theme Switch */
/* The switch - the box around the slider */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 4em;
  height: 2.2em;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #00a6ff;
  transition: 0.4s;
  border-radius: 30px;
  overflow: hidden;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.2em;
  width: 1.2em;
  border-radius: 20px;
  left: 0.5em;
  bottom: 0.5em;
  transition: 0.4s;
  transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
  box-shadow: inset 15px -4px 0px 15px #ffcf48;
}

.switch input:checked + .slider {
  background-color: #2a2a2a;
}

.switch input:checked + .slider:before {
  transform: translateX(1.8em);
  box-shadow: inset -3px -2px 0px 0px #fff;
}

.star {
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  width: 5px;
  transition: all 0.4s;
  height: 5px;
  opacity: 0;
}

.star_1 {
  left: 0.5em;
  top: 0.5em;
}

.star_2 {
  left: 0.8em;
  top: 1.2em;
}

.star_3 {
  left: 0.3em;
  top: 0.9em;
}

.switch input:checked ~ .slider .star {
  opacity: 1;
}

.cloud {
  width: 3.5em;
  position: absolute;
  bottom: -1.4em;
  left: -1.1em;
  opacity: 1;
  transition: all 0.4s;
}

.switch input:checked ~ .slider .cloud {
  opacity: 0;
} 