@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono:wdth,wght@75,100..900&display=swap');

:root {
  --card: rgba(255, 255, 255, 0.04);
  --muted: rgba(255, 255, 255, 0.6);
}

body {
  background: linear-gradient(135deg, #072d0f 0%, #0b0f1a 100%);
  background-attachment: fixed;
  background-size: cover;
  color: #e8eef8;
  font-family: "Noto Sans Mono", monospace;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  transition: background 0.5s ease, padding 0.3s ease;
}

.container {
  max-width: 920px;
}

#upload-status {
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#result {
  transition: all 0.4s ease;
}

#result-infos,
#result-analyzers {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#drop-zone {
  transition: box-shadow 0.15s ease;
}

#drop-zone:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.image-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
}

.image-modal .image-modal-body {
  max-width: 90%;
  max-height: 90%;
}

.image-modal img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

.image-modal .btn-close {
  position: absolute;
  right: 2rem;
  top: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
}

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.25),
    inset 0 0 30px rgba(255, 255, 255, 0.02);
  padding: 24px;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 10px 50px rgba(0, 0, 0, 0.36),
    inset 0 0 40px rgba(255, 255, 255, 0.025);
  background: rgba(255, 255, 255, 0.08);
}

.card p,
.card label,
.card small {
  color: rgba(255, 255, 255, 0.92);
}

#drop-zone {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.2s ease;
}

#drop-zone:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateZ(0);
}

.card:hover::before {
  opacity: 1;
}

.card:focus-within {
  box-shadow:
    0 12px 60px rgba(0, 0, 0, 0.40),
    inset 0 0 40px rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.30);
}

#result-analyzers img {
  image-rendering: pixelated;
}

.suspicion-bar {
  position: relative;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #2ecc71 0%,
    #f1c40f 50%,
    #e74c3c 100%
  );
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.suspicion-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 6px rgba(0,  0, 0, 0.5);
}
