<style>
  /* [Original styles remain unchanged - preserved from your input] */
body {
  margin: 0;
  padding: 0;
  background-color: #f5f5f5; /* Slightly lighter background */
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
}
.logo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #1b1d1f;
  color: white;
  text-align: center;
  padding: 10px 0;
  z-index: 1000;
  font-weight: bold;
  overflow: hidden; /* Prevent text overflow */
  white-space: nowrap; /* Keep text on a single line */
}
.logo span {
  display: inline-block;
  font-size: 1.5rem; /* Default size */
  min-width: 0; /* Allow shrinking */
  transition: font-size 0.3s ease; /* Smooth scaling transition */
}

/* Use viewport units and clamp to autosize text while keeping it readable */
.logo span {
  font-size: clamp(1rem, 4vw, 1.5rem); /* Scales between 1rem and 1.5rem based on viewport width, but ensures it doesn’t get too small or too large */
}
.footer-nav {
  position: fixed;
  bottom: 30px; /* Adjusted for reduced powered-by height */
  left: 0;
  right: 0;
  background-color: #1b1d1f;
  display: flex;
  justify-content: space-around;
  z-index: 1000;
  border-top: none;
  height: 70px; /* Reduced height */
}
.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.8rem; /* Slightly smaller text */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  text-align: center;
}
.footer-nav a i {
  font-size: 1.1rem; /* Slightly smaller icons */
  margin-bottom: 2px; /* Reduced margin */
}
.footer-nav a.active {
  font-weight: bold;
}
.footer-nav a:nth-child(2) {
  color: white;
}
.nav-footer {
  padding: 25px;
  font-size: 4px;
  font-family: "Roboto", sans-serif !important;
}
.powered-by {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px; /* Reduced from 50px */
  background-color: #111111;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-size: 12px; /* Smaller text */
}
.powered-by img {
  height: 20px; /* Reduced logo size */
  margin-left: 5px; /* Reduced margin */
}
@media (max-width: 768px) {
  .footer-nav a {
    font-size: 0.7rem; /* Slightly smaller for mobile */
  }
  .footer-nav a i {
    font-size: 1rem; /* Smaller icons on mobile */
  }
  .logo span {
    font-size: clamp(0.8rem, 3.5vw, 1.2rem); /* Adjust scaling for mobile */
  }
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;
}
.modal-content {
  background-color: white;
  margin: 0 auto;
  padding: 15px; /* Reduced padding */
  width: 100%;
  height: auto; /* Let content determine height */
  max-width: 90%; /* Slightly smaller than full width */
  max-height: 80vh; /* Limit height to prevent excessive space */
  border-radius: 8px; /* Slight rounding for modern look */
  border: 1px solid #e0e0e0; /* Light gray border instead of dark/thick */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtle shadow */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-header {
  font-size: 20px; /* Reduced font size */
  color: #4FBDB8;
  margin-bottom: 15px; /* Reduced margin */
  text-align: center;
  font-weight: 500; /* Slightly lighter weight */
}
.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px; /* Reduced size */
  font-weight: bold;
  cursor: pointer;
  z-index: 1010;
}
.close-btn:hover,
.close-btn:focus {
  color: #666; /* Darker gray on hover */
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}
.btn-success, .btn-custom {
  background-color: #50c1ba;
  color: #ffffff;
  border: none;
  border-radius: 20px; /* Increased radius for more rounded corners */
  cursor: pointer;
  font-size: 14px; /* Smaller font size */
  width: 100%;
  margin-bottom: 8px; /* Reduced margin */
  transition: background-color 0.2s; /* Smooth hover effect */
  padding: 20px;
  font-size: 2em; /* Corrected to lowercase 'em' */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08); /* Subtle shadow effect */
}

.btn-grateful, .btn-custom {
  background-color: #50c1ba;
  color: #ffffff;
  border: none;
  border-radius: 20px; /* Increased radius for more rounded corners */
  cursor: pointer;
  font-size: 14px; /* Smaller font size */
  width: 100%;
  margin-bottom: 8px; /* Reduced margin */
  transition: background-color 0.2s; /* Smooth hover effect */
  font-size: 1.3em; /* Corrected to lowercase 'em' */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08); /* Subtle shadow effect */
}

/* Optional: Add a hover effect for the shadow to make it more interactive */
.btn-success:hover, .btn-custom:hover {
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08); /* Slightly larger shadow on hover */
}
.btn-custom {
  background-color: #000000;
  color: #FFFFFF;
  margin-top: 8px; /* Reduced margin */
}
.upload-log {
  width: 100%;
  max-width: 450px; /* Slightly smaller */
  margin-top: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px; /* Smaller radius */
  overflow-y: auto; /* Make the entire upload log scrollable */
  max-height: 300px; /* Increased height for more scrollable space */
  word-break: break-all; /* Break long URLs or text */
}
.upload-log-item {
  display: flex;
  align-items: center;
  margin: 5px 0;
  word-wrap: break-word;
}
.thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 5px;
}
.upload-success-text {
  color: #333;
  font-size: 14px;
}
.upload-log-item.uploading .upload-success-text {
  color: #666;
  font-style: italic;
}
.upload-log-item.success .upload-success-text {
  color: #333;
}
.logo-header {
  width: 50%;
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50; /* Green background */
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 2000;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease-out, fadeOut 0.5s ease-out 3s;
}

@keyframes slideIn {
  from {
    top: -50px;
    opacity: 0;
  }
  to {
    top: 20px;
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }

}
</style>