body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #12101c !important;
    -webkit-font-smoothing: antialiased;
}

.logo-img {
    border-radius: 4px;
    object-fit: contain;
}

.logo-text {
    letter-spacing: -0.01em;
}

.nav-accent-bar {
    width: 2px;
    height: 18px;
    background: #9b59b6;
    border-radius: 1px;
}

.connection-indicator {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(111, 3, 252, 0.6);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5c5878;
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.status-dot.connected {
    background: #27ae60;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(39, 174, 96, 0.6);
    }

    50% {
        box-shadow: 0 0 16px rgba(39, 174, 96, 0.3);
    }
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: transform 0.15s ease;
}

.form-select:focus,
.form-control:focus {
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, .2) !important;
    outline: none !important;
}

.stat-purple {
    color: #c084fc;
}

.stat-white {
    color: #e8e6f0;
}

.stat-red {
    color: #e74c3c;
}

.stat-yellow {
    color: #f39c12;
}

.traffic-table {
    font-size: 0.8rem;
    --bs-table-bg: #1b1930;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
    table-layout: fixed;
    width: 100%;
}

.traffic-table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    background: #1e1c34 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

.traffic-table td {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    border-bottom-color: rgba(255, 255, 255, 0.03) !important;
    vertical-align: middle;

}

.traffic-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.traffic-table tbody tr {
    animation: fadeRow 0.25s ease-out;
}

.traffic-table tbody tr.ddos-row {
    --bs-table-bg: rgba(192, 57, 43, 0.08);
}

@keyframes fadeRow {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.badge-ddos {
    background: rgba(231, 76, 60, 0.15) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.3);
    font-weight: 600;
}

.badge-benign {
    background: rgba(39, 174, 96, 0.12) !important;
    color: #27ae60 !important;
    border: 1px solid rgba(39, 174, 96, 0.25);
    font-weight: 600;
}

.btn-block-ip {
    background: #b83b3b;
    color: #fff;
    border: none;
}

.btn-block-ip:hover:not(:disabled) {
    background: #d04444;
    color: #fff;
}

.btn-block-ip:disabled {
    background: #b83b3b;
    color: #fff;
}

.btn-rate-limit {
    background: #8b3a3a;
    color: #fff;
    border: none;
}

.btn-rate-limit:hover:not(:disabled) {
    background: #a04545;
    color: #fff;
}

.btn-rate-limit:disabled {
    background: #8b3a3a;
    color: #fff;
}

.disabled-fade:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.bottom-panel-body {
    max-height: 180px;
    overflow-y: auto;
    min-height: 80px;
}

.alerts-body {
    max-height: 130px;
    overflow-y: auto;
    min-height: 60px;
}

.ip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #9a96b0;
    animation: fadeRow 0.2s ease-out;
}

.ip-item:last-child {
    border-bottom: none;
}

.ip-rate {
    font-size: 0.7rem;
    color: #f39c12;
    font-family: 'Inter', sans-serif;
    margin-left: 0.5rem;
}

.btn-unblock {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #5c5878;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-unblock:hover {
    border-color: #27ae60;
    color: #27ae60;
}

.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
    color: #9a96b0;
    cursor: pointer;
    transition: background 0.15s ease;
    animation: fadeRow 0.2s ease-out;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item.selected {
    background: rgba(155, 89, 182, 0.1);
    border-left: 2px solid #9b59b6;
}

.alert-item.selected::after {
    content: "\2713";
    color: #9b59b6;
    font-weight: 700;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.btn-block-all {
    background: #c0392b;
    color: #fff;
    border: none;
}

.btn-block-all:hover:not(:disabled) {
    background: #e74c3c;
    color: #fff;
}

.btn-block-all:disabled {
    background: #c0392b;
    color: #fff;
}

.alert-ip {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #e74c3c;
}

.alert-info {
    font-size: 0.7rem;
    color: #5c5878;
}

.alert-confidence {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e74c3c;
}

.empty-globe {
    color: #5c5878;
}

.custom-toast {
    background: #1b1930;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: #9a96b0;
    max-width: 340px;
    animation: toastIn 0.3s ease-out;
}

.custom-toast.toast-success {
    border-left: 3px solid #27ae60;
}

.custom-toast.toast-error {
    border-left: 3px solid #e74c3c;
}

.custom-toast.toast-warning {
    border-left: 3px solid #f39c12;
}

.custom-toast.toast-info {
    border-left: 3px solid #9b59b6;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
}