/* ==========================================================================
   UltraGuard Pro - Security Widgets & Features
   Version: 3.1.1 - COMPLETE
   ========================================================================== */

/* ==========================================================================
   SECURITY SCORE - COMPLETE
   ========================================================================== */
.ultraguard-security-score {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  box-shadow: var(--ug-shadow-sm);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-security-score-title {
  margin: 0 0 var(--ug-spacing-md) 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-security-score-container {
  text-align: center;
}

.ultraguard-security-score-main {
  position: relative;
  display: inline-block;
  margin-bottom: var(--ug-spacing-md);
}

.ultraguard-security-gauge {
  margin: 0 auto;
}

.ultraguard-gauge-bg {
  fill: none;
  stroke: var(--ug-bg-tertiary);
  stroke-width: 8;
}

.ultraguard-gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--ug-transition-slow);
}

.ultraguard-gauge-excellent {
  stroke: var(--ug-safe);
}

.ultraguard-gauge-good {
  stroke: var(--ug-low);
}

.ultraguard-gauge-warning {
  stroke: var(--ug-medium);
}

.ultraguard-gauge-critical {
  stroke: var(--ug-critical);
}

.ultraguard-security-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.ultraguard-security-score-number {
  font-size: 32px;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.ultraguard-security-score-label {
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  margin-top: 4px;
}

.ultraguard-security-score-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: var(--ug-font-size-xs);
  font-weight: 600;
}

.ultraguard-security-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--ug-spacing-sm);
  margin-top: var(--ug-spacing-md);
}

.ultraguard-security-category {
  text-align: center;
  padding: var(--ug-spacing-sm);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-security-category:hover {
  box-shadow: var(--ug-shadow-sm);
}

.ultraguard-category-name {
  font-size: var(--ug-font-size-xs);
  color: var(--ug-gray);
  margin-bottom: 4px;
}

.ultraguard-category-score {
  font-size: var(--ug-font-size-lg);
  font-weight: 700;
}

.ultraguard-category-excellent {
  color: var(--ug-safe);
}

.ultraguard-category-good {
  color: var(--ug-low);
}

.ultraguard-category-warning {
  color: var(--ug-medium);
}

.ultraguard-category-critical {
  color: var(--ug-critical);
}

/* Security Score Sizes */
.ultraguard-security-score-small .ultraguard-security-gauge {
  width: 100px;
  height: 100px;
}

.ultraguard-security-score-large .ultraguard-security-gauge {
  width: 200px;
  height: 200px;
}

/* ==========================================================================
   VULNERABILITY SCANNER - COMPLETE
   ========================================================================== */
.ultraguard-vulnerability-scanner {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  box-shadow: var(--ug-shadow-sm);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-vulnerability-title {
  margin: 0 0 var(--ug-spacing-md) 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-vulnerability-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-vulnerability-scanning {
  display: flex;
  align-items: center;
  color: var(--ug-primary);
  font-weight: 600;
}

.ultraguard-vulnerability-last-scan {
  color: var(--ug-gray);
  font-size: var(--ug-font-size-sm);
}

.ultraguard-vulnerability-summary {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-lg);
}

.ultraguard-vulnerability-severities {
  display: flex;
  gap: var(--ug-spacing-md);
}

.ultraguard-vulnerability-severity {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--ug-spacing-sm);
  border-radius: var(--ug-radius-sm);
  min-width: 60px;
  transition: all var(--ug-transition-base);
}

.ultraguard-vulnerability-severity:hover {
  transform: scale(1.05);
}

.ultraguard-vulnerability-critical {
  background: rgba(220, 38, 38, 0.1);
  color: var(--ug-critical);
}

.ultraguard-vulnerability-high {
  background: rgba(234, 88, 12, 0.1);
  color: var(--ug-high);
}

.ultraguard-vulnerability-medium {
  background: rgba(217, 119, 6, 0.1);
  color: var(--ug-medium);
}

.ultraguard-vulnerability-low {
  background: rgba(101, 163, 13, 0.1);
  color: var(--ug-low);
}

.ultraguard-vulnerability-count {
  font-size: var(--ug-font-size-xl);
  font-weight: 700;
  line-height: 1;
}

.ultraguard-vulnerability-label {
  font-size: var(--ug-font-size-xs);
  margin-top: 4px;
  text-transform: capitalize;
}

.ultraguard-vulnerability-list {
  margin: var(--ug-spacing-lg) 0;
}

.ultraguard-vulnerability-item {
  padding: var(--ug-spacing-md);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-sm);
  margin-bottom: var(--ug-spacing-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-vulnerability-item:hover {
  box-shadow: var(--ug-shadow-sm);
}

.ultraguard-vulnerability-item:last-child {
  margin-bottom: 0;
}

.ultraguard-vulnerability-item.ultraguard-vulnerability-critical {
  border-left: 4px solid var(--ug-critical);
}

.ultraguard-vulnerability-item.ultraguard-vulnerability-high {
  border-left: 4px solid var(--ug-high);
}

.ultraguard-vulnerability-item.ultraguard-vulnerability-medium {
  border-left: 4px solid var(--ug-medium);
}

.ultraguard-vulnerability-item.ultraguard-vulnerability-low {
  border-left: 4px solid var(--ug-low);
}

.ultraguard-vulnerability-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--ug-spacing-sm);
}

