.threat-score-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(247, 37, 133, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.threat-score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-success), var(--accent-warning), var(--accent-danger));
}

.threat-score {
    font-size: 72px;
    font-weight: 700;
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 8px;
}

.threat-score.low { color: var(--accent-success); }
.threat-score.medium { color: var(--accent-warning); }
.threat-score.high { color: var(--accent-danger); }

.threat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.firewall-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.firewall-status .status-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.firewall-status .status-icon.online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}

.firewall-status .status-icon.offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.metric-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.metric-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.metric-bar-fill.success { background: var(--accent-success); }
.metric-bar-fill.warning { background: var(--accent-warning); }
.metric-bar-fill.danger { background: var(--accent-danger); }

.log-entry {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.log-entry:hover {
    background: var(--bg-hover);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.log-icon.deny { background: rgba(239, 68, 68, 0.15); color: var(--accent-danger); }
.log-icon.allow { background: rgba(16, 185, 129, 0.15); color: var(--accent-success); }
.log-icon.threat { background: rgba(247, 37, 133, 0.15); color: #f72585; }
.log-icon.vpn { background: rgba(123, 97, 255, 0.15); color: var(--accent-secondary); }
.log-icon.web { background: rgba(251, 191, 36, 0.15); color: var(--accent-warning); }

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

.log-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    margin-top: 2px;
}

.blocked-ip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.blocked-ip-item:last-child {
    border-bottom: none;
}

.ip-address {
    font-family: var(--font-mono);
    font-weight: 500;
}

.block-count {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.tab {
    padding: 10px 20px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: var(--bg-card);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.chart-container {
    position: relative;
    height: 250px;
}

.interface-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.interface-row:last-child {
    border-bottom: none;
}

.interface-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.interface-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.interface-status.up { background: var(--accent-success); }
.interface-status.down { background: var(--accent-danger); }

.interface-traffic {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.syslog-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.syslog-status.running .indicator {
    background: var(--accent-success);
    animation: pulse 2s infinite;
}

.syslog-status.stopped .indicator {
    background: var(--accent-danger);
}

.syslog-status .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Live Threat Feed - Enhanced */
.live-feed-container {
    max-height: 500px;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, rgba(10, 14, 23, 0.95) 100%);
    border-radius: var(--radius-md);
    position: relative;
}

.live-feed-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, var(--bg-tertiary), transparent);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.live-feed-container:not(:empty)::before {
    opacity: 1;
}

/* Feed Search Bar */
.feed-search {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.feed-search input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
}

.feed-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Severity Highlight Badges */
.severity-badge {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.severity-badge.critical {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: badgePulse 1.5s infinite;
}

.severity-badge.high {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.severity-badge.medium {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Enhanced Feed Item with Severity Glow */
.feed-item.critical {
    border-left: 4px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, transparent 50%);
    animation: criticalGlow 2s infinite;
}

@keyframes criticalGlow {
    0%, 100% { box-shadow: inset 0 0 20px rgba(239, 68, 68, 0); }
    50% { box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.1); }
}

/* IP Address Highlighting */
.ip-highlight {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 3px;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.ip-highlight:hover {
    background: rgba(0, 245, 212, 0.2);
}

.ip-highlight.malicious {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Country Flag */
.country-flag {
    font-size: 14px;
    margin-right: 4px;
}

/* Feed Actions */
.feed-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.feed-item:hover .feed-actions {
    opacity: 1;
}

.feed-action-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
}

.feed-action-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--accent-success);
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.feed-item {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: feedSlideIn 0.3s ease;
    transition: background 0.2s;
}

.feed-item:hover {
    background: var(--bg-hover);
}

.feed-item.threat {
    border-left: 3px solid #f72585;
}

.feed-item.blocked {
    border-left: 3px solid var(--accent-danger);
}

@keyframes feedSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.feed-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

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

.feed-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

.feed-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.feed-time {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Geo Map */
#threat-map {
    height: 300px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.leaflet-container {
    background: var(--bg-tertiary);
}

.geo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.geo-stat-item {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
}

.geo-stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.geo-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tab Pills */
.tab-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-pill:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.tab-pill.active {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(123, 97, 255, 0.15));
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.tab-pill .count {
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-size: 11px;
}

/* Sound toggle */
.sound-toggle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sound-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.sound-toggle.active {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Report button */
.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-secondary), #f72585);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 97, 255, 0.3);
}

.form-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Feed Control Buttons */
.feed-control-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.feed-control-btn:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.feed-control-btn.active.start {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--accent-success);
    color: var(--accent-success);
}

.feed-control-btn.active.pause {
    background: rgba(251, 191, 36, 0.2);
    border-color: var(--accent-warning);
    color: var(--accent-warning);
}

.feed-control-btn.active.stop {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}

.feed-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Feed Status Indicator */
.feed-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 12px;
    border: 1px solid var(--border-color);
}

.feed-status-indicator .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.feed-status-indicator.running .status-dot {
    background: var(--accent-success);
    animation: feedPulse 1.5s infinite;
}

.feed-status-indicator.paused .status-dot {
    background: var(--accent-warning);
}

.feed-status-indicator.stopped .status-dot {
    background: var(--accent-danger);
}

@keyframes feedPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Feed Control Group */
.feed-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.feed-controls-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

/* Action bar & layout (Ağ Güvenliği) */
.firewall-action-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.firewall-action-bar__pills {
    flex: 1 1 280px;
    min-width: 0;
}

.tab-pills--scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
    align-items: center;
}

@media (max-width: 640px) {
    .tab-pills--scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin: 0 -4px;
        padding-left: 4px;
    }
    .tab-pill {
        flex: 0 0 auto;
    }
}

.firewall-action-bar__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.firewall-hint {
    width: 100%;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

/* Top overview grid: stack on narrow screens */
.fw-grid-top {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .fw-grid-top {
        grid-template-columns: 1fr;
    }
}

.fw-grid-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
}

@media (max-width: 1200px) {
    .fw-grid-main {
        grid-template-columns: 1fr;
    }
}

/* Geo: attack sources list */
.attack-source-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s;
}

.attack-source-row:last-child {
    border-bottom: none;
}

.attack-source-row:hover {
    background: var(--bg-hover);
}

.attack-source-ip {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
}

.attack-source-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Empty states */
.firewall-empty-state {
    text-align: center;
    padding: 28px 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.firewall-empty-state i {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.45;
    display: block;
}

.feed-item.search-match {
    outline: 1px solid rgba(0, 245, 212, 0.35);
}