/* Notification Styles */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-family: 'Courier New', monospace;
  z-index: 1000;
  display: none;
  animation: slideIn 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  max-width: 300px;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.notification.info {
  background-color: #0088ff;
  border-left: 5px solid #0055cc;
}

.notification.success {
  background-color: #00cc66;
  border-left: 5px solid #009944;
}

.notification.warning {
  background-color: #ffcc00;
  border-left: 5px solid #cc9900;
  color: #333;
}

.notification.error {
  background-color: #ff3333;
  border-left: 5px solid #cc0000;
}

/* Loading Animation */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.loading {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loading div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0ff;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading div:nth-child(1) {
  left: 8px;
  animation: loading1 0.6s infinite;
}

.loading div:nth-child(2) {
  left: 8px;
  animation: loading2 0.6s infinite;
}

.loading div:nth-child(3) {
  left: 32px;
  animation: loading2 0.6s infinite;
}

.loading div:nth-child(4) {
  left: 56px;
  animation: loading3 0.6s infinite;
}

@keyframes loading1 {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes loading2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(24px, 0); }
}

@keyframes loading3 {
  0% { transform: scale(1); }
  100% { transform: scale(0); }
}

/* Matrix Rain Effect */
.matrix-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  opacity: 0.05;
  pointer-events: none;
}

.matrix-rain {
  color: #0f0;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  position: absolute;
  white-space: nowrap;
  animation: matrix-rain linear infinite;
}

@keyframes matrix-rain {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* Cyberpunk Button Styles */
.cyber-button {
  position: relative;
  background: #111;
  color: #0ff;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 2px;
  border: 2px solid #0ff;
  padding: 10px 30px;
  margin: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
  z-index: 1;
}

.cyber-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
  transition: all 0.3s;
  z-index: -1;
}

.cyber-button:hover:before {
  left: 100%;
}

.cyber-button:hover {
  box-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
  text-shadow: 0 0 5px #0ff;
}

/* Report Card Styles */
.report-card {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #0ff;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.report-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.report-card.critical:before {
  background: #f00;
}

.report-card.high:before {
  background: #f50;
}

.report-card.medium:before {
  background: #ff0;
}

.report-card.low:before {
  background: #0f0;
}

.report-card h4 {
  margin-top: 0;
  color: #0ff;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  padding-bottom: 5px;
}

/* Code Snippet Styles */
.code-snippet {
  background: #000;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 15px;
  font-family: 'Courier New', monospace;
  color: #0f0;
  position: relative;
  margin: 15px 0;
  overflow-x: auto;
}

.code-snippet:before {
  content: 'CODE';
  position: absolute;
  top: -10px;
  right: 10px;
  background: #000;
  padding: 0 5px;
  font-size: 12px;
  color: #0ff;
}

.code-line-numbers {
  display: inline-block;
  padding-right: 15px;
  border-right: 1px solid #333;
  color: #555;
  user-select: none;
}

.code-content {
  display: inline-block;
  padding-left: 15px;
}

/* Highlighted Line */
.highlighted-line {
  background: rgba(255, 0, 0, 0.2);
  display: block;
}

/* Dashboard Stats */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.stat-card {
  flex: 1;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #0ff;
  border-radius: 5px;
  padding: 15px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #0ff;
  margin: 10px 0;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

/* Severity Indicators */
.severity {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.severity.critical {
  background: rgba(255, 0, 0, 0.2);
  color: #f00;
  border: 1px solid #f00;
}

.severity.high {
  background: rgba(255, 80, 0, 0.2);
  color: #f50;
  border: 1px solid #f50;
}

.severity.medium {
  background: rgba(255, 255, 0, 0.2);
  color: #ff0;
  border: 1px solid #ff0;
}

.severity.low {
  background: rgba(0, 255, 0, 0.2);
  color: #0f0;
  border: 1px solid #0f0;
}

/* Tooltip Styles */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted #0ff;
  cursor: help;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #000;
  color: #0ff;
  text-align: center;
  border: 1px solid #0ff;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
