@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    background: url('/static/images/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: #FFD700;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
	font-weight: bold; /* 👈 in đậm */
    text-shadow: 0 0 5px #000, 0 0 10px #000; /* 👈 tạo viền đen để chữ rõ hơn */
}

.container {
    max-width: 700px;
    width: 90%;
    margin: 80px auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    text-align: center;
	
    background-image: url('/static/images/3.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h2, h3 {
    color: #00f7ff;
    margin-bottom: 20px;
}

button {
    background: #00f7ff;
    color: #000;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
    margin: 10px;
    font-family: 'Orbitron', sans-serif;
}

button:hover {
    background: #00c2cc;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    background: #0a1a2f;
    color: #FFD700;
    font-size: 15px;
    font-family: 'Orbitron', sans-serif;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #FFD700 !important;
    opacity: 1 !important;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255,255,255,0.1) inset !important;
    -webkit-text-fill-color: #fff !important;
}

select option {
    background: #111827;
    color: white;
}

.select-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.select-wrapper label {
    min-width: 120px;
    color: #00f7ff;
    font-weight: bold;
}

.select-wrapper img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background-color: #333;
}

.result-box {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid #00f7ff;
    border-radius: 16px;
    text-align: left;
    font-size: 14px;
}

#processing-message,
#loading-box {
    display: none;
    background: rgba(17, 24, 39, 0.95);
    color: #38bdf8;
    padding: 25px 20px;
    border-radius: 20px;
    font-size: 16px;
    margin-top: 30px;
    text-align: center;
    border: 2px solid #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    max-width: 700px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    animation: pulse 1.8s infinite;
    backdrop-filter: blur(8px);
}

#loading-box img {
    width: 90%;
    max-width: 320px;
    height: auto;
    margin-bottom: 25px;
    border-radius: 20px;
    border: 3px solid #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
    animation: bounce 1.2s infinite;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0px rgba(59,130,246,0.4); }
    50% { box-shadow: 0 0 20px rgba(59,130,246,0.6); }
    100% { box-shadow: 0 0 0px rgba(59,130,246,0.4); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

p {
    line-height: 1.5;
    margin: 10px 0;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 40px auto;
        font-size: 14px;
    }
    h2, h3 { font-size: 18px; }
    p { font-size: 14px; }
    button {
        padding: 8px 18px;
        font-size: 14px;
    }
    .select-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .select-wrapper label {
        min-width: auto;
        font-size: 13px;
    }
    .select-wrapper img {
        width: 30px;
        height: 30px;
        margin-bottom: 5px;
    }
    #loading-box img {
        max-width: 260px;
    }
}

.log-section {
    margin-top: 40px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid #00f7ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.log-section h3 {
    color: #00f7ff;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
}

.log-entries {
    max-height: 300px;
    overflow-y: auto;
}

.log-entry {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    border-radius: 16px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: #fff;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    border-left: 3px solid #00f7ff;
    animation: fadeIn 0.3s ease-in-out;
    backdrop-filter: blur(4px);
}

.log-index { color: #38bdf8; font-weight: bold; }
.log-time { color: #a0e7ff; min-width: 80px; font-weight: bold; }
.log-user { font-weight: bold; color: #22d3ee; }
.log-phone { color: #7dd3fc; font-weight: bold; }
.log-action { color: #facc15; }
.log-ip { color: #a0e7ff; font-style: italic; font-size: 0.9em; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#livefeed-bar {
    background: #0c0c0c;
    color: #e0f7fa;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 600;
    border-top: 2px solid #00f7ff;
    border-bottom: 2px solid #00f7ff;
    text-align: center;
    overflow: hidden;
    position: relative;
}
#livefeed-line {
    display: inline-block;
    padding: 0 20px;
    white-space: nowrap;
    animation: fadeInOut 5s ease-in-out infinite;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

#feedback-box {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid #00f7ff;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    color: #f0f0f0;
    font-family: 'Orbitron', sans-serif;
    text-align: left;
}

#feedback-box p {
    color: #00f7ff;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

#feedback-box label {
    display: block;
    margin: 12px 0;
    font-size: 15px;
    color: #ffffff;
}

#feedback-box input[type="radio"] {
    margin-right: 10px;
    accent-color: #00f7ff;
}

#feedback-box button {
    background: #00f7ff;
    color: #000;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Orbitron', sans-serif;
    display: inline-block;
    margin-top: 15px;
}

#feedback-box button:hover {
    background: #00c2cc;
}

.container-big {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 15px;
  background: #transparent;
  padding: 20px;
  border-radius: 15px;
}

.box-small {
  position: relative;
  width: 180px;
  background: transparent;
  border-radius: 15px;
  box-shadow: 0 0 15px #00e5ff;
  padding: 15px;
  text-align: center;
  color: white;
  overflow: visible;
  animation: glow 2s ease-in-out infinite alternate;
}