.ultraguard-vulnerability-name {
  margin: 0;
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-vulnerability-cve {
  font-size: var(--ug-font-size-sm);
  color: var(--ug-primary);
  text-decoration: none;
}

.ultraguard-vulnerability-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ultraguard-vulnerability-component {
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
}

.ultraguard-vulnerability-fix {
  font-size: var(--ug-font-size-xs) !important;
  padding: 4px 8px !important;
}

.ultraguard-vulnerability-empty {
  text-align: center;
  padding: var(--ug-spacing-xl);
  color: var(--ug-gray);
  font-style: italic;
}

.ultraguard-vulnerability-actions {
  display: flex;
  gap: var(--ug-spacing-sm);
  justify-content: flex-end;
}

/* ==========================================================================
   THREAT HEATMAP - COMPLETE
   ========================================================================== */
.ultraguard-threat-heatmap {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  box-shadow: var(--ug-shadow-sm);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-threat-heatmap-title {
  margin: 0 0 var(--ug-spacing-md) 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-heatmap-calendar-wrapper {
  margin-bottom: 15px;
}

.ultraguard-heatmap-smart-header {
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
  color: #374151;
  padding: 5px;
  background: #f8f9fa;
  border-radius: 4px;
}

.ultraguard-heatmap-daynames {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 5px;
}

.ultraguard-heatmap-dayname {
  font-size: 10px;
  text-align: center;
  color: #999;
  text-transform: uppercase;
  padding: 2px 0;
}

.ultraguard-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.ultraguard-heatmap-day {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease;
}

.ultraguard-heatmap-day:hover {
  transform: scale(1.1);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ultraguard-heatmap-day-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ultraguard-heatmap-date {
  font-size: 9px;
  font-weight: bold;
  line-height: 1;
}

.ultraguard-heatmap-count {
  font-size: 8px;
  line-height: 1;
  margin-top: 1px;
}

/* Heatmap intensity colors */
.ultraguard-heatmap-intensity-0 {
  background-color: #ebedf0;
  color: #1b1f23;
}

.ultraguard-heatmap-intensity-1 {
  background-color: #86efac;
  color: #1b1f23;
}

.ultraguard-heatmap-intensity-2 {
  background-color: #4ade80;
  color: #1b1f23;
}

.ultraguard-heatmap-intensity-3 {
  background-color: #fbbf24;
  color: #1b1f23;
}

.ultraguard-heatmap-intensity-4 {
  background-color: #ef4444;
  color: white;
}

.ultraguard-threat-heatmap-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 11px;
}

.ultraguard-threat-heatmap-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ug-spacing-md);
  margin-top: var(--ug-spacing-lg);
}

.ultraguard-threat-stat {
  text-align: center;
  padding: var(--ug-spacing-sm);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-threat-stat:hover {
  box-shadow: var(--ug-shadow-sm);
}

.ultraguard-threat-stat strong {
  display: block;
  font-size: var(--ug-font-size-xl);
  color: var(--ug-primary);
  margin-bottom: 4px;
}

.ultraguard-threat-stat span {
  font-size: var(--ug-font-size-xs);
  color: var(--ug-gray);
}

/* ==========================================================================
   LOGIN MONITOR - COMPLETE
   ========================================================================== */
.ultraguard-login-monitor {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  box-shadow: var(--ug-shadow-sm);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-login-monitor-title {
  margin: 0 0 var(--ug-spacing-md) 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-login-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ug-spacing-md);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-login-stat {
  text-align: center;
  padding: var(--ug-spacing-md);
  border-radius: var(--ug-radius-sm);
  background: var(--ug-bg-secondary);
  transition: all var(--ug-transition-base);
}

.ultraguard-login-stat:hover {
  box-shadow: var(--ug-shadow-sm);
}

.ultraguard-login-success {
  border-left: 4px solid var(--ug-success);
}

.ultraguard-login-failed {
  border-left: 4px solid var(--ug-error);
}

.ultraguard-login-suspicious {
  border-left: 4px solid var(--ug-warning);
}

.ultraguard-login-rate {
  border-left: 4px solid var(--ug-primary);
}

.ultraguard-login-stat-value {
  font-size: var(--ug-font-size-xl);
  font-weight: 700;
  margin-bottom: 4px;
}

.ultraguard-login-stat-label {
  font-size: var(--ug-font-size-xs);
  color: var(--ug-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ultraguard-login-activity h5 {
  margin: 0 0 var(--ug-spacing-md) 0;
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-login-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--ug-spacing-sm) 0;
  border-bottom: 1px solid var(--ug-border);
  transition: all var(--ug-transition-base);
}

.ultraguard-login-item:hover {
  background: var(--ug-bg-secondary);
  padding-left: var(--ug-spacing-sm);
  padding-right: var(--ug-spacing-sm);
}

.ultraguard-login-item:last-child {
  border-bottom: none;
}

.ultraguard-login-user {
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-login-details {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
}

.ultraguard-login-time {
  color: var(--ug-gray);
}

.ultraguard-login-location {
  background: var(--ug-bg-tertiary);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: var(--ug-font-size-xs);
}

.ultraguard-login-ip {
  font-family: var(--ug-font-mono);
  background: var(--ug-bg-tertiary);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: var(--ug-font-size-xs);
}

.ultraguard-login-status-success {
  border-left: 3px solid var(--ug-success);
  padding-left: var(--ug-spacing-sm);
}

.ultraguard-login-status-failed {
  border-left: 3px solid var(--ug-error);
  padding-left: var(--ug-spacing-sm);
}

.ultraguard-login-status-suspicious {
  border-left: 3px solid var(--ug-warning);
  padding-left: var(--ug-spacing-sm);
}

.ultraguard-login-empty {
  text-align: center;
  padding: var(--ug-spacing-xl);
  color: var(--ug-gray);
  font-style: italic;
}

.ultraguard-login-locations {
  margin-top: var(--ug-spacing-md);
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
}

/* ==========================================================================
   MALWARE SCANNER - COMPLETE
   ========================================================================== */
.ultraguard-malware-scanner {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-malware-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-malware-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-malware-status {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-sm);
  font-weight: 600;
}

.ultraguard-malware-status.clean {
  color: var(--ug-success);
}

.ultraguard-malware-status.infected {
  color: var(--ug-error);
}

.ultraguard-malware-status.scanning {
  color: var(--ug-primary);
}

.ultraguard-malware-scan-progress {
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-malware-results {
  display: flex;
  flex-direction: column;
  gap: var(--ug-spacing-md);
}

.ultraguard-malware-result {
  display: flex;
  align-items: flex-start;
  gap: var(--ug-spacing-md);
  padding: var(--ug-spacing-md);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-malware-result:hover {
  background: var(--ug-bg-tertiary);
}

.ultraguard-malware-result-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ug-radius-round);
  flex-shrink: 0;
}

.ultraguard-malware-result-icon.malware {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-malware-result-icon.suspicious {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-malware-result-icon.clean {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-malware-result-content {
  flex: 1;
  min-width: 0;
}

.ultraguard-malware-result-title {
  margin: 0 0 var(--ug-spacing-xs) 0;
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-malware-result-path {
  font-family: var(--ug-font-mono);
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  margin-bottom: var(--ug-spacing-xs);
  word-break: break-all;
}

.ultraguard-malware-result-description {
  margin: 0;
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  line-height: var(--ug-line-height-normal);
}

.ultraguard-malware-result-actions {
  display: flex;
  gap: var(--ug-spacing-xs);
  align-items: center;
}

/* ==========================================================================
   FILE INTEGRITY - COMPLETE
   ========================================================================== */
.ultraguard-file-integrity {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-file-integrity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-file-integrity-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-file-integrity-status {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-sm);
  font-weight: 600;
}

.ultraguard-file-integrity-status.verified {
  color: var(--ug-success);
}

.ultraguard-file-integrity-status.tampered {
  color: var(--ug-error);
}

.ultraguard-file-integrity-status.scanning {
  color: var(--ug-primary);
}

.ultraguard-file-integrity-results {
  display: flex;
  flex-direction: column;
  gap: var(--ug-spacing-md);
}

.ultraguard-file-integrity-result {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  padding: var(--ug-spacing-md);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-file-integrity-result:hover {
  background: var(--ug-bg-tertiary);
}

.ultraguard-file-integrity-result-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ug-radius-round);
  flex-shrink: 0;
}

.ultraguard-file-integrity-result-icon.verified {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-file-integrity-result-icon.modified {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-file-integrity-result-icon.missing {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-file-integrity-result-content {
  flex: 1;
  min-width: 0;
}

.ultraguard-file-integrity-result-title {
  margin: 0 0 var(--ug-spacing-xs) 0;
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-file-integrity-result-path {
  font-family: var(--ug-font-mono);
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  margin-bottom: var(--ug-spacing-xs);
  word-break: break-all;
}

.ultraguard-file-integrity-result-details {
  margin: 0;
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  line-height: var(--ug-line-height-normal);
}

.ultraguard-file-integrity-result-actions {
  display: flex;
  gap: var(--ug-spacing-xs);
  align-items: center;
}

/* ==========================================================================
   FIREWALL RULES - COMPLETE
   ========================================================================== */
.ultraguard-firewall-rules {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-firewall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-firewall-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-firewall-stats {
  display: flex;
  gap: var(--ug-spacing-lg);
  align-items: center;
}

.ultraguard-firewall-stat {
  text-align: center;
}

.ultraguard-firewall-stat-value {
  font-size: var(--ug-font-size-xl);
  font-weight: 700;
  color: var(--ug-dark);
  margin-bottom: 4px;
}

.ultraguard-firewall-stat-label {
  font-size: var(--ug-font-size-xs);
  color: var(--ug-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ultraguard-firewall-rules-list {
  display: flex;
  flex-direction: column;
  gap: var(--ug-spacing-sm);
}

.ultraguard-firewall-rule {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  padding: var(--ug-spacing-md);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-firewall-rule:hover {
  background: var(--ug-bg-tertiary);
}

.ultraguard-firewall-rule.active {
  border-left: 3px solid var(--ug-success);
}

.ultraguard-firewall-rule.inactive {
  border-left: 3px solid var(--ug-gray);
}

.ultraguard-firewall-rule.disabled {
  border-left: 3px solid var(--ug-error);
  opacity: 0.7;
}

.ultraguard-firewall-rule-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ug-radius-round);
  flex-shrink: 0;
}

.ultraguard-firewall-rule-icon.allow {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-firewall-rule-icon.block {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-firewall-rule-icon.redirect {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-firewall-rule-content {
  flex: 1;
  min-width: 0;
}

.ultraguard-firewall-rule-title {
  margin: 0 0 var(--ug-spacing-xs) 0;
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-firewall-rule-description {
  margin: 0;
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  line-height: var(--ug-line-height-normal);
}

.ultraguard-firewall-rule-meta {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  margin-top: var(--ug-spacing-xs);
  font-size: var(--ug-font-size-xs);
  color: var(--ug-gray-light);
}

.ultraguard-firewall-rule-ip {
  font-family: var(--ug-font-mono);
  background: var(--ug-bg-tertiary);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: var(--ug-font-size-xs);
}

.ultraguard-firewall-rule-actions {
  display: flex;
  gap: var(--ug-spacing-xs);
  align-items: center;
}

/* ==========================================================================
   BRUTE FORCE PROTECTION - COMPLETE
   ========================================================================== */
.ultraguard-brute-force {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-brute-force-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-brute-force-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-brute-force-stats {
  display: flex;
  gap: var(--ug-spacing-lg);
  align-items: center;
}

.ultraguard-brute-force-stat {
  text-align: center;
}

.ultraguard-brute-force-stat-value {
  font-size: var(--ug-font-size-xl);
  font-weight: 700;
  color: var(--ug-dark);
  margin-bottom: 4px;
}

.ultraguard-brute-force-stat-label {
  font-size: var(--ug-font-size-xs);
  color: var(--ug-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ultraguard-brute-force-activity {
  display: flex;
  flex-direction: column;
  gap: var(--ug-spacing-sm);
}

.ultraguard-brute-force-entry {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  padding: var(--ug-spacing-md);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-brute-force-entry:hover {
  background: var(--ug-bg-tertiary);
}

.ultraguard-brute-force-entry.blocked {
  border-left: 3px solid var(--ug-error);
}

.ultraguard-brute-force-entry.allowed {
  border-left: 3px solid var(--ug-success);
}

.ultraguard-brute-force-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ug-radius-round);
  flex-shrink: 0;
}

.ultraguard-brute-force-icon.blocked {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-brute-force-icon.allowed {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-brute-force-content {
  flex: 1;
  min-width: 0;
}

.ultraguard-brute-force-ip {
  font-family: var(--ug-font-mono);
  font-weight: 600;
  color: var(--ug-dark);
  margin-bottom: var(--ug-spacing-xs);
}

.ultraguard-brute-force-details {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
}

.ultraguard-brute-force-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ultraguard-brute-force-attempts {
  background: var(--ug-bg-tertiary);
  padding: 2px 6px;
  border-radius: 10px;
}

.ultraguard-brute-force-actions {
  display: flex;
  gap: var(--ug-spacing-xs);
  align-items: center;
}

/* ==========================================================================
   TWO FACTOR AUTHENTICATION - COMPLETE
   ========================================================================== */
.ultraguard-two-factor {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-two-factor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-two-factor-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-two-factor-status {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-sm);
  font-weight: 600;
}

.ultraguard-two-factor-status.enabled {
  color: var(--ug-success);
}

.ultraguard-two-factor-status.disabled {
  color: var(--ug-error);
}

.ultraguard-two-factor-setup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-two-factor-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--ug-spacing-lg);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-md);
  transition: all var(--ug-transition-base);
  border: 2px solid transparent;
}

.ultraguard-two-factor-method:hover {
  box-shadow: var(--ug-shadow-md);
  border-color: var(--ug-primary-light);
  background: var(--ug-bg-primary);
}

.ultraguard-two-factor-method.active {
  border-color: var(--ug-success);
  background: rgba(46, 125, 50, 0.05);
}

.ultraguard-two-factor-method-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ug-gradient-primary);
  color: #fff;
  border-radius: var(--ug-radius-md);
  margin-bottom: var(--ug-spacing-md);
  font-size: 32px;
}

.ultraguard-two-factor-method-icon .dashicons {
  font-size: 36px;
  width: 36px;
  height: 36px;
}

.ultraguard-two-factor-method-title {
  margin: 0 0 var(--ug-spacing-xs) 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-two-factor-method-description {
  margin: 0 0 var(--ug-spacing-md) 0;
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  line-height: var(--ug-line-height-normal);
}

.ultraguard-two-factor-method-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: var(--ug-font-size-xs);
  font-weight: 700;
}

.ultraguard-two-factor-method-status.enabled {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-two-factor-method-status.disabled {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-two-factor-actions {
  display: flex;
  gap: var(--ug-spacing-sm);
  align-items: center;
  justify-content: flex-end;
}

/* ==========================================================================
   SSL CERTIFICATE - COMPLETE
   ========================================================================== */
.ultraguard-ssl-certificate {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-ssl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-ssl-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-ssl-status {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-sm);
  font-weight: 600;
}

.ultraguard-ssl-status.valid {
  color: var(--ug-success);
}

.ultraguard-ssl-status.expired {
  color: var(--ug-error);
}

.ultraguard-ssl-status.warning {
  color: var(--ug-warning);
}

.ultraguard-ssl-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--ug-spacing-md);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-ssl-detail {
  text-align: center;
  padding: var(--ug-spacing-md);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
}

.ultraguard-ssl-detail-label {
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  margin-bottom: 4px;
}

.ultraguard-ssl-detail-value {
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-ssl-actions {
  display: flex;
  gap: var(--ug-spacing-sm);
  align-items: center;
  justify-content: flex-end;
}

/* ==========================================================================
   DATABASE SECURITY - COMPLETE
   ========================================================================== */
.ultraguard-database-security {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-database-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-database-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-database-status {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-sm);
  font-weight: 600;
}

.ultraguard-database-status.secure {
  color: var(--ug-success);
}

.ultraguard-database-status.vulnerable {
  color: var(--ug-error);
}

.ultraguard-database-checks {
  display: flex;
  flex-direction: column;
  gap: var(--ug-spacing-sm);
}

.ultraguard-database-check {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  padding: var(--ug-spacing-md);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-database-check:hover {
  background: var(--ug-bg-tertiary);
}

.ultraguard-database-check-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ug-radius-round);
  flex-shrink: 0;
}

.ultraguard-database-check-icon.passed {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-database-check-icon.failed {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-database-check-icon.warning {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-database-check-content {
  flex: 1;
  min-width: 0;
}

.ultraguard-database-check-title {
  margin: 0 0 var(--ug-spacing-xs) 0;
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-database-check-description {
  margin: 0;
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  line-height: var(--ug-line-height-normal);
}

.ultraguard-database-check-actions {
  display: flex;
  gap: var(--ug-spacing-xs);
  align-items: center;
}

/* ==========================================================================
   USER SECURITY - COMPLETE
   ========================================================================== */
.ultraguard-user-security {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-user-security-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-user-security-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-user-security-stats {
  display: flex;
  gap: var(--ug-spacing-lg);
  align-items: center;
}

.ultraguard-user-security-stat {
  text-align: center;
}

.ultraguard-user-security-stat-value {
  font-size: var(--ug-font-size-xl);
  font-weight: 700;
  color: var(--ug-dark);
  margin-bottom: 4px;
}

.ultraguard-user-security-stat-label {
  font-size: var(--ug-font-size-xs);
  color: var(--ug-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ultraguard-user-security-list {
  display: flex;
  flex-direction: column;
  gap: var(--ug-spacing-sm);
}

.ultraguard-user-security-item {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  padding: var(--ug-spacing-md);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-user-security-item:hover {
  background: var(--ug-bg-tertiary);
}

.ultraguard-user-security-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ug-bg-tertiary);
  border-radius: var(--ug-radius-round);
  flex-shrink: 0;
}

.ultraguard-user-security-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: var(--ug-primary);
}

.ultraguard-user-security-content {
  flex: 1;
  min-width: 0;
}

.ultraguard-user-security-name {
  margin: 0 0 var(--ug-spacing-xs) 0;
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-user-security-details {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
}

.ultraguard-user-security-role {
  background: var(--ug-bg-tertiary);
  padding: 2px 6px;
  border-radius: 10px;
}

.ultraguard-user-security-last-login {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ultraguard-user-security-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: var(--ug-font-size-xs);
  font-weight: 700;
}

.ultraguard-user-security-status.secure {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-user-security-status.risk {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-user-security-status.critical {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-user-security-actions {
  display: flex;
  gap: var(--ug-spacing-xs);
  align-items: center;
}

/* ==========================================================================
   SECURITY ACTIVITY FEED - COMPLETE
   ========================================================================== */
.ultraguard-activity-feed {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-md);
}

.ultraguard-activity-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-activity-filter {
  display: flex;
  gap: var(--ug-spacing-sm);
  align-items: center;
}

.ultraguard-activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ug-spacing-md);
  padding: var(--ug-spacing-md);
  border-bottom: 1px solid var(--ug-border);
  transition: all var(--ug-transition-base);
}

.ultraguard-activity-item:hover {
  background: var(--ug-bg-secondary);
}

.ultraguard-activity-item:last-child {
  border-bottom: none;
}

.ultraguard-activity-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ug-bg-tertiary);
  border-radius: var(--ug-radius-round);
  flex-shrink: 0;
}

.ultraguard-activity-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.ultraguard-activity-icon.security {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-activity-icon.warning {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-activity-icon.critical {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-activity-icon.info {
  background: rgba(2, 119, 189, 0.1);
  color: var(--ug-info);
}

.ultraguard-activity-content {
  flex: 1;
  min-width: 0;
}

.ultraguard-activity-title {
  margin: 0 0 var(--ug-spacing-xs) 0;
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-activity-description {
  margin: 0 0 var(--ug-spacing-sm) 0;
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  line-height: var(--ug-line-height-normal);
}

.ultraguard-activity-meta {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  font-size: var(--ug-font-size-xs);
  color: var(--ug-gray-light);
}

.ultraguard-activity-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ultraguard-activity-ip {
  font-family: var(--ug-font-mono);
  background: var(--ug-bg-tertiary);
  padding: 2px 6px;
  border-radius: 10px;
}

/* ==========================================================================
   SECURITY BADGES & INDICATORS - COMPLETE
   ========================================================================== */
.ultraguard-threat-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: var(--ug-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ultraguard-threat-critical {
  background: rgba(220, 38, 38, 0.1);
  color: var(--ug-critical);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.ultraguard-threat-high {
  background: rgba(234, 88, 12, 0.1);
  color: var(--ug-high);
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.ultraguard-threat-medium {
  background: rgba(217, 119, 6, 0.1);
  color: var(--ug-medium);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.ultraguard-threat-low {
  background: rgba(101, 163, 13, 0.1);
  color: var(--ug-low);
  border: 1px solid rgba(101, 163, 13, 0.3);
}

.ultraguard-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: var(--ug-font-size-xs);
  font-weight: 700;
  line-height: 1;
}

.ultraguard-status-secure {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-status-vulnerable {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-status-compromised {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

/* ==========================================================================
   SECURITY SCAN PROGRESS - COMPLETE
   ========================================================================== */
.ultraguard-scan-progress {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-scan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-md);
}

.ultraguard-scan-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-scan-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--ug-font-size-sm);
  font-weight: 600;
}

.ultraguard-scan-status.scanning {
  color: var(--ug-primary);
}

.ultraguard-scan-status.completed {
  color: var(--ug-success);
}

.ultraguard-scan-status.failed {
  color: var(--ug-error);
}

.ultraguard-scan-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--ug-spacing-md);
  margin-top: var(--ug-spacing-lg);
}

.ultraguard-scan-detail {
  text-align: center;
  padding: var(--ug-spacing-md);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
}

.ultraguard-scan-detail-value {
  font-size: var(--ug-font-size-xl);
  font-weight: 700;
  color: var(--ug-dark);
  margin-bottom: 4px;
}

.ultraguard-scan-detail-label {
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
}

/* ==========================================================================
   SECURITY RECOMMENDATIONS - COMPLETE
   ========================================================================== */
.ultraguard-recommendations {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-recommendations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-md);
}

.ultraguard-recommendations-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-recommendations-count {
  background: var(--ug-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: var(--ug-font-size-xs);
  font-weight: 700;
}

.ultraguard-recommendation-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ug-spacing-md);
  padding: var(--ug-spacing-md);
  border-bottom: 1px solid var(--ug-border);
  transition: all var(--ug-transition-base);
}

.ultraguard-recommendation-item:hover {
  background: var(--ug-bg-secondary);
}

.ultraguard-recommendation-item:last-child {
  border-bottom: none;
}

.ultraguard-recommendation-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ug-bg-tertiary);
  border-radius: var(--ug-radius-round);
  flex-shrink: 0;
}

.ultraguard-recommendation-icon .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: var(--ug-primary);
}

.ultraguard-recommendation-content {
  flex: 1;
  min-width: 0;
}

.ultraguard-recommendation-title {
  margin: 0 0 var(--ug-spacing-xs) 0;
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-recommendation-description {
  margin: 0 0 var(--ug-spacing-sm) 0;
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  line-height: var(--ug-line-height-normal);
}

.ultraguard-recommendation-actions {
  display: flex;
  gap: var(--ug-spacing-sm);
  align-items: center;
}

/* ==========================================================================
   SECURITY QUICK ACTIONS - COMPLETE
   ========================================================================== */
.ultraguard-quick-actions {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--ug-spacing-md);
}

.ultraguard-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--ug-spacing-lg);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-md);
  transition: all var(--ug-transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

.ultraguard-quick-action:hover {
  box-shadow: var(--ug-shadow-md);
  border-color: var(--ug-primary-light);
  background: var(--ug-bg-primary);
}

.ultraguard-quick-action-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ug-gradient-primary);
  color: #fff;
  border-radius: var(--ug-radius-round);
  margin-bottom: var(--ug-spacing-md);
  font-size: 28px;
}

.ultraguard-quick-action-icon .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
}

.ultraguard-quick-action-title {
  margin: 0 0 var(--ug-spacing-xs) 0;
  font-size: var(--ug-font-size-md);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-quick-action-description {
  margin: 0;
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  line-height: var(--ug-line-height-normal);
}

/* ==========================================================================
   SECURITY DASHBOARD WIDGETS - COMPLETE
   ========================================================================== */
.ultraguard-dashboard-widget {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
  transition: all var(--ug-transition-base);
}

.ultraguard-dashboard-widget:hover {
  box-shadow: var(--ug-shadow-md);
  /* transform removed for scroll perf */
}

.ultraguard-dashboard-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--ug-spacing-md);
}

.ultraguard-dashboard-widget-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-sm);
}

.ultraguard-dashboard-widget-title .dashicons {
  color: var(--ug-primary);
}

.ultraguard-dashboard-widget-actions {
  display: flex;
  gap: var(--ug-spacing-xs);
  align-items: center;
}

.ultraguard-dashboard-widget-content {
  margin-bottom: var(--ug-spacing-md);
}

.ultraguard-dashboard-widget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--ug-spacing-md);
  border-top: 1px solid var(--ug-border);
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
}

/* ==========================================================================
   SECURITY OVERVIEW STATS - COMPLETE
   ========================================================================== */
.ultraguard-overview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--ug-spacing-md);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-overview-stat {
  text-align: center;
  padding: var(--ug-spacing-lg);
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  transition: all var(--ug-transition-base);
}

.ultraguard-overview-stat:hover {
  box-shadow: var(--ug-shadow-md);
}

.ultraguard-overview-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--ug-spacing-md) auto;
  border-radius: var(--ug-radius-md);
  font-size: 24px;
}

.ultraguard-overview-stat-icon.secure {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-overview-stat-icon.warning {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-overview-stat-icon.critical {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-overview-stat-icon.info {
  background: rgba(2, 119, 189, 0.1);
  color: var(--ug-info);
}

.ultraguard-overview-stat-value {
  font-size: var(--ug-font-size-xxl);
  font-weight: 700;
  color: var(--ug-dark);
  margin-bottom: var(--ug-spacing-xs);
  line-height: 1;
}

.ultraguard-overview-stat-label {
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
}

/* ==========================================================================
   SECURITY SCAN RESULTS - COMPLETE
   ========================================================================== */
.ultraguard-scan-results {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-scan-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-md);
}

.ultraguard-scan-results-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-scan-results-status {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-sm);
}

.ultraguard-scan-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--ug-spacing-sm);
}

.ultraguard-scan-result-item {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-md);
  padding: var(--ug-spacing-md);
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-scan-result-item:hover {
  background: var(--ug-bg-tertiary);
}

.ultraguard-scan-result-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ug-radius-round);
  flex-shrink: 0;
}

.ultraguard-scan-result-icon.passed {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

.ultraguard-scan-result-icon.failed {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-scan-result-icon.warning {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-scan-result-icon.info {
  background: rgba(2, 119, 189, 0.1);
  color: var(--ug-info);
}

/* ==========================================================================
   SECURITY SETTINGS PANEL - COMPLETE
   ========================================================================== */
.ultraguard-settings-panel {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-lg);
  padding-bottom: var(--ug-spacing-md);
  border-bottom: 2px solid var(--ug-bg-tertiary);
}

.ultraguard-settings-title {
  margin: 0;
  font-size: var(--ug-font-size-xl);
  font-weight: 700;
  color: var(--ug-dark);
}

.ultraguard-settings-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--ug-spacing-xl);
  min-height: 400px;
}

.ultraguard-settings-sidebar {
  border-right: 1px solid var(--ug-border);
  padding-right: var(--ug-spacing-lg);
}

.ultraguard-settings-nav {
  display: flex;
  flex-direction: column;
  gap: var(--ug-spacing-xs);
}

.ultraguard-settings-nav-link {
  display: flex;
  align-items: center;
  gap: var(--ug-spacing-sm);
  padding: var(--ug-spacing-sm) var(--ug-spacing-md);
  color: var(--ug-gray);
  text-decoration: none;
  border-radius: var(--ug-radius-sm);
  transition: all var(--ug-transition-base);
}

.ultraguard-settings-nav-link:hover {
  background: var(--ug-bg-secondary);
  color: var(--ug-primary);
}

.ultraguard-settings-nav-link.active {
  background: var(--ug-bg-secondary);
  color: var(--ug-primary);
  font-weight: 600;
  border-left: 3px solid var(--ug-primary);
}

.ultraguard-settings-main {
  overflow-y: auto;
  max-height: 500px;
}

/* ==========================================================================
   SECURITY LOGS VIEWER - COMPLETE
   ========================================================================== */
.ultraguard-logs-viewer {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
  max-height: 600px;
  display: flex;
  flex-direction: column;
}

.ultraguard-logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-md);
  flex-shrink: 0;
}

.ultraguard-logs-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-logs-content {
  flex: 1;
  overflow-y: auto;
  background: var(--ug-bg-secondary);
  border-radius: var(--ug-radius-sm);
  padding: var(--ug-spacing-md);
  font-family: var(--ug-font-mono);
  font-size: var(--ug-font-size-sm);
  line-height: var(--ug-line-height-relaxed);
}

.ultraguard-log-entry {
  padding: var(--ug-spacing-xs) 0;
  border-bottom: 1px solid var(--ug-bg-tertiary);
}

.ultraguard-log-time {
  color: var(--ug-gray);
  margin-right: var(--ug-spacing-sm);
}

.ultraguard-log-level {
  font-weight: 700;
  margin-right: var(--ug-spacing-sm);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: var(--ug-font-size-xs);
  text-transform: uppercase;
}

.ultraguard-log-level.info {
  background: rgba(2, 119, 189, 0.1);
  color: var(--ug-info);
}

.ultraguard-log-level.warning {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-log-level.error {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-log-level.critical {
  background: rgba(220, 38, 38, 0.1);
  color: var(--ug-critical);
}

/* ==========================================================================
   SECURITY REPORTS - COMPLETE
   ========================================================================== */
.ultraguard-reports {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-reports-title {
  margin: 0;
  font-size: var(--ug-font-size-lg);
  font-weight: 600;
  color: var(--ug-dark);
}

.ultraguard-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--ug-spacing-lg);
}

.ultraguard-report-card {
  background: var(--ug-bg-secondary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  transition: all var(--ug-transition-base);
}

.ultraguard-report-card:hover {
  box-shadow: var(--ug-shadow-md);
  background: var(--ug-bg-primary);
}

/* ==========================================================================
   SECURITY NOTIFICATIONS - COMPLETE
   ========================================================================== */
.ultraguard-notifications {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-notification-item.unread {
  background: rgba(13, 71, 161, 0.05);
  border-left: 3px solid var(--ug-primary);
}

.ultraguard-notification-icon.info {
  background: rgba(2, 119, 189, 0.1);
  color: var(--ug-info);
}

.ultraguard-notification-icon.warning {
  background: rgba(245, 124, 0, 0.1);
  color: var(--ug-warning);
}

.ultraguard-notification-icon.critical {
  background: rgba(198, 40, 40, 0.1);
  color: var(--ug-error);
}

.ultraguard-notification-icon.success {
  background: rgba(46, 125, 50, 0.1);
  color: var(--ug-success);
}

/* ==========================================================================
   SECURITY BACKUP STATUS - COMPLETE
   ========================================================================== */
.ultraguard-backup-status {
  background: var(--ug-bg-primary);
  border: 1px solid var(--ug-border);
  border-radius: var(--ug-radius-md);
  padding: var(--ug-spacing-lg);
  margin-bottom: var(--ug-spacing-lg);
}

.ultraguard-backup-status-indicator.healthy {
  color: var(--ug-success);
}

.ultraguard-backup-status-indicator.warning {
  color: var(--ug-warning);
}

.ultraguard-backup-status-indicator.critical {
  color: var(--ug-error);
}

/* ==========================================================================
   SECURITY FILE DETAILS - COMPLETE
   ========================================================================== */
.ultraguard-file-details-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ultraguard-details-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #dee2e6;
}

.ultraguard-details-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
  color: #495057;
}

.ultraguard-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.ultraguard-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ultraguard-info-label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.9em;
}

.ultraguard-info-value {
  color: #212529;
  word-break: break-all;
}

.ultraguard-detailed-info {
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

.ultraguard-detailed-info h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.ultraguard-details-content pre {
  margin: 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
  max-height: 200px;
  overflow: auto;
  font-size: 12px;
}

.ultraguard-code-snippet {
  background: #282c34;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}

.ultraguard-code-header {
  background: #21252b;
  padding: 8px 15px;
  color: #abb2bf;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  border-bottom: 1px solid #3e4451;
}

.ultraguard-code-content {
  padding: 15px;
  max-height: 300px;
  overflow: auto;
}

.ultraguard-code-content pre {
  margin: 0;
  color: #abb2bf;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
}

.ultraguard-code-footer {
  padding: 8px 15px;
  background: #21252b;
  color: #5c6370;
  font-size: 11px;
  border-top: 1px solid #3e4451;
}
/* ==========================================================================
   MODULE MANAGER — Card-based layout
   ========================================================================== */

/* Section wrapper */
.ug-module-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Search bar ──────────────────────────────────────────────────────────── */
.ug-module-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--ug-bg-secondary);
  border-bottom: 1px solid var(--ug-border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.ug-module-search-icon {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: var(--ug-gray-light);
  flex-shrink: 0;
}

.ug-module-search-input {
  flex: 1;
  height: 34px;
  padding: 0 12px;
  border: 1.5px solid var(--ug-border);
  border-radius: var(--ug-radius-sm);
  background: var(--ug-bg-primary);
  color: var(--ug-dark);
  font-size: var(--ug-font-size-md);
  font-family: var(--ug-font-family);
  outline: none;
  transition: border-color var(--ug-transition-base), box-shadow var(--ug-transition-base);
  max-width: 360px;
}

.ug-module-search-input::placeholder {
  color: var(--ug-gray-lighter);
}

.ug-module-search-input:focus {
  border-color: var(--ug-primary);
  box-shadow: var(--ug-shadow-focus);
}

.ug-module-count {
  margin-left: auto;
  font-size: var(--ug-font-size-sm);
  color: var(--ug-gray);
  white-space: nowrap;
  font-weight: 500;
}

/* ── Module list ─────────────────────────────────────────────────────────── */
.ug-module-list {
  display: flex;
  flex-direction: column;
}

/* ── Individual module card ──────────────────────────────────────────────── */
.ug-module-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ug-border);
  background: var(--ug-bg-primary);
  transition: background var(--ug-transition-base);
  position: relative;
}

.ug-module-card:last-child {
  border-bottom: none;
}

.ug-module-card:hover {
  background: var(--ug-bg-secondary);
}

/* Active/inactive left accent stripe */
.ug-module-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: transparent;
  transition: background var(--ug-transition-base);
}

.ug-module-card--active::before  { background: var(--ug-success); }
.ug-module-card--inactive::before { background: var(--ug-gray-lighter); }
.ug-module-card--error::before   { background: var(--ug-warning); }

/* ── Icon wrap ───────────────────────────────────────────────────────────── */
.ug-module-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ug-gradient-primary);
  border-radius: var(--ug-radius-md);
  box-shadow: var(--ug-shadow-sm);
  flex-shrink: 0;
}

.ug-module-card--inactive .ug-module-icon-wrap {
  background: var(--ug-bg-tertiary);
  box-shadow: none;
}

.ug-module-icon {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #fff;
}

.ug-module-card--inactive .ug-module-icon {
  color: var(--ug-gray-light);
}

/* ── Body (name + desc) ──────────────────────────────────────────────────── */
.ug-module-body {
  flex: 1;
  min-width: 0;
}

.ug-module-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.ug-module-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ug-dark);
  white-space: nowrap;
}

