
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-navy: #0F172A;
  --secondary-navy: #1E293B;
  --accent-cyan: #0CF9F9;
  --success-green: #10B981;
  --warning-amber: #F59E0B;
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --glow-cyan: rgba(12, 249, 249, 0.3);
  /* --glassmorphism: rgba(30, 41, 59, 0.8); */
}

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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary-navy);
  color: var(--text-primary);
}

body {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://cdn.abacus.ai/images/e1ada1b5-44ac-42d6-9786-4b1fa60f5d8c.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(12, 249, 249, 0.3);
}

p, span, div {
  color: var(--text-secondary);
}

/* .glassmorphism {
  background: var(--glassmorphism);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(12, 249, 249, 0.2);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
} */

.neon-glow {
  box-shadow: 
    0 0 10px var(--glow-cyan),
    0 0 20px var(--glow-cyan),
    0 0 40px var(--glow-cyan);
}

.neon-border {
  border: 1px solid var(--accent-cyan);
  box-shadow: 
    0 0 5px var(--glow-cyan),
    inset 0 0 5px var(--glow-cyan);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 0 20px var(--glow-cyan),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 0 5px var(--glow-cyan);
  }
  to {
    box-shadow: 0 0 20px var(--glow-cyan), 0 0 30px var(--glow-cyan);
  }
}

.floating-particles {
  position: relative;
  overflow: hidden;
}

.floating-particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://cdn.abacus.ai/images/af2cc2ba-3312-4a75-8f91-8cbde3e80fa4.png');
  background-size: cover;
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(12, 249, 249, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.government-badge {
  position: relative;
  background: linear-gradient(145deg, #1E293B, #0F172A);
  border: 2px solid var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 
    0 0 10px var(--glow-cyan),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
}

.government-badge::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-cyan), transparent, var(--accent-cyan));
  border-radius: 8px;
  z-index: -1;
  animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.crypto-glow {
  background: linear-gradient(145deg, 
    rgba(251, 191, 36, 0.1), 
    rgba(12, 249, 249, 0.1)
  );
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 
    0 0 15px rgba(251, 191, 36, 0.2),
    0 0 30px rgba(12, 249, 249, 0.1);
}

.success-glow {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.warning-glow {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 4px;
  box-shadow: 0 0 5px var(--glow-cyan);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--glow-cyan);
}

/* Loading animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--secondary-navy);
  border-top: 3px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced focus states for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 10px var(--glow-cyan);
}

/* Disable blue highlight on touch devices */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Enhanced form inputs */
input, textarea, select {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(12, 249, 249, 0.3);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 8px 12px;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--glow-cyan);
  background: rgba(30, 41, 59, 0.8);
}

/* Enhanced buttons */
.btn-primary {
  background: linear-gradient(145deg, var(--accent-cyan), #0891B2);
  border: none;
  color: var(--primary-navy);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(12, 249, 249, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 249, 249, 0.4);
  background: linear-gradient(145deg, #0CF9F9, #0891B2);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--accent-cyan);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(12, 249, 249, 0.1);
  box-shadow: 0 0 15px var(--glow-cyan);
  color: var(--text-primary);
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--success-green));
  border-radius: 6px;
  transition: width 0.8s ease;
  position: relative;
}

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

/* Animated counter */
.animated-counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-primary);
  text-shadow: 0 0 20px var(--glow-cyan);
}

/* Chart container */
.chart-container {
  position: relative;
  height: 250px;
  width: 250px;
  margin: 0 auto;
}

.pie-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.pie-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--secondary-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px solid var(--accent-cyan);
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: var(--glassmorphism);
  border: 1px solid rgba(12, 249, 249, 0.3);
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .animated-counter {
    font-size: 2rem;
  }
  
  .chart-container {
    width: 200px;
    height: 200px;
  }
}

/* Switch component */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 41, 59, 0.6);
  transition: 0.4s;
  border-radius: 24px;
  border: 1px solid rgba(12, 249, 249, 0.3);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-cyan);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--primary-navy);
}

/* Security score indicator */
.security-score {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-cyan) 0deg, var(--success-green) 180deg, var(--warning-amber) 270deg, var(--primary-navy) 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-score::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: var(--secondary-navy);
  border-radius: 50%;
}

.security-score-text {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
}
