/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #fafafa;
  color: #222;
  display: flex;
  line-height: 1.6;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: #007b7b;
}

/* Search Bar */
.search-bar {
  display: flex;
  position: relative;
  align-items: center;
  background: #f2f2f2;
  border-radius: 20px;
  padding: 4px 15px;
  width: fit-content;
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  padding: 8px;
  width: 160px;
}

.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
  color: #444;
  font-size: 1rem;
  transition: color 0.3s;
}

.search-bar button:hover {
  color: #007b7b;
}

/* ===== Live Search Dropdown ===== */
.search-results {
  position: absolute;
  top: 100%;
  width: 190%;
  left: 0;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  max-height: 390px;
  overflow-y: auto;
  display: none;
  padding: 6px 0;
  z-index: 9999;
  margin-top: 6px;
}

/* Single result */
.search-results .result-item {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 5px 10px;
  font-size: 0.75rem;
  color: #222;
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-results .result-item:hover {
  background: #f4f4f4;
}

/* Optional: small thumb and category */
.result-thumb {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
}

.result-body {
  flex: 1;
  min-width: 0;
}
.result-title {
  font-size: 0.75rem;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-meta {
  font-size: 0.7rem;
  color: #666;
  margin-top: 3px;
}

/* No result */
.search-results .no-result {
  padding: 10px;
  color: #777;
  text-align: center;
  font-size: 0.8rem;
}

/* Mobile tweaks */
@media (max-width: 900px) {
  .search-results {
    width: 185%;
    max-height: 220px;
    padding: 4px 0;
    margin-top: 4px;
    border-radius: 6px;
  }

  .search-results .result-item {
    gap: 5px;
    padding: 4px 8px;
  }

  .result-thumb {
    width: 28px;
    height: 28px;
    border-radius: 2px;
  }

  .result-title {
    font-size: 0.55rem;
  }
  .result-meta {
    font-size: 0.5rem;
    margin-top: 1px;
  }

  /* No result */
  .search-results .no-result {
    padding: 4px;
    font-size: 0.55rem;
  }
}

#searchButton i {
  transition:
    transform 0.2s ease,
    color 0.3s ease;
}

#searchButton.clear i {
  color: #e74c3c;
  transform: rotate(90deg);
}

/* Navbar */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a i {
  margin-right: 5px;
}

.navbar a:hover {
  color: #007b7b;
}

/*Theme Toggle Styles */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #444;
}

.theme-toggle:hover {
  color: #007b7b;
}

.theme-toggle i:hover {
  transform: rotate(15deg);
}

.theme-toggle span {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
}

.theme-toggle span:hover {
  color: #007b7b;
}

/* Mobile Menu Icon */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .header {
    padding: 15px 15px;
  }

  .logo {
    font-size: 0.9rem;
    gap: 5px;
  }

  .search-bar {
    border-radius: 15px;
    padding: 5px 10px;
  }

  .search-bar input {
    padding: 1px;
    width: 75px;
    font-size: 0.5rem;
  }

  .search-bar input::placeholder {
    font-size: 0.45rem;
  }
  .search-bar button {
    font-size: 0.5rem;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 40px;
    right: 14px;
    width: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar.active ul {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    padding: 8px;
  }

  .theme-toggle i {
    font-size: 0.8rem;
  }

  .theme-toggle span {
    font-size: 0.8rem;
  }

  .menu-toggle {
    display: block;
    font-size: 1rem;
  }
}

/* ===== Home Section */
.home {
  padding: 20px 20px;
  background-color: #ffffff; /* soft white */
  text-align: center;
}

.home-content {
  max-width: 800px;
  margin: 0 auto;
  color: #222;
}

.home h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.home .tagline {
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 15px;
  font-weight: 600;
}

.home .intro {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
  text-align: justify;
}

