/* BODY */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #333;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

/* 🔥 BACKGROUND GLOW */
body::before {
  content: "";
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent);
  filter: blur(100px);
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,0.3), transparent);
  filter: blur(100px);
  z-index: -1;
}

/* HEADER */
header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 20px 0;
  color: white;
}

.banner {
  font-size: 14px;
  opacity: 0.85;
}

h1 {
  margin: 0;
  color: white;
  letter-spacing: 0.5px;
}

h2 {
  margin-top: 30px;
  color: white;
}

/* INPUT (FIXED WIDTH CONSISTENCY) */
input[type="text"] {
  padding: 12px;
  max-width: 320px;
  width: 90%;
  border-radius: 10px;
  border: none;
  outline: none;

  background: rgba(255,255,255,0.9);

  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.1),
    0 4px 15px rgba(0,0,0,0.2);

  transition: all 0.2s ease;
}

input:focus {
  transform: scale(1.02);
  box-shadow:
    0 0 0 2px rgba(59,130,246,0.6),
    0 6px 20px rgba(0,0,0,0.3);
}

/* LABEL */
label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
}

/* BUTTON (SLIGHTLY REFINED SHADOW) */
button {
  padding: 12px 25px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;

  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transition: all 0.25s ease;
}

button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.6);
}

button:active {
  transform: scale(0.97);
}

/* CARD (REDUCED HEAVY SHADOW) */
.card, .stat-card, .chart-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.15);

  max-width: 520px;
  width: 90%;
  margin: 30px auto;
  padding: 25px;
  border-radius: 18px;

  box-shadow:
    0 6px 20px rgba(0,0,0,0.25),
    inset 0 1px rgba(255,255,255,0.2);

  color: white;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.01);
}

/* RESULT TEXT */
#resultText {
  font-size: 22px;
}

/* TABLE */
table {
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 20px auto;
  width: 95%;
  color: white;
  font-size: 14px;
}

th {
  background: rgba(255,255,255,0.25);
  padding: 12px;
  border-radius: 8px;
}

td {
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

/* hover */
tr:hover td {
  background: rgba(255,255,255,0.12);
}

/* STATUS COLORS */
.safe { color: #22c55e; }
.suspicious { color: #f59e0b; }
.phishing { color: #ef4444; }

/* NAVBAR (SLIGHT POLISH) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  padding: 12px 0;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.navbar a {
  margin: 0 12px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar a:hover {
  color: #22c55e;
  transform: translateY(-2px);
}

.navbar a.active {
  color: #22c55e;
  font-weight: bold;
}

/* DASHBOARD TEXT */
#userStatus {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

/* 🔥 CHART BOX CENTER FIX */
.chart-box {
  width: 350px;
  height: 260px;
  margin: 20px auto;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);

  box-shadow:
    0 6px 20px rgba(0,0,0,0.25),
    inset 0 1px rgba(255,255,255,0.2);
}

/* chart size */
#chart {
  max-height: 220px;
}

/* TABLE ANIMATION */
.dashboard-table tr {
  transition: all 0.3s ease;
}

.dashboard-table tr:hover {
  transform: scale(1.01);
  background: rgba(255,255,255,0.12);
}

.main-section {
  text-align: center;
  margin-top: 40px;
}

/* TOGGLE CONTAINER */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  margin-top: 10px;
}

/* SWITCH BOX */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

/* HIDE DEFAULT CHECKBOX */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* SLIDER BACKGROUND */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.3);
  border-radius: 30px;
  transition: 0.4s;
}

/* CIRCLE */
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

/* ON STATE */
.switch input:checked + .slider {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* LOADER SPINNER */
.loader {
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #22c55e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

/* ANIMATION */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#riskBar {
  transition: width 0.8s ease, background 0.5s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* FADE-IN EFFECT */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BUTTON PRESS FEEDBACK */
button:active {
  transform: scale(0.96);
}

/* PREMIUM CARD HOVER */
.card:hover {
  transform: translateY(-5px) scale(1.01);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;

  background: rgba(0,0,0,0.8);
  color: white;
  padding: 12px 20px;

  border-radius: 8px;
  font-size: 14px;

  opacity: 0;
  transform: translateY(20px);

  transition: all 0.4s ease;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* SKELETON */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.1) 25%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  height: 20px;
  margin: 10px 0;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* FLOATING LIGHT EFFECT */
body::before,
body::after {
  animation: floatMove 10s infinite alternate;
}

@keyframes floatMove {
  from { transform: translateY(0px); }
  to { transform: translateY(30px); }
}

/* SMOOTH ALL UI */
.card {
  max-width: 500px;
}

.main-section {
  padding: 20px;
}

@media (max-width: 600px) {
  input {
    width: 90%;
  }

  .card {
    width: 95%;
  }

  button {
    width: 90%;
  }
}

body{
    background:
        radial-gradient(circle at top left, #1f5fff55, transparent 30%),
        radial-gradient(circle at bottom right, #00bfff33, transparent 30%),
        linear-gradient(135deg,#003cff,#355dff,#4f46e5);
}

.card{
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    border:1px solid rgba(255,255,255,0.18);
    box-shadow:
        0 8px 30px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.12);
}

button{
    border-radius:14px;
    transition:0.3s ease;
    box-shadow:0 0 15px rgba(0,140,255,0.3);
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 0 20px rgba(0,200,255,0.55);
}

.navbar a.active{
    color:#7CFF7C;
    border-bottom:2px solid #7CFF7C;
    text-shadow:0 0 10px #7CFF7C;
}

table{
    border-collapse:separate;
    border-spacing:0 10px;
}

td,th{
    background:rgba(255,255,255,0.05);
    border:none;
}

/* ===== FINAL CLEANUP FIXES ===== */

/* LOADING TEXT */
#loadingText{
color:white;
font-size:14px;
margin-top:10px;
opacity:0.9;
}

/* CLEAN MOBILE BUTTONS */
@media (max-width:600px){

```
button{
    width:auto;
    min-width:120px;
    margin:6px;
}

table{
    font-size:12px;
}

td, th{
    padding:10px;
}

.card{
    width:95%;
}
```

}


/* CLEAN TABLE RESPONSIVE */
table{
overflow-x:auto;
}

/* EXTRA SMOOTH CARD */
.card{
transition:
transform 0.3s ease,
box-shadow 0.3s ease;
}

/* BUTTON ICON SPACING */
button i{
margin-right:6px;
}