.ug-module-card--inactive .ug-module-name {
  color: var(--ug-gray);
}

/* Inline tags (version, type) */
.ug-module-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--ug-radius-round);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.4;
  white-space: nowrap;
}

.ug-module-tag--version {
  background: var(--ug-bg-tertiary);
  color: var(--ug-gray);
}

.ug-module-tag--feature {
  background: rgba(14,165,233,.1);
  color: var(--ug-primary);
}

.ug-module-tag--core {
  background: rgba(100,116,139,.1);
  color: var(--ug-gray);
}

.ug-module-tag--third-party {
  background: rgba(245,158,11,.1);
  color: var(--ug-warning-dark, #b45309);
}

/* Status pill */
.ug-module-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--ug-radius-round);
}

.ug-module-status--active {
  background: rgba(16,185,129,.1);
  color: var(--ug-success-dark, #059669);
}

.ug-module-status--inactive {
  background: var(--ug-bg-tertiary);
  color: var(--ug-gray);
}

.ug-module-status--error {
  background: rgba(245,158,11,.1);
  color: var(--ug-warning-dark, #b45309);
}

.ug-module-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ug-module-status--active   .ug-module-status-dot { background: var(--ug-success); }
.ug-module-status--inactive .ug-module-status-dot { background: var(--ug-gray-lighter); }
.ug-module-status--error    .ug-module-status-dot { background: var(--ug-warning); }

/* Description text */
.ug-module-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ug-gray);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

/* ── Actions (right side) ────────────────────────────────────────────────── */
.ug-module-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ug-module-btn {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.ug-module-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* Core badge (non-toggleable) */
.ug-module-core-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--ug-radius-round);
  background: var(--ug-bg-tertiary);
  color: var(--ug-gray);
  font-size: 12px;
  font-weight: 600;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.ug-module-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--ug-gray);
  gap: 12px;
}

