    body {
      background-color: #f0eade;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    .container {
      max-width: 1100px;
      padding: 20px;
      flex: 1;
    }

    .scanner-container, .result-container {
      background-color: #f9f9f9;
      border: 2px solid #333;
      padding: 10px;
      height: 420px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      text-align: center;
    }

    #video-container {
      flex: 1;
      background-color: #f1f3f4;
      padding: 10px;
      border: 2px solid #dee2e6;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      overflow: hidden;
      margin-bottom: 15px;
    }

    #video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 1;
    }

    #loading {
      position: absolute;
      font-size: 1.2rem;
      color: #666;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: none;
      text-align: center;
      z-index: 2;
    }

    .result-box {
      flex: 1;
      background-color: #f8f9fa;
      border: 2px solid #dee2e6;
      padding: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      color: #333;
      text-align: left;
      margin-bottom: 15px;
      overflow-y: auto;
      word-break: break-word;
    }

.btn-scan, .btn-copy, .btn-danger { 
  width: 100%;
  padding: 12px;
  font-weight: bold;
  color: #fff;
  border: none;
}

.btn-scan {
  background-color: #87e64c;
}

.btn-danger {
  background-color: #dc3545;
}

.btn-copy {
  background-color: #444;
}

.btn-scan:hover {
  background-color: #333;
  color:#fff;
}

.btn-copy:hover {
  background-color: #87e64c;
  color: #fff;
}

.btn-danger:hover {
  background-color: #c82333;
  color: #fff;
}

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1050;
}

.toast {
  opacity: 0;
  background-color: #87e64c;
  color: #333;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9rem;
  width: auto;
  max-width: 350px;
  white-space: nowrap;
  word-wrap: break-word;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

.toast.show {
  animation: toastIn 0.5s ease forwards;
}

.toast.hide {
  animation: toastOut 0.5s ease forwards;
}

@media (max-width: 576px) {
  .toast-container {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }

  .toast {
    max-width: 300px;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .toast-container {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    top: auto;
  }

  .toast {
    max-width: 250px;
    font-size: 0.8rem;
  }
}

.navbar {
  background-color: #333;
}

.navbar .navbar-brand img {
  height: 40px;
}

.navbar .navbar-nav .nav-link {
  color: #fff;
}

.navbar-nav .nav-link:hover {
  color: #87e64c;
}

.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.floating-buttons a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 60px;
  height: 60px;
  background-color: #333;
  color: #f0eade;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: width 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
  padding-left: 15px;
}

.floating-buttons a i {
  font-size: 24px;
}

.floating-buttons a span {
  opacity: 0;
  white-space: nowrap;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.floating-buttons a:hover {
  width: 180px;
  background-color: #444; /* Slightly lighter hover effect for contrast */
}

.floating-buttons a:hover span {
  opacity: 1;
  margin-left: 10px;
}

@media (max-width: 768px) {
  .floating-buttons {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
  }

  .floating-buttons a {
    width: 50px;
    height: 50px;
    justify-content: center;
    padding-left: 0;
  }

  .floating-buttons a i {
    font-size: 18px;
  }

  .floating-buttons a:hover {
    width: 50px;
  }

  .floating-buttons a span {
    display: none;
  }
}

    footer {
      background-color: #333;
      color: #fff;
      padding: 30px 0;
      margin-top: auto;
    }

    footer .footer-column {
      padding: 10px;
    }

    footer .footer-column h5 {
      color: #fff;
      margin-bottom: 15px;
    }

    footer .footer-column a {
      color: #87e64c;
      text-decoration: none;
      margin-bottom: 10px;
      display: block;
    }

    footer .footer-column a:hover {
      color: #fff;
    }

    footer .footer-column a i {
      margin-right: 8px;
      font-size: 1.2rem;
      vertical-align: middle;
      color: #87e64c;
    }

    footer .footer-column a:hover i {
      color: #333;
    }

    .social-icons {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0;
      margin: 0;
    }

    .social-icons a {
      color: #87e64c;
      font-size: 1.2rem;
      width: 40px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-right: 15px;
      text-decoration: none;
      border-radius: 10px;
      transition: color 0.3s;
    }

    .social-icons a:hover {
      color: #333;
    }

    .social-icons a:last-child {
      margin-right: 0;
    }