/* Subtle divider effect for elegance */
.home::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #a4c639; /* soft green accent */
  margin: 22px auto 0;
  border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .home {
    padding: 20px 15px;
  }

  .home h1 {
    font-size: 1.2rem;
    letter-spacing: 0;
  }

  .home .tagline {
    font-size: 0.7rem;
  }

  .home .intro {
    font-size: 0.65rem;
    padding: 0 10px;
  }

  .home::after {
    width: 70px;
    height: 2.5px;
    margin: 15px auto 0;
  }
}

/* ===== Gallery Category Bar ===== */
.gallery {
  padding: 30px 20px 40px;
  background-color: #ffffff;
  text-align: center;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 25px;
  padding-left: 30px;
}

.category {
  background-color: #f4f4f4;
  color: #222;
  border: none;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.category:hover {
  background-color: #a4c639; /* soft green accent */
  color: #fff;
  transform: translateY(-2px);
}

.category.active {
  background-color: #a4c639;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===== Favorite Switch ===== */
.favorite-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  right: 0;
  top: 0;
  user-select: none;
}

.favorite-switch input {
  display: none;
}

.favorite-switch .slider {
  width: 40px;
  height: 20px;
  background-color: #ddd;
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.favorite-switch .slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 2px;
  left: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.favorite-switch input:checked + .slider {
  background-color: #a4c639; /* green accent */
}

.favorite-switch input:checked + .slider::before {
  transform: translateX(20px);
}

.favorite-switch i {
  font-size: 1.1rem;
  color: #777;
  transition: color 0.3s ease;
}

.favorite-switch input:checked ~ i {
  color: #a4c639;
}

.fav-text {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery {
    padding: 10px 20px 20px;
  }

  .category-bar {
    justify-content: start;
    gap: 10px;
    padding-left: 0px;
  }

  .category {
    padding: 9px 10px;
    font-size: 0.65rem;
  }

  .favorite-switch {
    gap: 6px;
  }

  .favorite-switch .slider {
    width: 30px;
    height: 16px;
  }

  .favorite-switch .slider::before {
    width: 14px;
    height: 14px;
    top: 1px;
    left: 1px;
  }

  .favorite-switch input:checked + .slider::before {
    transform: translateX(14px);
  }

  .favorite-switch i {
    font-size: 0.9rem;
  }

  .fav-text {
    font-size: 0.7rem;
  }
}

/* ===== Gallery Section ===== */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #222;
  padding: 35px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 15px;
}

.gallery-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.img-box {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.02);
}

.card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-actions button {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card-actions button:hover {
  background: #a4c639;
  color: #fff;
  transform: scale(1.1);
}

.card-actions i {
  font-size: 0.9rem;
  color: #333;
}

.card-body {
  padding: 12px 14px 15px;
  text-align: left;
}

.prompt-text {
  font-size: 0.8rem;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.4;
  text-align: justify;
  display: none; /* hidden on mobile */
}

.category-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: #555;
  background-color: #f2f2f2;
  padding: 4px 10px;
  border-radius: 25px;
}