.ug-module-empty .dashicons {
  font-size: 40px;
  width: 40px;
  height: 40px;
  color: var(--ug-gray-lighter);
}

.ug-module-empty p {
  margin: 0;
  font-size: 14px;
  max-width: 360px;
  line-height: 1.6;
}

/* ── Upload zone ─────────────────────────────────────────────────────────── */
.ug-upload-wrapper {
  padding: 8px 0;
}

.ug-drop-zone {
  border: 2px dashed var(--ug-border);
  border-radius: var(--ug-radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ug-transition-base), background var(--ug-transition-base);
  background: var(--ug-bg-secondary);
}

.ug-drop-zone:hover,
.ug-drop-zone--over {
  border-color: var(--ug-primary);
  background: rgba(14,165,233,.04);
}

.ug-drop-icon {
  font-size: 44px;
  width: 44px;
  height: 44px;
  color: var(--ug-primary);
  display: block;
  margin: 0 auto 12px;
}

.ug-drop-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ug-dark);
}

.ug-drop-hint {
  margin: 0;
  font-size: 12px;
  color: var(--ug-gray);
}

.ug-upload-progress {
  margin-top: 16px;
}

.ug-upload-track {
  height: 6px;
  background: var(--ug-bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.ug-upload-fill {
  height: 100%;
  width: 0;
  background: var(--ug-gradient-primary);
  border-radius: 3px;
  transition: width .3s ease;
}

.ug-upload-status-text {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ug-gray);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
/* ==========================================================================
   MODULE MANAGER — License-aware states & upgrade CTA
   ========================================================================== */

/* ── Pro-locked card ─────────────────────────────────────────────────────── */
.ug-module-card--locked {
  opacity: 0.82;
  background: var(--ug-bg-secondary);
}

.ug-module-card--locked::before {
  background: #f59e0b; /* amber — "locked / upgrade required" */
}

.ug-module-card--locked:hover {
  background: #fffbeb;
}

/* ── Icon wrap colour variants ───────────────────────────────────────────── */
.ug-module-icon-wrap--locked {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.ug-module-icon-wrap--error {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

/* ── Pro tag badges ──────────────────────────────────────────────────────── */
.ug-module-tag--pro-active {
  background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(99,102,241,.12));
  color: #4f46e5;
  border: 1px solid rgba(79,70,229,.2);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ug-module-tag--pro-active .dashicons {
  font-size: 11px;
  width: 11px;
  height: 11px;
  color: #f59e0b;
}

.ug-module-tag--pro-locked {
  background: rgba(245,158,11,.12);
  color: #b45309;
  border: 1px solid rgba(245,158,11,.2);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.ug-module-tag--pro-locked .dashicons {
  font-size: 11px;
  width: 11px;
  height: 11px;
}

/* ── Upgrade CTA button ──────────────────────────────────────────────────── */
.ug-module-btn--upgrade {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #d97706;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 4px rgba(245,158,11,.35);
  transition: background var(--ug-transition-base), box-shadow var(--ug-transition-base), transform var(--ug-transition-fast);
}

.ug-module-btn--upgrade:hover,
.ug-module-btn--upgrade:focus {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245,158,11,.5);
  transform: translateY(-1px);
}

.ug-module-btn--upgrade:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(245,158,11,.3);
}

.ug-module-btn--upgrade .dashicons {
  color: #fff;
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.ug-module-upgrade-notice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 14px;
  box-sizing: border-box;
}

.ug-module-upgrade-notice__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ug-module-upgrade-notice__icon .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
  color: #d97706;
}

.ug-module-upgrade-notice__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ug-module-upgrade-notice__title {
  display: block;
  margin: 0;
  font-size: 13px;
  color: #92400e;
}

.ug-module-upgrade-notice__text {
  display: block;
  font-size: 13px;
  color: #78350f;
}

.ug-module-upgrade-notice__action {
  flex: 0 0 auto;
  margin-left: auto;
}

/* ==========================================================================
   JS-GENERATED STATE CLASSES
   Added dynamically by ultraguard-realtime.js and module JS files.
   Must be defined here so they render correctly when toggled.
   ========================================================================== */

/* ── Scan phase steps (realtime.js: .ug-phase-pending/active/done) ─────────── */
.ug-phase-pending {
  opacity: 0.45;
  color: var(--ug-gray);
}

.ug-phase-active {
  color: var(--ug-primary);
  font-weight: 600;
}

.ug-phase-active::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ug-primary);
  border-radius: 50%;
  margin-right: 6px;
  animation: ug-pulse-dot 1s ease-in-out infinite;
  vertical-align: middle;
}

