:root {
  --neon-cyan: #00f3ff;
  --cyber-purple: #7028e4;
  --matrix-green: #00ff9d;
  --cyber-black: #0a0a12;
  --cyber-dark: #12121a;
  --hologram-gradient: linear-gradient(45deg, var(--cyber-purple), var(--neon-cyan));
}

.cybertool-container {
  --glow-intensity: 1;
  font-family: 'Courier New', monospace;
  max-width: 800px;
  margin: 0 auto;
  background: var(--cyber-dark);
  border: 1px solid rgba(112, 40, 228, 0.3);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.cybertool-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hologram-gradient);
  opacity: 0.05;
  z-index: -1;
}

.cybertool-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.cybertool-title {
  color: var(--matrix-green);
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.cybertool-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cybertool-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.cybertool-reset {
  background: transparent;
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  position: relative;
  overflow: hidden;
}

.cybertool-reset:hover {
  background: rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.cybertool-reset::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent,
    rgba(0, 243, 255, 0.1),
    transparent
  );
  transform: rotate(30deg);
  transition: all 0.5s ease;
}

.cybertool-reset:hover::before {
  left: 100%;
}

@media (max-width: 600px) {
  .cybertool-body {
    grid-template-columns: 1fr;
  }
}

.cybertool-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cybertool-control {
  position: relative;
}

.cybertool-label {
  display: block;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.cybertool-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(112, 40, 228, 0.5);
  color: white;
  font-family: inherit;
  font-size: 1.2rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.cybertool-input:focus {
  outline: none;
  border-bottom-color: var(--matrix-green);
}

.cybertool-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--matrix-green);
  transition: width 0.3s ease;
}

.cybertool-input:focus + .cybertool-underline {
  width: 100%;
}

.cybertool-button {
  background: var(--hologram-gradient);
  border: none;
  color: var(--cyber-black);
  padding: 0.8rem;
  font-family: inherit;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cybertool-button:hover {
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
  transform: translateY(-2px);
}

.cybertool-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(30deg);
  transition: all 0.5s ease;
}

.cybertool-button:hover::before {
  left: 100%;
}

.cybertool-output {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(10, 10, 18, 0.7);
  border: 1px solid rgba(0, 243, 255, 0.1);
  border-radius: 4px;
  padding: 2rem;
  position: relative;
}

.cybertool-result {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cybertool-result-label {
  display: block;
  color: var(--neon-cyan);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.cybertool-result-value {
  font-size: 2.5rem;
  color: var(--matrix-green);
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.cybertool-formula {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-align: center;
}

.cybertool-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Animation for particles */
@keyframes cybertool-particle-float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}