.box-small img.site-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
  animation: rotate 3s linear infinite;
  border-radius: 50%;
  border: 2px solid #00e5ff;
  padding: 5px;
  background: #0008;
}

@keyframes rotate {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #004d60;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0 5px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #0066ff);
  width: 0;
  border-radius: 10px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px #00e5ff;
}

.percent-text {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 5px;
}

.loading-text {
  font-size: 14px;
  font-style: italic;
  color: #66ffff;
}

.box-small::before,
.box-small::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid #00e5ff;
  border-radius: 20px;
  box-shadow:
    0 0 8px #00e5ff,
    0 0 20px #00e5ff,
    0 0 30px #00e5ff,
    0 0 40px #00e5ff;
  animation: electric-flicker 1.5s infinite alternate;
  pointer-events: none;
  z-index: -1;
}

.box-small::after {
  filter: blur(8px);
  animation-delay: 0.75s;
}

@keyframes electric-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 15px #00e5ff; }
  50% { box-shadow: 0 0 30px #00ffff; }
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  padding: 20px;
  margin: 40px auto 20px;
  width: fit-content;
  background: #000;
  color: #ffffff;
  border: 2px solid #00e5ff;
  border-radius: 15px;
  box-shadow:
    0 0 10px #00e5ff,
    0 0 20px #00e5ff,
    0 0 40px #00ffff;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px #ffffff;
  animation: flickerFlash 2s infinite ease-in-out;
}

@keyframes flickerFlash {
  0%, 100% {
    opacity: 1;
    text-shadow:
      0 0 5px #ffffff,
      0 0 15px #00ffff;
  }
  50% {
    opacity: 0.8;
    text-shadow:
      0 0 10px #ffffff,
      0 0 25px #00e5ff;
  }
}

.radar-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 120px;
  z-index: 9999;
  font-family: 'Arial', sans-serif;
  text-align: center;
  user-select: none;
}

.radar-circle {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(#003344, #000);
  border: 2px solid #00f0ff55;
  overflow: hidden;
  box-shadow: 0 0 20px #00f0ff88;
}

.radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, #00f0ff44 0deg, #00000000 90deg);
  animation: rotate-sweep 2s linear infinite;
  border-radius: 50%;
}

.radar-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  top: 10px;
  left: 70px;
  animation: blink 1s infinite alternate;
  box-shadow: 0 0 10px #ffffffaa;
}

.radar-count {
  margin-top: 5px;
  color: #00f0ff;
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.3s ease;
  opacity: 1;
}

@keyframes rotate-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0% { opacity: 1; }
  100% { opacity: 0.3; }
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  width: auto;
  max-width: 280px;
  z-index: 9999;
  font-family: 'Arial', sans-serif;
}

.toast {
  background: linear-gradient(90deg, #0099ff, #33ccff);
  color: white;
  padding: 8px 14px;
  margin-top: 8px;
  border-radius: 20px;
  box-shadow: 0 0 10px #00e5ffaa;
  font-weight: 500;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(30px);
  animation: slide-in 0.5s forwards;
}

.icon-star {
  font-size: 16px;
  color: #fffacd;
}

@keyframes slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ai-scanner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #0ff;
  padding: 20px;
  margin: 30px auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 0 20px #00ffff55;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.scanner-circle {
  position: relative;
  width: 120px;
  height: 120px;
  border: 2px solid #0ff;
  border-radius: 50%;
  background: radial-gradient(#002, #000);
  overflow: hidden;
  margin-bottom: 16px;
}

.scanner-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(rgba(0, 255, 255, 0.2) 0deg, rgba(0, 255, 255, 0.8) 90deg, transparent 270deg);
  animation: radarSweep 3s linear infinite;
  border-radius: 50%;
  opacity: 0.6;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.terminal-log {
  background: #000;
  color: #0f0;
  font-family: monospace;
  font-size: 14px;
  padding: 12px 15px;
  max-width: 600px;
  height: 180px;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: inset 0 0 15px #00ff00aa;
  overflow-y: auto;
  line-height: 1.4em;
}

.terminal-log div {
  opacity: 0;
  margin-bottom: 6px;
  transition: opacity 0.6s ease;
}

.terminal-log div.visible {
  opacity: 1;
}

#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
  user-select: none;
}

#content {
  position: relative;
  z-index: 10;
  color: #00ff00;
  font-family: monospace, monospace;
  padding: 20px;
}

#ai-cam {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 220px;
  opacity: 0.8;
  z-index: -1;
  border-radius: 12px;
  box-shadow: 0 0 25px #00f0ff55;
  pointer-events: none;
}