.ug-phase-done {
  color: var(--ug-success);
}

.ug-phase-done::before {
  content: '✓';
  margin-right: 6px;
  font-weight: 700;
}

@keyframes ug-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ── Threat detected counter (antivirus-page.js) ────────────────────────────── */
.ug-threat-detected {
  color: var(--ug-error) !important;
  font-weight: 700;
}

/* ── Stat card warning state (realtime.js adds .warning to stat cards) ────────── */
.ultraguard-stat-card.warning,
.ultraguard-card.warning {
  border-left: 3px solid var(--ug-warning);
}

/* ==========================================================================
   RESPONSIVE — Mobile & Tablet
   Breakpoints: 1024px (tablet), 782px (mobile), 480px (small phone)
   ========================================================================== */

/* ── Security score widget ───────────────────────────────────────────────── */
/* ── Vulnerability scanner ───────────────────────────────────────────────── */
/* ── Threat heatmap ──────────────────────────────────────────────────────── */
/* ── Login monitor ───────────────────────────────────────────────────────── */
/* ── Module manager cards ────────────────────────────────────────────────── */
/* ── Drop zone upload ────────────────────────────────────────────────────── */
/* ── Hardening / compliance checklist ───────────────────────────────────── */
/* ── File integrity / filechecker ───────────────────────────────────────── */
/* ── IP intel / block list ───────────────────────────────────────────────── */
/* ── Stat row / counter cards ────────────────────────────────────────────── */
/* ── General security widget action bars ─────────────────────────────────── */

