body {
  max-height: 96vh;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.6s, color 0.6s;
}

[data-bs-theme="dark"] body {
  /* Order matters: first listed = top layer. We want grid visible over gradient */
  background:
    url('/assets/images/grid-noise.png'),
    linear-gradient(135deg, rgba(18, 18, 24, .94), rgba(40, 40, 55, .88));
  background-size: 220px 220px, cover;
  background-attachment: fixed, fixed;
  background-repeat: repeat, no-repeat;
  /* Optional subtle blend if grid is still too strong: uncomment next line */
  /* background-blend-mode: normal, multiply; */
  -webkit-font-smoothing: antialiased;
}

[data-bs-theme="light"] body {
  background: url('/assets/images/grid-noise.png'), linear-gradient(135deg, #f0e6d2, #d7c4a3);
  background-size: 220px 220px, cover;
  background-attachment: fixed, fixed;
  background-repeat: repeat, no-repeat;
  /* Optional subtle blend if grid is still too strong: uncomment next line */
  /* background-blend-mode: normal, multiply; */
  -webkit-font-smoothing: antialiased;
}

.btn-primary:hover {
  background-color: #8d8d8d !important;
  color: #0e0e0e !important;
  border-color: #8d8d8d !important;
}

.container {
  padding: 40px;
  margin: 40px auto;
  margin-bottom: 20px;
  max-width: 1400px;
  text-align: center;
}

.form-input {
  padding: 12px 15px !important;
  font-size: 1rem !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

.form-control {
  padding: 12px 15px !important;
  font-size: 1rem !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

[data-bs-theme="dark"] .form-control {
  background-color: #2d3748 !important;
  color: #f8f9fa !important;
  border-color: #e9ecef !important;
}

[data-bs-theme="dark"] .form-control::-webkit-input-placeholder {
  background-color: #2d3748 !important;
  color: #f8f9fa !important;
  border-color: #e9ecef !important;
}

[data-bs-theme="dark"] .form-control:-moz-placeholder {
  background-color: #2d3748 !important;
  color: #f8f9fa !important;
  border-color: #e9ecef !important;
}

[data-bs-theme="dark"] .form-control::-moz-placeholder {
  background-color: #2d3748 !important;
  color: #f8f9fa !important;
  border-color: #e9ecef !important;
}

[data-bs-theme="dark"] .form-control:-ms-input-placeholder {
  background-color: #2d3748 !important;
  color: #f8f9fa !important;
  border-color: #e9ecef !important;
}

.form-control:focus {
  background-color: #2d3748 !important;
  color: #f8f9fa !important;
  border-color: #e9ecef !important;
}

textarea.form-control {
  padding: 12px 15px !important;
  font-size: 1rem !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

.form-select {
  padding: 12px 15px !important;
  font-size: 1rem !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

.form-select:focus {
  outline: 0 !important;
}

[data-bs-theme="dark"] .form-select {
  background-color: #3c3c3c !important;
  color: #f8f9fa !important;
  border-color: #444 !important;
}

[data-bs-theme="dark"] .form-select:focus {
  border-color: #8d8d8d !important;
}

[data-bs-theme="dark"] .form-select:active {
  border-color: #8d8d8d !important;
}

[data-bs-theme=dark] .form-switch .form-check-input {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><rect x='-3' y='-3' width='6' height='6' fill='rgba(0, 0, 0, 0.25)'/></svg>")
}

[data-bs-theme=light] .form-switch .form-check-input {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><rect x='-3' y='-3' width='6' height='6' fill='rgba(0, 0, 0, 0.25)'/></svg>")
}

option {
  padding: 12px 15px !important;
  font-size: 1rem !important;
}

.captcha-img {
  margin-top: 10px;
}

.password-container {
  position: relative;
}

.fa-eye,
.fa-eye-slash {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-100%);
  cursor: pointer;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-thumb {

  border-radius: 10px;
}

body::-webkit-scrollbar-track {

  border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #8d8d8d;

}

body::-webkit-scrollbar-track:hover {}

body::-webkit-scrollbar-thumb:active {}

body::-webkit-scrollbar-track:active {}

form-select::-webkit-scrollbar {
  width: 8px !important;
}

form-select::-webkit-scrollbar-thumb {

  border-radius: 10px !important;
}

form-select::-webkit-scrollbar-track {

  border-radius: 10px !important;
}

form-select::-webkit-scrollbar-thumb:hover {}

form-select::-webkit-scrollbar-track:hover {}

form-select::-webkit-scrollbar-thumb:active {}

form-select::-webkit-scrollbar-track:active {}

.table-responsive::-webkit-scrollbar {
  width: 8px !important;
}

.table-responsive::-webkit-scrollbar-thumb {

  border-radius: 10px !important;
}

.table-responsive::-webkit-scrollbar-track {

  border-radius: 10px !important;
}

.table-responsive::-webkit-scrollbar-thumb:hover {}

.table-responsive::-webkit-scrollbar-track:hover {}

.table-responsive::-webkit-scrollbar-thumb:active {}

.table-responsive::-webkit-scrollbar-track:active {}

textarea::-webkit-scrollbar {
  width: 8px !important;
}

textarea::-webkit-scrollbar-thumb {

  border-radius: 10px !important;
}

textarea::-webkit-scrollbar-track {

  border-radius: 10px !important;
}

textarea::-webkit-scrollbar-thumb:hover {}

textarea::-webkit-scrollbar-track:hover {}

textarea::-webkit-scrollbar-thumb:active {}

textarea::-webkit-scrollbar-track:active {}

#clientNumbers::-webkit-scrollbar {
  width: 8px !important;
}

#clientNumbers::-webkit-scrollbar-thumb {

  border-radius: 10px !important;
}

#clientNumbers::-webkit-scrollbar-track {

  border-radius: 10px !important;
}

#clientNumbers::-webkit-scrollbar-thumb:hover {}

#clientNumbers::-webkit-scrollbar-track:hover {}

#clientNumbers::-webkit-scrollbar-thumb:active {}

#clientNumbers::-webkit-scrollbar-track:active {}

.tab-content::-webkit-scrollbar {
  width: 8px !important;
}

.tab-content::-webkit-scrollbar-thumb {

  border-radius: 10px !important;
}

.tab-content::-webkit-scrollbar-track {

  border-radius: 10px !important;
}

.tab-content::-webkit-scrollbar-thumb:hover {}

.tab-content::-webkit-scrollbar-track:hover {}

.tab-content::-webkit-scrollbar-thumb:active {}

.tab-content::-webkit-scrollbar-track:active {}

.modal::-webkit-scrollbar {
  width: 8px !important;
}

.modal::-webkit-scrollbar-thumb {

  border-radius: 10px !important;
}

.modal::-webkit-scrollbar-track {

  border-radius: 10px !important;
}

.modal::-webkit-scrollbar-thumb:hover {}

.modal::-webkit-scrollbar-track:hover {}

.modal::-webkit-scrollbar-thumb:active {}

.modal::-webkit-scrollbar-track:active {}

h1 {
  font-size: 44px;
  font-weight: 1000;
  padding-top: 35px;
  padding-left: 35px;
  text-wrap: balance;
}

.logo-image {
  max-width: 200px;
  /* center image */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

a {
  text-decoration: none;
}

.btn-upload {
  background-color: transparent;
  color: #8d8d8d;
  padding: 0.75rem 2rem;
  border: none;
  transition: background-color 0.6s ease, transform 0.6s ease;
  -webkit-transition: background-color 0.6s ease, transform 0.6s ease;
  -moz-transition: background-color 0.6s ease, transform 0.6s ease;
  -ms-transition: background-color 0.6s ease, transform 0.6s ease;
  -o-transition: background-color 0.6s ease, transform 0.6s ease;
}

.btn-upload:hover {
  background-color: transparent;
  color: #8d8d8d;
  padding: 0.75rem 2rem;
  border: 1px solid #8d8d8d;
  /* transform: translateY(-2px); */
}

#fileList {
  margin-top: 30px;
}

.file-item {
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.6s;
  -webkit-transition: background-color 0.6s;
  -moz-transition: background-color 0.6s;
  -ms-transition: background-color 0.6s;
  -o-transition: background-color 0.6s;
}


.file-name {
  font-weight: 600;
}

.download-btn {
  background-color: transparent;
  color: #8d8d8d;
  border: 1px solid #8d8d8d;
  padding: 0.5rem 1rem;
  transition: all 0.6s ease;
  -webkit-transition: all 0.6s ease;
  -moz-transition: all 0.6s ease;
  -ms-transition: all 0.6s ease;
  -o-transition: all 0.6s ease;
}

.download-btn:hover {

  color: #0e0e0e;
}

textarea {
  padding: 10px;
}

/* Card Styles */
.card {
  width: 100%;
  overflow: hidden;
  transition: all 0.6s ease;
  animation: fadeInUp 0.7s ease;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
  margin-bottom: 20px;
  -webkit-transition: all 0.6s ease;
  -moz-transition: all 0.6s ease;
  -ms-transition: all 0.6s ease;
  -o-transition: all 0.6s ease;
}

.card-header {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 20px;
}

.dropdown-toggle::after {
  display: none !important;
}

.dropdown-menu {
  width: 380px;
  padding: 10px;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
  z-index: 1000;
  margin-top: 10px;
  backdrop-filter: blur(10px);
}

.btn-nav {
  background-color: transparent;
  color: #8d8d8d;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin-top: 7px;
  transition: background-color 0.6s ease, transform 0.6s ease;
  -webkit-transition: background-color 0.6s ease, transform 0.6s ease;
  -moz-transition: background-color 0.6s ease, transform 0.6s ease;
  -ms-transition: background-color 0.6s ease, transform 0.6s ease;
  -o-transition: background-color 0.6s ease, transform 0.6s ease;
}

.dropdown-item {
  width: 100%;
  background-color: transparent;
  font-size: 1rem;
  font-weight: 700;
  color: #8d8d8d !important;
  padding: 10px 15px;
  text-transform: uppercase;
  transition: background-color 0.6s ease, color 0.6s ease;
  -webkit-transition: background-color 0.6s ease, color 0.6s ease;
  -moz-transition: background-color 0.6s ease, color 0.6s ease;
  -ms-transition: background-color 0.6s ease, color 0.6s ease;
  -o-transition: background-color 0.6s ease, color 0.6s ease;
}

.dropdown-item:hover {
  color: #f9f9f9 !important;
}

/* navbar */
.navbar {
  padding: 15px 0px;
}

.echodial {
  font-weight: 900;
  font-size: 2rem;
  color: #8d8d8d !important;
  text-decoration: none;
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: -4px;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: red;
  padding: 0;
  line-height: 1;
}

.badge-number {
  position: relative;
  top: 0px;
  /* Moves number slightly up */
}

.btn-theme {
  background-color: transparent;
  color: #8d8d8d;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: background-color 0.6s ease, transform 0.6s ease;
}

.btn-theme:hover {
  background-color: transparent;
  color: rgb(105, 105, 105, 0.75);
}

.h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #8d8d8d !important;
  text-decoration: none;
  letter-spacing: 1px;
}

.navbar .nav-link,
.navbar .dropdown-toggle {
  color: #8d8d8d !important;
  font-size: 1rem;
  font-weight: 600;
}

.nav-link:hover {
  color: rgb(105, 105, 105, 0.75) !important;
}

.dropdown-toggle:hover {
  color: rgb(105, 105, 105, 0.75) !important;
}

.dropdown-divider {
  border-color: #444;
}

#searchInput {
  padding-left: 2rem;

}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 1em;
  width: 1em;
  background: url("data:image/svg+xml,%3Csvg fill='%23bfa76f' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M310.6 361.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L160 301.3 54.6 406.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L114.7 256 9.4 150.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 210.7l105.4-105.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L205.3 256l105.3 105.4z'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100%;
  cursor: pointer;
}

