/* Import Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

html {
  font-size: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.8rem;
}

.card,
.modal-content,
.table {
  background-color: #000000 !important;
  border: 1px solid #2b2b2b;
  border-radius: 0.5rem;
}

.table {
  color: #e0e0e0 !important;
}

.table th,
.table td {
  border-color: #333;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: #2a2a2a;
}

.form-control,
.form-select {
  background-color: #2c2c2c;
  border-color: #444;
  color: #e0e0e0;
  border-radius: 0.375rem;
  font-size: 0.8rem;
}

.form-control:focus,
.form-select:focus {
  background-color: #333;
  border-color: #888;
  color: #e0e0e0;
  box-shadow: none;
}

.form-control::placeholder {
  color: #888;
}

.btn-primary {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #121212;
  font-weight: 500;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

.modal-header,
.modal-footer {
  border-color: #333;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 17.5rem;
  background-color: #000000;
  padding: 1rem;
  transition: transform 0.3s ease-in-out;
  z-index: 1030;
}

.main-content {
  margin-left: 17.5rem;
  padding: 2rem;
  transition: margin-left 0.3s ease-in-out;
}

.sidebar-brand {
  color: #f8f9fa;
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.sidebar-nav .nav-link {
  color: #adb5bd;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0.1rem;
  font-size: 0.95rem;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
  background-color: #343a40;
  color: #f8f9fa;
}

.sidebar-nav .nav-link .icon {
  margin-right: 0.75rem;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1031;
  color: #f8f9fa;
  width: 40px;
  height: 40px;
}

@media (max-width: 1199.98px) {
  html {
    font-size: 93.75%;
  }
}

/* --- TABLET (< 992px) --- */
@media (max-width: 991.98px) {
  html {
    font-size: 87.5%;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: block;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 81.25%;
  }

  .main-content {
    padding: 1rem;
  }

  .sidebar-brand {
    font-size: 1.3rem;
  }
}
