:root {
  --bg-deep: #050816;
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1331;
  --bg-card: #141838;
  --bg-card-hover: #1a1f4d;
  --bg-input: #0c1029;
  --bg-surface: rgba(20, 24, 56, 0.8);

  --cyan: #00f0ff;
  --cyan-dim: #00a8b3;
  --cyan-glow: rgba(0, 240, 255, 0.3);
  --green: #39ff14;
  --green-dim: #2bbd10;
  --green-glow: rgba(57, 255, 20, 0.3);
  --red: #ff3547;
  --red-dim: #cc2a39;
  --red-glow: rgba(255, 53, 71, 0.3);
  --orange: #ff6b35;
  --orange-glow: rgba(255, 107, 53, 0.3);
  --yellow: #ffb545;
  --yellow-glow: rgba(255, 181, 69, 0.3);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.3);
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.3);


  --text-primary: #f0f0f0;
  --text-secondary: #a0a8c8;
  --text-muted: #6b7280;
  --text-dim: #4a5068;


  --border: #1e2454;
  --border-hover: #2d3570;
  --border-active: var(--cyan);


  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, sans-serif;


  --sidebar-width: 260px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;


  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--cyan-glow);


  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}


body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  z-index: 9999;
  animation: scanLine 4s linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  95% {
    opacity: 1;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}


::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-dim);
}

.hidden {
  display: none !important;
}

.text-cyan {
  color: var(--cyan);
}

.text-green {
  color: var(--green);
}

.text-red {
  color: var(--red);
}

.text-orange {
  color: var(--orange);
}

.text-yellow {
  color: var(--yellow);
}

.text-muted {
  color: var(--text-muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 22, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  backdrop-filter: blur(20px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 560px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 240, 255, 0.1);
  animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.disclaimer-list {
  list-style: none;
  text-align: left;
  margin: 1rem 0 1.5rem;
}

.disclaimer-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.disclaimer-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: bold;
}

.disclaimer-tip {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tip-icon {
  font-size: 1.2rem;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan));
  color: var(--bg-deep);
  border-color: var(--cyan);
}

.btn-primary:hover {
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: translateY(-2px);
}

.btn-glow {
  animation: btnGlow 2s ease-in-out infinite;
}

@keyframes btnGlow {

  0%,
  100% {
    box-shadow: 0 0 15px var(--cyan-glow);
  }

  50% {
    box-shadow: 0 0 30px var(--cyan-glow), 0 0 60px rgba(0, 240, 255, 0.15);
  }
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--cyan-dim);
  background: var(--bg-card);
}

.btn-danger {
  background: linear-gradient(135deg, var(--red-dim), var(--red));
  color: #fff;
  border-color: var(--red);
}

.btn-danger:hover {
  box-shadow: 0 0 25px var(--red-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-icon-only {
  padding: 0.5rem;
  width: 36px;
  height: 36px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.app-container {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  background: rgba(10, 14, 39, 0.95);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px var(--cyan-glow));
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.logo-version {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-base);
  position: relative;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(0, 240, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(0, 240, 255, 0.1);
}

.nav-item.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--cyan);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px var(--cyan-glow);
}

.nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background var(--transition-base);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  animation: dotPulse 2s ease-in-out infinite;
}

.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}


.main-content {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}


.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-header h1 .header-icon {
  font-size: 1.5rem;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}


