/* Light Mode (Default) */
:root {
  --bg-color: #ffffff; /* Background for body */
  --text-color: #000000; /* Text color */
  --button-bg: #f0f0f0; /* Button background color */
  --container-bg: #ffffff; /* Container background */
  --container-border: #ccc; /* Container border color */
  --filter-btn-bg: #fff; /* Filter button background */
  --filter-btn-border: #aaa; /* Filter button border */
  --filter-btn-color: #6c757d; /* Filter button text */
}

/* Body */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}


/* Container */
.container {
  width: 850px;
  padding: 30px 35px 35px;
  background: var(--container-bg);
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--container-border);
  transition: background-color 0.3s, border-color 0.3s;
}

/* Buttons in .editor-panel */
.editor-panel button {
  background: #fff; /* Static background color */
  color: #6c757d; /* Static text color */
  border: 1px solid #aaa; /* Static border color */
  outline: none;
  height: 40px;
  font-size: 14px;
  border-radius: 3px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect (doesn’t change on dark mode toggle) */
.editor-panel button:hover {
  background: #f5f5f5;
}

/* Active Filter Button */
.filter button.active {
  background: #5372f0;
  color: #fff;
  border-color: #5372f0;
}

/* Slider for filters */
.filter .slider {
  margin-top: 12px;
}
.filter .slider input {
  width: 100%;
  height: 5px;
  accent-color: #5372f0;
}
p.name, p.value {
  color: var(--text-color); /* Dynamic color for text */
  transition: color 0.3s; /* Smooth transition for color */
}
  /* Rotate Options */
.rotate .options button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff; /* Static color */
  color: #6c757d; /* Static text color */
  border: 1px solid #aaa; /* Static border color */
}
.rotate .options button:hover {
  background: #f5f5f5;
}
.rotate .options button:active {
  background: #5372f0; /* Button clicked */
  color: #fff;
  border-color: #5372f0;
}

/* Reset filter button */
.controls .reset-filter {
  background: #5372f0;;
  color: #000000;
  border: 1px solid #5372f0;
}
.controls .reset-filter:hover {
  background: #5372f0;
  color: #ffffff;
}

/* Save and Choose Image Buttons */
.controls .choose-img,
.controls .save-img {
  background: #5372f0;
  color: #2c2b2b;
  border: 1px solid #5372f0;
  transition: all 0.3s ease;
}
.controls .save-img:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
}

/* Dark Mode */
body.dark-mode {
  --bg-color: #121212;
  --text-color: #ffffff;
  --button-bg: #333333;
  --container-bg: #1e1e1e;
  --container-border: #444444;
  --filter-btn-bg: #444444;
  --filter-btn-border: #666666;
  --filter-btn-color: #dddddd;
}
/* Dark Mode */
body.dark-mode p.name,
body.dark-mode p.value {
  color: #ffffff; /* White text color for dark mode */
}
.theme-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: transparent; /* Make background fully transparent */
  border: none;
  border-radius: 50%; /* Still applies to transparent shape */
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s; /* Can now be removed since it's transparent */
  box-shadow: none; /* Remove shadow if you want no additional styles */
}

.theme-toggle i {
  font-size: 20px;
  color: var(--text-color);
  transition: color 0.3s;
}


/* Skeleton loading animation styles */
.skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.skeleton {
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 5px;
}

.skeleton-image {
  width: 100%;
  height: 200px;
}

.skeleton-text-line {
  width: 90%;
  height: 15px;
}

.skeleton-text-line:last-child {
  width: 70%;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}