html,
body {
  padding: 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
.marker:hover {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}
.dxegll{
    height: 100vh;
}
h1,
h2,
h3,
h4,
h5,
h6,
a,
li,
input,
span,
p,
tr,
th,
td,
label,
button,
select,
option,
.form-select,
.card-header,
.card {
  font-family: "Montserrat", sans-serif;
}

a {
  text-decoration: none;
  color: #1a1a1a;
}
a:hover {
  color: red;
}
.btn:focus, .btn:active {
    box-shadow: none !important;
    outline: none !important;
    transition: box-shadow 0.2s ease-in-out;
  }
.logo-img {
  width: 140px;
  object-fit: contain;
  margin: 40px;
}

.left-panel {
  background: #fff;
  border-radius: 30px 0 0 30px;
  padding: 60px 40px;
}

.right-panel {
  background: linear-gradient(
    135deg,
    #1f005c,
    #5b0060,
    #870160,
    #ac255e,
    #ca485c,
    #e16b5c,
    #f39060,
    #ffb56b
  );
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
  padding: 60px 40px;
  position: relative;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-outline-light {
  border-color: #fff;
  color: #fff;
}
.btn-outline-light:hover {
  background-color: #fff;
  color: #000;
}
.btn-dark {
  border-radius: 30px;
}

.form-control {
  border-radius: 10px;
  height: 45px;
}
.form-text a {
  color: #007bff;
}
.form-text a:hover {
  text-decoration: underline;
}

.welcome-text h1 {
  font-size: 48px;
  font-weight: 800;
}
.login-form {
  padding: 0 6rem;
  text-align: start;
}

.sidebar {
  position: fixed;
  margin: 12px;
  border-radius: 100px;
  height: 100vh;
  width: 60px;
  background-color: #1e1e2f;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 999;
  overflow: hidden;
}
.sidebar:hover {
  width: 200px;
  border-radius: 12px;
}
.sidebar a {
  color: #fff;
  text-decoration: none;
  padding: 15px 20px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.3s;
}
.sidebar a:hover {
  background-color: #33334d;
}
.icon {
  font-size: 20px;
  min-width: 20px;
}
.label {
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.sidebar:hover .label {
  opacity: 1;
}
.sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background-color: #f8f9fa;
  padding: 1rem;
  border-right: 1px solid #ddd;
}
.anomaly-box {
  background-color: #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
.anomaly-box:hover {
  background-color: #dee2e6;
}
.search-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.search-wrapper input {
  max-width: 100%;
}
.anomaly-link {
  display: block;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #0d6efd;
  text-decoration: none;
}
.anomaly-link:hover {
  text-decoration: underline;
}
.top-bar,
.topbar {
  background: #fff;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}
#anamolyimg9 {
  height: auto;
  width: 100%;
  object-fit: contain;
}
.defectimg {
  width: 100%;
  background: #1f005c;
  height: 260px;
  max-height: 400px;
  object-fit: cover;
}
.top-right-buttons {
  position: absolute;
  top: 30px;
  right: 30px;
}

.card-title-small {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
}
.card-value {
  font-size: 1rem;
}

.no-data {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
  font-style: italic;
}

.badge-danger {
  background-color: #ff6b6b;
}
.badge-success {
  background-color: #51cf66;
}

.audit-table td {
  vertical-align: middle;
}

.pie-placeholder {
  width: 100%;
  height: 300px;
  margin: 0 auto;
  background-color: #e9ecef;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6c757d;
  font-size: 1.1rem;
}
.header-logo {
  width: 120px;
}
.project-type {
  background-color: #e6fcf5;
  color: #00b894;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

#plant-map {
  height: 100vh;
  width: 100%;
}

.floating-box {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgb(0 0 0 / 0.7);
  color: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  z-index: 1;
}

.search-box {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  width: 250px;
}
.search-bar input {
  max-width: 400px;
}

.fav-img {
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
}

.map-card {
  height: 450px;
}

.highlight-box {
  background-color: purple;
  border: 3px solid #000;
  width: 30px;
  height: 60px;
  position: absolute;
  top: 30%;
  left: 40%;
}

.heatmap-img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.info-box {
  background: #fff;
  border: 1px solid #dee2e6;
  padding: 10px;
  font-size: 0.9rem;
}

.stat-box {
  border-radius: 6px;
  background-color: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 5px rgb(0 0 0 / 0.05);
}
.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}
.decrease {
  color: red;
}
.text-sm {
  font-size: 13px;
  color: #666;
}

.scrollable-table-wrapper {
  max-height: 400px;
  overflow-y: auto;
}
.scrollable-table {
  width: 100%;
  border-collapse: collapse;
}
.scrollable-table th,
.scrollable-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

#drone-loader-wrapper {
  position: fixed;
  inset: 0;
  background-color: #f5f5f5;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.drone {
  width: 100px;
  height: 60px;
  position: relative;
  animation: float 2s ease-in-out infinite;
}
.drone .body {
  width: 60px;
  height: 30px;
  background: #333;
  border-radius: 10px;
  margin: 0 auto;
  position: relative;
}
.drone .propeller {
  width: 20px;
  height: 6px;
  background: #666;
  border-radius: 3px;
  position: absolute;
  top: -10px;
  animation: spin 0.4s linear infinite;
}
.drone .propeller.left {
  left: -25px;
}
.drone .propeller.right {
  right: -25px;
}
.loading-text {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #333;
  letter-spacing: 1px;
}
.dots span {
  animation: blink 1.5s infinite;
}
.dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

#main-content {
  display: none;
}