.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: rgba(20, 24, 56, 0.6);
  backdrop-filter: blur(20px);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title .card-icon {
  font-size: 1.2rem;
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.stat-card.cyan::after {
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.stat-card.green::after {
  background: var(--green);
  box-shadow: 0 0 15px var(--green-glow);
}

.stat-card.red::after {
  background: var(--red);
  box-shadow: 0 0 15px var(--red-glow);
}

.stat-card.orange::after {
  background: var(--orange);
  box-shadow: 0 0 15px var(--orange-glow);
}

.stat-card.purple::after {
  background: var(--purple);
  box-shadow: 0 0 15px var(--purple-glow);
}

.stat-card.yellow::after {
  background: var(--yellow);
  box-shadow: 0 0 15px var(--yellow-glow);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
}

.stat-card.cyan .stat-value {
  color: var(--cyan);
}

.stat-card.green .stat-value {
  color: var(--green);
}

.stat-card.red .stat-value {
  color: var(--red);
}

.stat-card.orange .stat-value {
  color: var(--orange);
}

.stat-card.purple .stat-value {
  color: var(--purple);
}

.stat-card.yellow .stat-value {
  color: var(--yellow);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}


.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1), 0 0 20px rgba(0, 240, 255, 0.05);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.form-row .form-group {
  flex: 1;
}

.input-group {
  display: flex;
  gap: 0.5rem;
}

.input-group .form-input {
  flex: 1;
}


.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(30, 36, 84, 0.5);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.data-table tr:hover td {
  background: rgba(0, 240, 255, 0.03);
}

.data-table .table-scroll {
  max-height: 400px;
  overflow-y: auto;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.badge-critical {
  background: rgba(255, 53, 71, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 53, 71, 0.3);
}

.badge-high {
  background: rgba(255, 107, 53, 0.15);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.badge-medium {
  background: rgba(255, 181, 69, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(255, 181, 69, 0.3);
}

.badge-low {
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.badge-info {
  background: rgba(0, 180, 216, 0.15);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-open {
  background: rgba(255, 53, 71, 0.15);
  color: var(--red);
  border: 1px solid rgba(255, 53, 71, 0.3);
}

.badge-closed {
  background: rgba(57, 255, 20, 0.08);
  color: var(--green-dim);
  border: 1px solid rgba(57, 255, 20, 0.15);
}


.grade-display {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  margin: 1rem auto;
  position: relative;
}

.grade-display::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(var(--cyan), var(--purple), var(--cyan));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: gradeRotate 3s linear infinite;
}

@keyframes gradeRotate {
  to {
    transform: rotate(360deg);
  }
}

.grade-a-plus,
.grade-a {
  color: var(--green);
}

.grade-b {
  color: var(--cyan);
}

.grade-c {
  color: var(--yellow);
}

.grade-d {
  color: var(--orange);
}

.grade-f {
  color: var(--red);
}


.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.progress-fill.green {
  background: linear-gradient(90deg, var(--green-dim), var(--green));
}

.progress-fill.cyan {
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
}

.progress-fill.yellow {
  background: linear-gradient(90deg, #cc9520, var(--yellow));
}

.progress-fill.orange {
  background: linear-gradient(90deg, #cc5500, var(--orange));
}

.progress-fill.red {
  background: linear-gradient(90deg, var(--red-dim), var(--red));
}


.terminal-panel {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #1a1a1a;
  border-bottom: 1px solid #262626;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ff5f57;
}

.terminal-dot.yellow {
  background: #febc2e;
}

.terminal-dot.green {
  background: #28c840;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #666;
}

.terminal-body {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-line {
  margin-bottom: 0.15rem;
}

.terminal-line .prompt {
  color: var(--cyan);
  margin-right: 0.5rem;
}

.terminal-line .timestamp {
  color: var(--text-dim);
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

.terminal-line.error {
  color: var(--red);
}

.terminal-line.warning {
  color: var(--yellow);
}

.terminal-line.info {
  color: var(--blue);
}

.terminal-line.success {
  color: var(--green);
}


.scan-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1.5rem;
}

.scan-spinner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  animation: spin 1s linear infinite;
  position: relative;
}

.scan-spinner::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--purple);
  animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scan-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0.5;
  }
}


.results-container {
  margin-top: 1.5rem;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: all var(--transition-base);
}

.result-item:hover {
  border-color: var(--border-hover);
}

.result-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.result-item-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.result-item-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.result-item-detail code {
  font-family: var(--font-mono);
  background: var(--bg-deep);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--cyan);
}


.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

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

.action-card:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(0, 240, 255, 0.05);
}

.action-card-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.action-card-title {
  font-weight: 700;
  font-size: 1rem;
}

.action-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.3s ease-out;
  font-size: 0.85rem;
  backdrop-filter: blur(20px);
}

.toast.removing {
  animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-success {
  border-left: 3px solid var(--green);
}

.toast-error {
  border-left: 3px solid var(--red);
}

.toast-warning {
  border-left: 3px solid var(--yellow);
}

.toast-info {
  border-left: 3px solid var(--cyan);
}

.toast-icon {
  font-size: 1.1rem;
}

.toast-message {
  flex: 1;
  color: var(--text-secondary);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 1rem;
  line-height: 1;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}


.strength-meter {
  display: flex;
  gap: 4px;
  margin: 0.5rem 0;
}

.strength-segment {
  flex: 1;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  transition: background var(--transition-base);
}

.strength-very-weak .strength-segment:nth-child(-n+1) {
  background: var(--red);
}

.strength-weak .strength-segment:nth-child(-n+2) {
  background: var(--orange);
}

.strength-moderate .strength-segment:nth-child(-n+3) {
  background: var(--yellow);
}

.strength-strong .strength-segment:nth-child(-n+4) {
  background: var(--green);
}


.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-base);
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--cyan);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}


.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  margin-bottom: 0.5rem;
}

.collapsible-header:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.collapsible-header .arrow {
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.collapsible-header.open .arrow {
  transform: rotate(180deg);
}

.collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.collapsible-body.open {
  max-height: 2000px;
}


.info-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.info-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.info-value {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  word-break: break-all;
}


.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
}


.history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(30, 36, 84, 0.3);
  transition: background var(--transition-fast);
}

.history-item:hover {
  background: rgba(0, 240, 255, 0.03);
}

.history-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.history-info {
  flex: 1;
}

.history-target {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.history-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.history-status {
  text-align: right;
}


.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}


@media (max-width: 1200px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .three-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -100%;
    z-index: 1000;
    transition: left var(--transition-base);
  }

  .sidebar.open {
    left: 0;
  }

  .main-content {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .three-col {
    grid-template-columns: 1fr;
  }
}


.page-enter {
  animation: pageEnter 0.4s ease-out;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateX(15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.typing-cursor::after {
  content: '▋';
  animation: cursorBlink 1s step-end infinite;
  color: var(--cyan);
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}


.glow-cyan {
  text-shadow: 0 0 10px var(--cyan-glow), 0 0 20px rgba(0, 240, 255, 0.15);
}

.glow-green {
  text-shadow: 0 0 10px var(--green-glow), 0 0 20px rgba(57, 255, 20, 0.15);
}

.glow-red {
  text-shadow: 0 0 10px var(--red-glow), 0 0 20px rgba(255, 53, 71, 0.15);
}


.risk-banner {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  margin: 1rem 0;
  letter-spacing: 1px;
}

.risk-banner.critical {
  background: rgba(255, 53, 71, 0.1);
  border: 1px solid rgba(255, 53, 71, 0.3);
  color: var(--red);
}

.risk-banner.high {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--orange);
}

.risk-banner.medium {
  background: rgba(255, 181, 69, 0.1);
  border: 1px solid rgba(255, 181, 69, 0.3);
  color: var(--yellow);
}

.risk-banner.low {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: var(--green);
}

.risk-banner.minimal {
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.3);
  color: var(--blue);
}