/* Risk Monitoring Styles for Bet History */

:root {
  /* Risk Level Colors */
  --risk-critical: #b91c1c;
  --risk-high: #d97706;
  --risk-medium: #eab308;
  --risk-low: #22c55e;
}

/* Risk Badge Styles */
.risk-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid;
  display: inline-block;
}

.badge-critical {
  background: rgba(185, 28, 28, 0.15);
  color: #fca5a5;
  border-color: #b91c1c;
}

.badge-high {
  background: rgba(217, 119, 6, 0.15);
  color: #fdba74;
  border-color: #d97706;
}

.badge-medium {
  background: rgba(234, 179, 8, 0.15);
  color: #fcd34d;
  border-color: #eab308;
}

.badge-low {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: #22c55e;
}

/* Risk Alert Section */
.risk-alert-section {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.risk-alert-section h3 {
  margin: 0 0 12px 0;
  color: #fca5a5;
  font-size: 14px;
  font-weight: 600;
}

.risk-alert-item {
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid #b91c1c;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.risk-alert-item strong {
  color: #fca5a5;
}

/* Risk Indicator in Table */
.risk-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.risk-indicator.critical {
  background: rgba(185, 28, 28, 0.2);
  color: #fca5a5;
}

.risk-indicator.high {
  background: rgba(217, 119, 6, 0.2);
  color: #fdba74;
}

.risk-indicator.medium {
  background: rgba(234, 179, 8, 0.2);
  color: #fcd34d;
}

.risk-indicator.low {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.risk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.risk-indicator.critical .risk-dot {
  background: #b91c1c;
}

.risk-indicator.high .risk-dot {
  background: #d97706;
}

.risk-indicator.medium .risk-dot {
  background: #eab308;
}

.risk-indicator.low .risk-dot {
  background: #22c55e;
}

/* Risk Tooltip */
.risk-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.risk-tooltip .tooltip-text {
  visibility: hidden;
  width: 250px;
  background: rgba(15, 23, 42, 0.95);
  color: #f1f5f9;
  text-align: left;
  border-radius: 6px;
  padding: 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid #334155;
}

.risk-tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

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

/* Risk Score Row Highlighting */
table tbody tr.risk-critical {
  background-color: rgba(185, 28, 28, 0.08) !important;
  border-left: 3px solid #b91c1c;
}

table tbody tr.risk-high {
  background-color: rgba(217, 119, 6, 0.08) !important;
  border-left: 3px solid #d97706;
}

table tbody tr.risk-medium {
  background-color: rgba(234, 179, 8, 0.08) !important;
  border-left: 3px solid #eab308;
}

table tbody tr.risk-low {
  background-color: rgba(34, 197, 94, 0.08) !important;
  border-left: 3px solid #22c55e;
}

/* Risk Action Buttons */
.btn-risk-block {
  background: #b91c1c;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-risk-block:hover {
  background: #991b1b;
}

.btn-risk-review {
  background: #d97706;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-risk-review:hover {
  background: #b45309;
}

/* Risk Stats Card */
.risk-stats-card {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.risk-stats-card .label {
  font-size: 11px;
  color: #cbd5e1;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.risk-stats-card .value {
  font-size: 20px;
  font-weight: 700;
  color: #fca5a5;
}

/* VPN/Proxy Indicator */
.vpn-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Geographic Risk Indicator */
.geo-risk-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  margin-right: 4px;
}

.geo-risk-critical {
  background: #b91c1c;
  color: white;
}

.geo-risk-high {
  background: #d97706;
  color: white;
}

.geo-risk-medium {
  background: #eab308;
  color: black;
}

.geo-risk-low {
  background: #22c55e;
  color: white;
}

/* Loading State */
.risk-loading {
  display: inline-block;
  animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .risk-tooltip .tooltip-text {
    width: 200px;
    font-size: 11px;
  }
}