/* Show Prompt Animation */
.prompt-text.visible {
  display: block;
  animation: fadeSlideIn 0.4s ease forwards;
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.2rem;
    padding: 25px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-actions {
    flex-direction: row;
    gap: 10px;
    top: auto;
    bottom: 10px;
    right: 10px;
  }

  .prompt-text {
    display: none;
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .category-tag {
    font-size: 0.6rem;
    padding: 4px 6px;
    border-radius: 25px;
  }
}

/* Tooltip for Copied */
.copied-tooltip {
  position: absolute;
  top: 10px;
  right: 50%;
  transform: translateX(50%);
  background: #333;
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.copied-tooltip.show {
  opacity: 1;
}

/* ===== Lightbox Effect ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  animation: fadeIn 0.4s ease;
  padding: 30px;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 75vh;
  border-radius: 14px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  animation: zoomIn 0.4s ease;
}

.lightbox-caption {
  margin-top: 15px;
  font-size: 1rem;
  color: #333;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 14px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  display: none; /* Caption will not show with lightbox image */
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.close-btn:hover {
  color: #a4c639;
  transform: rotate(90deg);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .lightbox-img {
    max-width: 95%;
    max-height: 65vh;
  }
  .lightbox-caption {
    font-size: 0.8rem;
    line-height: 1.3;
    text-align: justify;
    display: none;
  }

  .close-btn {
    top: 10px;
  }
}

/* ===== Upload Section ===== */
.upload-section {
  padding: 30px 20px;
  background: #fff;
  text-align: center;
  border-top: 1px solid #eee;
}

.upload-section h2 {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 10px;
}

.upload-subtext {
  color: #666;
  margin-bottom: 30px;
  font-size: 1rem;
}

.upload-form {
  max-width: 600px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

input[type="file"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  outline: none;
  transition: border-color 0.3s ease;
}

input[type="file"]:focus,
textarea:focus,
select:focus {
  border-color: #a4c639;
}

.image-preview {
  margin-top: 12px;
  width: 100%;
  height: 200px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  background-color: #fff;
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-btn {
  background-color: #a4c639;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.upload-btn:hover {
  background-color: #8fae2f;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .upload-section {
    padding: 20px 25px;
  }

  .upload-section h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }

  .upload-subtext {
    margin-bottom: 10px;
    font-size: 0.8rem;
  }

  .upload-form {
    padding: 20px;
  }

  .form-group {
    margin-bottom: 30px;
  }

  label {
    margin-bottom: 4px;
    font-size: 0.9rem;
  }

  input[type="file"],
  textarea,
  select {
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 0.8rem;
  }

  .image-preview {
    margin-top: 10px;
    height: 170px;
  }

  .upload-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
}

/* ===== PROFILE POPUP ===== */
.profile-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.profile-popup.show {
  display: flex;
}

.profile-popup .popup-box {
  background: #fff;
  width: 92%;
  max-width: 420px;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  text-align: center;
  animation: popupIn 0.32s ease;
}

.profile-popup .popup-box h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #111;
}

.profile-popup .popup-box p {
  margin: 0 0 18px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.45;
}

.profile-popup .popup-box .ok-btn {
  background: #a4c639;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.profile-popup .popup-box .ok-btn:hover {
  transform: translateY(-3px);
  background: #8fae2f;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .profile-popup .popup-box {
    width: 80%;
    padding: 20px;
  }

  .profile-popup .popup-box h2 {
    font-size: 0.8rem;
  }

  .profile-popup .popup-box p {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .profile-popup .popup-box .ok-btn {
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 500;
  }
}

/* =====Footer ===== */
.footer {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  padding: 35px 20px;
  text-align: center;
  color: #555;
  font-size: 0.95rem;
}

.footer-brand h3 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 6px;
}

.footer-brand p {
  color: #777;
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 15px 0px;
  }

  .footer-brand h3 {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .footer-brand p {
    font-size: 0.6rem;
  }
}

/* ===== Back to Top Button ===== */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #a4c639;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  z-index: 999;
}

#backToTop:hover {
  background-color: #8fae2f;
  transform: translateY(-3px);
}

/* Smooth appear animation */
#backToTop.show {
  display: flex;
  animation: fadeInBtn 0.4s ease;
}

@keyframes fadeInBtn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  #backToTop {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* ===== DARK MODE STYLES ===== */
body.dark {
  background-color: #121212;
  color: #e0e0e0;
}

/* Header */
body.dark .header {
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}

body.dark .logo {
  color: #f5f5f5;
}

body.dark .logo span {
  color: #a4c639;
}

body.dark .search-bar {
  background: #2a2a2a;
}

body.dark .search-bar input {
  color: #ddd;
}

body.dark .search-bar button {
  color: #ccc;
}

body.dark .search-bar button:hover {
  color: #a4c639;
}