/* ── Responsive breakpoints (consolidated) ──────────────────────────── */

@media screen and (max-width: 1024px) {
.ultraguard-heatmap-calendar-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .ultraguard-heatmap-grid {
    min-width: 520px;
  }
}

@media (max-width: 900px) {
.ug-module-card { flex-wrap: wrap; }
  .ug-module-desc { max-width: 100%; white-space: normal; }
  .ug-module-actions { width: 100%; justify-content: flex-end; padding-top: 8px; }
  .ug-module-upgrade-notice {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .ug-module-upgrade-notice__action {
    width: 100%;
    margin-left: 0;
  }
}

@media screen and (max-width: 782px) {
.ultraguard-security-score {
    padding: var(--ug-spacing-md);
  }

  .ultraguard-security-gauge {
    width: 140px !important;
    height: 140px !important;
  }

  .ultraguard-security-score-number {
    font-size: 26px;
  }

  .ultraguard-security-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .ultraguard-security-category {
    padding: 8px 6px;
  }

  .ultraguard-category-name {
    font-size: 10px;
  }
.ultraguard-vulnerability-severities {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ultraguard-vulnerability-severity {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .ultraguard-vulnerability-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .ultraguard-vulnerability-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ultraguard-vulnerability-actions .ultraguard-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .ultraguard-vulnerability-item {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .ultraguard-vulnerability-fix {
    width: 100%;
  }
.ultraguard-threat-heatmap-stats {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ultraguard-threat-stat {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  .ultraguard-heatmap-smart-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
.ultraguard-login-stats {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ultraguard-login-stat {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 10px 12px;
  }

  .ultraguard-login-stat-value {
    font-size: 20px;
  }

  .ultraguard-login-item {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .ultraguard-login-details {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
  }
.ug-module-card {
    flex-wrap: wrap;
    padding: 12px;
    gap: 10px;
  }

  .ug-module-desc {
    max-width: 100%;
    white-space: normal;
    font-size: 12px;
  }

  .ug-module-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ug-module-actions .ultraguard-button {
    flex: 1 1 auto;
    justify-content: center;
  }
.ug-drop-zone {
    padding: 24px 16px;
    border-radius: var(--ug-radius-md);
  }

  .ug-drop-icon {
    font-size: 32px;
    width: 32px;
    height: 32px;
  }

  .ug-drop-title {
    font-size: 14px;
  }
.ultraguard-hardening-item,
  .ultraguard-check-item {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 12px 0;
  }

  .ultraguard-hardening-actions,
  .ultraguard-check-actions {
    width: 100%;
  }

  .ultraguard-hardening-actions .ultraguard-button,
  .ultraguard-check-actions .ultraguard-button {
    width: 100%;
    justify-content: center;
  }
.ultraguard-file-item {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .ultraguard-file-path {
    font-size: 11px;
    word-break: break-all;
    max-width: 100%;
  }

  .ultraguard-file-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ultraguard-file-actions .ultraguard-button {
    flex: 1 1 auto;
    justify-content: center;
  }
.ultraguard-ip-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .ultraguard-ip-address {
    font-size: 12px;
    font-family: monospace;
    word-break: break-all;
  }
.ultraguard-stats-row,
  .ultraguard-counter-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
.ultraguard-widget-actions,
  .ultraguard-security-actions {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .ultraguard-widget-actions .ultraguard-button,
  .ultraguard-security-actions .ultraguard-button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 600px) {
.ug-module-card { padding: 14px; gap: 12px; }
  .ug-module-icon-wrap { width: 44px; height: 44px; }
  .ug-module-icon { font-size: 20px; width: 20px; height: 20px; }
}

@media screen and (max-width: 480px) {
.ultraguard-security-categories {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 400px) {
.ultraguard-stats-row,
  .ultraguard-counter-row {
    grid-template-columns: 1fr;
  }
}