.chart-container {
  position: relative;
  height: 400px;
}

#map {
  width: 100%;
  height: 450px;
  border-radius: 8px;
}

.map-search-input {
  width: 300px;
}

.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib-inner {
  visibility: hidden;
  position: fixed;
}

.team-card,
.mission-card,
.admin-card {
  background: #fff;
  border: 1px solid #dee2e6;
  padding: 1rem;
}
.team-card {
  border-radius: 8px;
  margin-bottom: 1rem;
}
.mission-card {
  border-radius: 0;
}
.admin-card {
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  overflow: hidden;
  height: 400px;
}
.admin-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
}
.admin-card-body,
.admin-card .card-body {
  padding: 1rem;
}

.team-table th,
.team-table td,
.mission-table thead,
.admin-table {
  vertical-align: middle;
  margin-top: 1rem;
}

.plant-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.plant-info small {
  display: block;
  margin-bottom: 0.25rem;
}

.anomaly-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
  padding: 10px;
  margin-bottom: 10px;
}
.anomaly img {
  width: 100%;
  border-radius: 6px;
}
.legend-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.admin-sidebar {
  height: 100vh;
  background-color: #fff;
  border-right: 1px solid #e0e0e0;
  padding-top: 1rem;
  position: sticky;
  top: 0;
}
.admin-sidebar .nav-link {
  color: #333;
  font-weight: bold;
}
.admin-sidebar .nav-link:hover {
  background-color: #f1f1f1;
  border-radius: 0.375rem;
}
/* Isolation using custom prefix */
.report-view-anomalies .status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #fff;
}
.report-view-anomalies .defected {
  background-color: #dc3545;
}
.report-view-anomalies .corrected {
  background-color: #198754;
}
.report-view-anomalies .in-progress {
  background-color: #ffc107;
  color: #000;
}
.report-view-anomalies .not-found {
  background-color: #6c757d;
}

.report-view-anomalies .bullet {
  width: 8px;
  height: 8px;
  background-color: currentColor;
  border-radius: 50%;
  display: inline-blsssock;
}
.mobile-menu {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1050;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-list .nav-link {
  display: flex; /* <<< important to line up icon + text */
  align-items: center; /* vertical center */
  padding: 12px 15px;
  font-size: 16px;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}
.mobile-menu-list .nav-link .label {
  color: #333; /* Force text inside nav-link to dark */
  opacity: 100%;
}
.nav-item {
  line-height: normal;
}

.mobile-menu-list .nav-link:hover {
  background-color: #f8f9fa;
  color: #007bff;
}
.mobile-menu-list .icon {
  transition: transform 0.3s ease;
}

.mobile-menu-list .nav-link:hover .icon {
  transform: scale(1.1);
}
.marker {
  width: 20px;
  height: 20px;
  background-color: red;
  border-radius: 50%;
  border: 2px solid white;
}
.controls {
  padding: 10px;
}
.small-title {
  font-family: nunito;
  line-height: 1em;
  font-size: 18px;
  text-transform: capitalize;
}
.sidebarv1 {
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  border-right: 1px solid #dee2e6;
  background: white;
}

.classes-processedimg {
  width: 100%;
  margin-bottom: 10px;
  border: 2px solid #ced4da;
  cursor: pointer;
  transition: transform 0.2s;
}

.classes-processedimg:hover {
  transform: scale(1.02);
}

.main-image {
  max-width: 100%;
  border: 3px solid #dee2e6;
  border-radius: 6px;
}
#cntplantmap {
  width: 100%;
  height: 100vh;
}
.marker-card {
  width: 200px;
}
.marker-card img {
  width: 100%;
  border-radius: 5px;
}
.marker-card h6 {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 16px;
}
.file-card {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.file-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
#drop-area {
  background: #f8f9fa;
  transition: background 0.3s;
}
#drop-area:hover {
  background: #e9ecef;
}
progress {
  width: 100%;
  background-color: #f0f0f0;
}
.rftgyh {
  width: 100%;
  height: 180px;
}
.select2-container--default .select2-selection--single {
  height: 38px;
  padding: 5px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}
.anomaly-box {
    display: block;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, border 0.2s ease;
}

.anomaly-box:hover {
    background-color: #ffffff;
}

.anomaly-box.selected {
    border: 2px solid #007bff;
}

.anomaly-box .anomaly-content {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
}