body.dark .search-results {
  background: #1f1f1f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

body.dark .result-title {
  color: #ccc;
}

body.dark .search-results .result-item:hover {
  background-color: #1a1a1a;
}

body.dark .result-meta {
  color: #aaa;
}

body.dark .search-results .no-result {
  color: #ccc;
}

/* Navbar */
body.dark .navbar a {
  color: #ccc;
}

body.dark .navbar a:hover {
  color: #a4c639;
}

body.dark .theme-toggle {
  color: #ccc;
}

body.dark .theme-toggle:hover {
  color: #a4c639;
}

body.dark .theme-toggle span {
  color: #ccc;
}

body.dark .theme-toggle span:hover {
  color: #a4c639;
}

body.dark .navbar ul {
  background: #1e1e1e;
  border-color: #333;
}

/* Home Section */
body.dark .home {
  background-color: #1a1a1a;
}

body.dark .home h1 {
  color: #f5f5f5;
}

body.dark .home .tagline {
  color: #cfcfcf;
}

body.dark .home .intro {
  color: #aaa;
}

body.dark .home::after {
  background-color: #a4c639;
}

/* Category Bar */
body.dark .gallery {
  background-color: #1a1a1a;
}

body.dark .category {
  background-color: #2a2a2a;
  color: #ddd;
  box-shadow: none;
}

body.dark .category:hover {
  background-color: #a4c639;
  color: #fff;
}

body.dark .category.active {
  background-color: #a4c639;
  color: #fff;
}

/* Favorite Switch */
body.dark .favorite-switch .slider {
  background-color: #333;
}

body.dark .favorite-switch input:checked + .slider {
  background-color: #a4c639;
}

body.dark .favorite-switch i {
  color: #999;
}

body.dark .favorite-switch input:checked ~ i {
  color: #a4c639;
}

body.dark .fav-text {
  color: #ddd;
}

/* Gallery Cards */
body.dark .gallery-card {
  background: #1f1f1f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

body.dark .section-title {
  color: #f5f5f5;
}

body.dark .prompt-text {
  color: #ccc;
}

body.dark .category-tag {
  background-color: #2b2b2b;
  color: #aaa;
}

body.dark .card-actions button {
  background-color: #2b2b2b;
}

body.dark .card-actions button:hover {
  background-color: #a4c639;
}

body.dark .card-actions i {
  color: #fff;
}

/* Lightbox */
body.dark .lightbox {
  background: rgba(10, 10, 10, 0.9);
}

body.dark .lightbox-caption {
  color: #ddd;
  background: rgba(25, 25, 25, 0.8);
}

body.dark .close-btn {
  color: #ccc;
}

body.dark .close-btn:hover {
  color: #a4c639;
}

/* Upload Section */
body.dark .upload-section {
  background: #1a1a1a;
  border-top-color: #333;
}

body.dark .upload-section h2 {
  color: #f5f5f5;
}

body.dark .upload-subtext {
  color: #ccc;
}

body.dark .upload-form {
  background: #2a2a2a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.dark label {
  color: #ccc;
}

body.dark input[type="file"],
body.dark textarea,
body.dark select {
  background: #1e1e1e;
  color: #ddd;
  border-color: #333;
}

body.dark .image-preview {
  background: #222;
  border-color: #444;
  color: #888;
}

body.dark .upload-btn {
  background-color: #a4c639;
}

body.dark .upload-btn:hover {
  background-color: #8fae2f;
}

/* Profile Section */
body.dark .profile-popup .popup-box {
  background: #1b1b1f;
  color: #eaeaea;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
body.dark .profile-popup .popup-box p {
  color: #bdbdbd;
}
body.dark .profile-popup .popup-box h2 {
  color: #e0e0e0;
}

/* Footer */
body.dark .footer {
  background: #1e1e1e;
  border-top: 1px solid #333;
  color: #ccc;
}

body.dark .footer-brand h3 {
  color: #f5f5f5;
}

body.dark .footer-brand p {
  color: #aaa;
}

/* Back to Top Button */
body.dark #backToTop {
  background-color: #a4c639;
  color: #fff;
}

body.dark #backToTop:hover {
  background-color: #8fae2f;
}

/* Responsive Adjustments for Dark Mode */
@media (max-width: 768px) {
  body.dark .navbar ul {
    background: #1e1e1e;
    border-color: #333;
  }
}