input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

.btn-generate {
  color: #0e0e0e;
  font-weight: 600;
  border: none;
  width: 100%;
  padding: 12px;
  transition: background-color 0.6s ease, transform 0.6s ease;
}

.btn-generate:hover {
  background-color: transparent;
  color: #8d8d8d;
  /* transform: translateY(-2px); */
  border: 1px solid #8d8d8d;
}

.btn-close {
  filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(213deg) brightness(107%) contrast(93%) !important;
}

.bs-btn-close-white-bg {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

/* Subtle Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-profile-content {
  overflow: hidden !important;
  max-height: 100vh;
}

@media (max-width: 768px) {
  .container {
    max-width: 90%;
    padding: 20px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 18px;
  }

  .btn-custom {
    font-size: 16px;
  }
}

/* Custom collapse behavior at 1750px breakpoint */
@media (max-width: 1750px) {
  #navbarSupportedContent {
    display: none !important;
  }

  #navbarSupportedContent.show {
    display: flex !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    overflow-y: auto;
    z-index: 1100;
  }

  .navbar-toggler {
    display: block !important;
  }

  /* Stack nav links vertically */
  .navbar-nav {
    flex-direction: column !important;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 0.75rem 0 !important;
  }
}

@media (min-width: 1751px) {
  #navbarSupportedContent {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-toggler {
    display: none !important;
  }
}