:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #1a1a1a;
    --bg-sidebar: #111111;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #262626;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --accent: #8b5cf6;
    /* Dashboard / enterprise design tokens */
    --bg-base: #0B0B0F;
    --card-bg: #111217;
    --card-elevated: #16161d;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --color-critical: #dc2626;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    --color-neutral: #6b7280;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-threat-glow: 0 0 20px rgba(220, 38, 38, 0.08);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --space-grid: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Professional Top Navigation Bar */
.navbar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 60px;
    max-width: none;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--text-primary);
    opacity: 0.8;
}

.navbar-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.navbar-brand:hover .navbar-logo {
    opacity: 0.8;
}

/* Navbar Mini Stats */
.navbar-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 14px 7px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.navbar-stat-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.navbar-stat-compact .stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1;
}

.navbar-stat-compact .stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.navbar-nav li {
    position: relative;
}

.navbar-nav a, .navbar-nav .nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    border: 1px solid transparent;
}

.navbar-nav a:hover, .navbar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .user-badge {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 500;
}

.navbar-nav .logout-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.navbar-nav .logout-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* Notification Bell */
.notification-bell-container {
    position: relative;
}

.notification-bell-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
    }
}

/* Notes Button */
.notes-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notes-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Notes Side Panel */
.notes-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
}

.notes-panel.active {
    right: 0;
}

.notes-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.notes-panel-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-close-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notes-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Notes List Section (Top) */
.notes-list-section {
    flex-shrink: 0;
    border-bottom: 2px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    max-height: 35vh;
    display: flex;
    flex-direction: column;
}

.notes-list-header {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.notes-list-header h4 {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-new-note {
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-new-note:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notes-list {
    overflow-y: auto;
    padding: 8px;
    max-height: calc(35vh - 45px);
}

.notes-list::-webkit-scrollbar {
    width: 6px;
}

.notes-list::-webkit-scrollbar-track {
    background: transparent;
}

.notes-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.notes-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.notes-list-empty p {
    margin: 0;
    font-size: 13px;
}

.note-item {
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.note-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
}

.note-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.note-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-item-preview {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.note-item-meta {
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Note Editor Section (Bottom) */
.notes-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

.notes-editor-header {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.note-title-input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.note-title-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.note-title-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.btn-delete-note {
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-delete-note:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: scale(1.05);
}

.notes-panel-body textarea {
    flex: 1;
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 16px;
    resize: none;
    transition: all 0.2s ease;
}

.notes-panel-body textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.notes-panel-body textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.notes-panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

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

.notes-save-status {
    font-size: 12px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.notes-save-status.unsaved {
    color: var(--text-secondary);
}

.notes-save-status.saving {
    color: #3b82f6;
}

.notes-char-count {
    font-size: 11px;
    color: var(--text-secondary);
}

.btn-save-notes {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-save-notes:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-save-notes:active {
    transform: translateY(0);
}

/* Notes Overlay */
.notes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notes-overlay.active {
    display: block;
    opacity: 1;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 600px;
    max-height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.notification-dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.btn-clear-notifications {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-clear-notifications:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.notification-dropdown-body {
    max-height: 500px;
    overflow-y: auto;
}

.notification-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.notification-empty i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

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

.notification-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.notification-item-title i {
    color: #3b82f6;
    font-size: 12px;
}

.notification-threat-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    line-height: 1.2;
}

.notification-threat-badge.threat-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notification-threat-badge.threat-high {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.notification-threat-badge.threat-medium {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.notification-threat-badge.threat-low {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.notification-item-body {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    transform: translateY(3.5px);
}

.notification-item-body p {
    margin: 0;
    color: var(--text-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    line-height: 1.3;
}

.notification-item-body p i {
    color: var(--danger);
    font-size: 11px;
}

.notification-item-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
    white-space: nowrap;
    align-items: center;
    line-height: 1.3;
}

.notification-item-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.3;
}

.notification-item-details i {
    opacity: 0.7;
    font-size: 10px;
}

.notification-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 0;
}

.btn-notification-action {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-notification-action:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-notification-dismiss {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-notification-dismiss:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Authentication Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(217, 70, 239, 0.2);
}

.auth-card h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
    text-shadow: 0 0 15px rgba(217, 70, 239, 0.4);
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

/* Professional Buttons - Minimal Design */
.btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.btn-primary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: transparent;
    border-color: var(--success);
    color: var(--success);
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.1);
}

.btn-danger {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-warning {
    background: transparent;
    border-color: var(--warning);
    color: var(--warning);
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.1);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Alerts */
/* Notification Container */
.notification-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Alert Notifications */
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    border-left: 3px solid;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.95);
    border-color: #10b981;
    color: white;
}

.alert-error {
    background: rgba(239, 68, 68, 0.95);
    border-color: #ef4444;
    color: white;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.95);
    border-color: #f59e0b;
    color: white;
}

.alert-info {
    background: rgba(59, 130, 246, 0.95);
    border-color: #3b82f6;
    color: white;
}

/* Dashboard - Full Screen Professional Layout (Enterprise) */
.dashboard {
    min-height: 100vh;
    background: var(--bg-base);
    padding-top: 60px;
}

.dashboard-sidebar {
    width: 220px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-subtle);
    padding: 0;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 40px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Animated Background Triangles */
.sidebar-logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(120deg, transparent 40%, rgba(59, 130, 246, 0.03) 50%, transparent 60%),
        linear-gradient(-120deg, transparent 40%, rgba(59, 130, 246, 0.03) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: triangleMove 8s ease-in-out infinite;
    z-index: 0;
}

/* Animated Particles */
.sidebar-logo::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(59, 130, 246, 0.4) 1px, transparent 1px),
        radial-gradient(circle, rgba(59, 130, 246, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(59, 130, 246, 0.2) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 100px 100px;
    background-position: 0 0, 40px 60px, 80px 20px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.6;
    z-index: 0;
}

@keyframes triangleMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%;
    }
    50% {
        background-position: 100% 100%, 0% 0%;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-100px) translateX(50px);
    }
}

.sidebar-logo img {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.sidebar-logo img:hover {
    transform: translateY(-8px) scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

.dashboard-main {
    margin-left: 220px;
    min-height: calc(100vh - 60px);
    background: var(--bg-base);
}

.dashboard-header {
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 40px 20px;
}

.dashboard-content {
    padding: 32px 40px 48px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.dashboard-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 15v30L30 60 0 45V15z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 60px 52px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.dashboard-content > * {
    position: relative;
    z-index: 1;
}

/* Dashboard layout: KPI strip → Charts → Tables */
.dashboard-kpi-strip {
    margin-bottom: 40px;
}

.dashboard-charts-section {
    margin-bottom: 40px;
}

.dashboard-tables-section {
    margin-top: 8px;
}

.dashboard-tables-section .data-table-section {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.dashboard-tables-section .section-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.page-header {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 13px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    padding: 20px 12px;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a, .sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
}

.sidebar-nav a, .sidebar-nav .nav-item {
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-nav a:hover, .sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-subtle);
    color: var(--text-primary);
    padding-left: 20px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
}

.sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: var(--text-primary);
}

.sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--info);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.nav-icon {
    display: none;
}

.sidebar-user-info {
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
}

.sidebar-user-info p {
    margin-bottom: 8px;
    word-break: break-all;
}

/* Stats Grid - Professional Minimal Design */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(59, 130, 246, 0.1);
}

.stat-card .stat-change {
    font-size: 13px;
    color: var(--success);
    margin-top: 8px;
}

/* Honeypot Section - Professional Layout */
.honeypot-section {
    background: transparent;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

/* Notifications Panel */
.notifications-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.notification-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.notification-icon {
    font-size: 20px;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.notification-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Honeypot Grid - Professional Cards */
.honeypot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.honeypot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.honeypot-card:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.honeypot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

/* Honeypot Screenshot */
.honeypot-screenshot {
    width: 100%;
    height: 120px;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.honeypot-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.honeypot-card-header h3 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.honeypot-type-badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-settings-icon {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.btn-settings-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: block;
}

.status-running {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-running::before {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse 2s infinite;
}

.status-stopped {
    background: rgba(161, 161, 170, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.status-stopped::before {
    background: var(--text-secondary);
}

.status-error {
    background: rgba(220, 38, 38, 0.12);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.status-error::before {
    background: #f87171;
}

.status-degraded {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-degraded::before {
    background: #fbbf24;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.honeypot-info {
    margin-bottom: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 400;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Monaco', 'Courier New', monospace;
}

.honeypot-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px 0;
    margin: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.metric-item {
    text-align: center;
}

.metric-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.metric-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.honeypot-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
}

.honeypot-actions .btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.honeypot-actions form {
    display: contents;
}

.honeypot-actions .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(217, 70, 239, 0.3);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--primary-color);
}

.modal-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Log Table */
.log-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

.log-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.log-table thead {
    background: var(--bg-dark);
}

.log-table th {
    padding: 10px 12px;
    text-align: left;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Fixed column widths to prevent table expansion */
.log-table th:nth-child(1),
.log-table td:nth-child(1) { width: 140px; } /* Timestamp */
.log-table th:nth-child(2),
.log-table td:nth-child(2) { width: 120px; } /* Source IP */
.log-table th:nth-child(3),
.log-table td:nth-child(3) { width: 70px; } /* Method */
.log-table th:nth-child(4),
.log-table td:nth-child(4) { width: 200px; } /* Path */
.log-table th:nth-child(5),
.log-table td:nth-child(5) { width: 80px; } /* Malicious */
.log-table th:nth-child(6),
.log-table td:nth-child(6) { width: 100px; } /* Threat Level */
.log-table th:nth-child(7),
.log-table td:nth-child(7) { width: 150px; } /* Attack Type */
.log-table th:nth-child(8),
.log-table td:nth-child(8) { width: 80px; } /* Intel */
.log-table th:nth-child(9),
.log-table td:nth-child(9) { width: 90px; } /* Actions */

.log-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Detail row should span full width but not expand table */
.log-table td[colspan] {
    white-space: normal;
    overflow: visible;
    padding: 0;
}

.log-table tbody tr {
    transition: background 0.2s ease;
}

.log-table tbody tr:hover {
    background: var(--bg-dark);
}

.threat-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.threat-low {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.threat-medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.threat-high {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.threat-critical {
    background: rgba(239, 68, 68, 0.3);
    color: #ff0000;
    font-weight: bold;
}

.malicious-yes {
    color: var(--danger);
    font-weight: bold;
}

.malicious-no {
    color: var(--success);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Log Detail */
.log-detail {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0;
    margin: 10px;
    overflow-x: auto;
    max-width: calc(100vw - 350px); /* Account for sidebar and padding */
}

/* Custom scrollbar for log detail */
.log-detail::-webkit-scrollbar {
    height: 8px;
}

.log-detail::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.log-detail::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.log-detail::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.log-detail-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    min-width: fit-content;
}

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

.log-detail-section h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-detail-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    font-size: 13px;
}

.log-detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.log-detail-value {
    color: var(--text-primary);
    font-family: 'Monaco', 'Courier New', monospace;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 800px;
}

.log-detail-code {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* KE-LA Intelligence Styling */
.kela-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.kela-alert {
    background: rgba(255, 107, 53, 0.1);
    border-left: 3px solid #ff6b35;
    padding: 16px;
    border-radius: 6px;
}

.kela-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.kela-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #dc2626 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.kela-matches {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.kela-table-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #ff6b35;
    cursor: help;
}

.kela-table-indicator i {
    color: #ff6b35;
}

.threat-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.threat-indicator.malicious-yes {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.threat-indicator.malicious-no {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ========== Honeypots Page - Fleet Management ========== */
.hp-command-bar {
    margin-bottom: 24px;
}

.hp-command-bar-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.hp-command-bar-heading {
    flex: 1;
    min-width: 200px;
}

.hp-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.hp-page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.hp-command-bar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hp-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hp-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 12px;
    pointer-events: none;
}

.hp-search-input {
    width: 220px;
    padding: 10px 12px 10px 36px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.hp-search-input::placeholder {
    color: var(--text-secondary);
}

.hp-search-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
}

.hp-btn-create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.hp-btn-create:hover {
    transform: scale(1.02);
}

.hp-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.hp-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.hp-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.hp-stat-running {
    color: var(--success);
}

.hp-stat-threats {
    color: var(--color-critical);
}

.hp-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hp-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
}

.hp-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hp-chip:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.hp-chip.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.hp-view-toggle {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.hp-view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hp-view-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.hp-view-btn.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* HP Card - 5 sections */
.hp-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.hp-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.hp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 16px 12px;
    gap: 8px;
}

.hp-card-title-wrap {
    min-width: 0;
}

.hp-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.hp-card-type-badge {
    display: block;
    width: 100%;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.hp-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hp-card-overflow {
    position: relative;
}

.hp-kebab {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.hp-kebab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.hp-overflow-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 180px;
    background: var(--card-elevated, #16161d);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    z-index: 50;
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.hp-card-overflow.open .hp-overflow-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hp-overflow-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hp-overflow-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hp-overflow-danger:hover {
    color: #f87171;
    background: rgba(220, 38, 38, 0.1);
}

.hp-overflow-form {
    margin: 0;
}

.hp-card-preview {
    height: 88px;
    margin: 0 16px 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.hp-card-preview:hover {
    opacity: 0.95;
}

.hp-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-card-preview-placeholder {
    flex-direction: column;
    gap: 4px;
}

.hp-preview-placeholder-text {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hp-preview-label {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.hp-preview-fqdn {
    font-size: 10px;
    color: var(--text-secondary);
    font-family: monospace;
}

.hp-card-meta {
    padding: 0 16px 12px;
}

.hp-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.hp-meta-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hp-meta-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hp-meta-value {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.hp-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-subtle);
}

.hp-metric {
    text-align: center;
}

.hp-metric-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.hp-metric-threat {
    color: #f87171;
}

.hp-metric-tag {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hp-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
}

.hp-btn-primary {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hp-btn-primary:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    transform: scale(1.02);
}

.hp-btn-secondary {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.hp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

/* HP Table view */
.hp-view-table {
    margin-top: 0;
}

.hp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--card-bg);
}

.hp-table {
    width: 100%;
    border-collapse: collapse;
}

.hp-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
}

.hp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-primary);
}

.hp-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.hp-table tbody tr.hp-table-row-hidden {
    display: none;
}

.hp-table-actions-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hp-table-actions-cell .hp-card-overflow {
    display: inline-flex;
}

/* HP Empty / No results */
.hp-empty-state {
    text-align: center;
    padding: 56px 24px;
    max-width: 420px;
    margin: 0 auto;
}

.hp-empty-icon {
    font-size: 48px;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 16px;
}

.hp-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.hp-empty-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.hp-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hp-no-results {
    text-align: center;
    padding: 40px 24px;
}

.hp-no-results-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.hp-no-results-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Grid wrapper for view toggle */
.hp-view-grid {
    display: block;
}

.hp-view-grid.hide {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .honeypot-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a var(--bg-dark);
}

/* Profile Page Styles */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.profile-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.profile-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.profile-card-header h2 {
    color: var(--primary-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-info {
    margin-bottom: 0;
}

/* Honeypot Screenshot Preview */
.honeypot-screenshot {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow: auto;
}

.honeypot-screenshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.honeypot-screenshot-header h4 {
    color: var(--primary-color);
    font-size: 14px;
    margin: 0;
}

.honeypot-screenshot-content {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.screenshot-loading {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.screenshot-error {
    color: var(--danger);
}

.toggle-screenshot {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(217, 70, 239, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-screenshot:hover {
    background: var(--primary-color);
    color: white;
}


/* ========================================
   ANALYTICS DASHBOARD STYLES
   ======================================== */

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 30px;
}

.analytics-header h1 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.analytics-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.analytics-actions {
    display: flex;
    gap: 10px;
}

/* Insight Banner (dashboard) — intelligent alert style */
.insight-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.02) 50%, transparent 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-info);
    box-shadow: var(--shadow-card);
    animation: insightBannerIn 0.35s ease;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.insight-banner.dismissed {
    display: none;
}

.insight-banner.insight-critical {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.02) 50%, transparent 100%);
    border-left-color: var(--color-critical);
    border-color: rgba(220, 38, 38, 0.25);
}

.insight-banner.insight-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.02) 50%, transparent 100%);
    border-left-color: var(--color-warning);
    border-color: rgba(245, 158, 11, 0.25);
}

.insight-banner.insight-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.02) 50%, transparent 100%);
    border-left-color: var(--color-info);
    border-color: rgba(59, 130, 246, 0.2);
}

.insight-banner-icon {
    font-size: 20px;
    color: var(--color-info);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
    transition: filter 0.2s ease;
}

.insight-banner.insight-critical .insight-banner-icon {
    color: var(--color-critical);
    filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.4));
}

.insight-banner.insight-warning .insight-banner-icon {
    color: var(--color-warning);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.insight-banner-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.45;
}

.insight-banner-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--info);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.insight-banner-cta:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.insight-banner-dismiss {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.insight-banner-dismiss:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}

@keyframes insightBannerIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Metrics Grid → KPI Strip (enterprise widgets) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .metrics-grid { grid-template-columns: 1fr; }
}

.metric-card {
    background: linear-gradient(145deg, var(--card-bg) 0%, rgba(22, 22, 29, 0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-card);
    min-height: 120px;
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

/* Threats Detected = hero card: slightly larger, red glow, scale */
.metric-card.metric-card-threats {
    transform: scale(1.02);
    min-height: 132px;
    padding: 26px;
    border-color: rgba(220, 38, 38, 0.18);
    box-shadow: var(--shadow-card), 0 0 40px rgba(255, 0, 0, 0.08);
}

.metric-card.metric-card-threats .metric-value {
    font-size: 34px;
}

.metric-card.metric-card-threats:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: var(--shadow-elevated), 0 0 48px rgba(255, 0, 0, 0.12);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.metric-card:hover .metric-icon {
    transform: scale(1.05);
}

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

.metric-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    font-weight: 600;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.metric-delta {
    font-size: 11px;
    margin-top: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.95;
}

.metric-delta.positive {
    color: #f87171;
}

.metric-delta.neutral {
    color: var(--text-secondary);
}

.metric-delta.negative {
    color: var(--success);
}

.metric-sparkline {
    height: 28px;
    margin-top: 10px;
    opacity: 0.85;
    display: block;
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 0;
}

.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.chart-card:hover {
    box-shadow: var(--shadow-elevated);
}

.chart-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.chart-header h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.chart-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Timeline Filter Buttons */
.timeline-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.timeline-filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    min-width: 32px;
    text-align: center;
}

.timeline-filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: scale(1.02);
}

.timeline-filter-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    color: #3b82f6;
}

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

.chart-container-donut {
    position: relative;
}

.chart-container-donut::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Diagnostics Panel */
.diagnostics-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.diagnostics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.diagnostic-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.diagnostic-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diagnostic-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Data Table Section */
.data-table-section {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
}

.data-table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr {
    border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-primary);
    transition: background 0.15s ease;
}

.data-table tbody tr {
    cursor: pointer;
}

.data-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table-row-clickable {
    cursor: pointer;
}

.data-table .no-row-click {
    cursor: default;
}

.ip-code {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.badge {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-danger {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.severity-bar {
    height: 6px;
    min-width: 40px;
    background: linear-gradient(90deg, var(--color-warning), var(--color-critical));
    border-radius: 4px;
    margin-bottom: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.severity-value {
    font-size: 12px;
    color: var(--text-secondary);
}

.attack-types-pill {
    display: inline-block;
    background: rgba(156, 163, 175, 0.12);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
    transform: scale(1.02);
}

/* Threat List */
.threat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.threat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.threat-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--text-secondary);
}

.threat-item > .threat-indicator {
    width: 4px;
    border-radius: 2px;
}

.threat-item > .threat-indicator.threat-critical {
    background: #dc2626;
}

.threat-item > .threat-indicator.threat-high {
    background: #ef4444;
}

.threat-item > .threat-indicator.threat-medium {
    background: #f59e0b;
}

.threat-item > .threat-indicator.threat-low {
    background: #3b82f6;
}

.threat-indicator.threat-unknown {
    background: #6b7280;
}

.threat-content {
    flex: 1;
    padding-right: 140px; /* Make room for button */
}

.threat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.threat-level-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.threat-level-critical {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.threat-level-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.threat-level-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.threat-level-low {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.threat-level-unknown {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.threat-details {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.threat-detail-item {
    font-size: 12px;
    color: var(--text-secondary);
}

.threat-path {
    font-size: 13px;
}

.threat-path code {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* Attack Types Grid */
.attack-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.attack-type-card {
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.attack-type-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.attack-type-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 8px;
}

.attack-type-bar {
    height: 4px;
    background: rgba(156, 163, 175, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.attack-type-fill {
    height: 100%;
    background: var(--danger);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Zero Day Panel */
.zero-day-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.zero-day-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zero-day-item {
    padding: 15px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 6px;
}

.zero-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.confidence-badge {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.zero-day-reason {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.zero-day-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.zero-day-details code {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.zero-day-timestamp {
    color: var(--text-secondary);
}

/* Empty States */
.empty-state-small {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state-small p {
    margin: 0;
    font-size: 14px;
}

/* Actionable empty state: title + subtitle + CTA */
.empty-state-actionable {
    padding: 48px 32px;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.empty-state-actionable .empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.empty-state-actionable .empty-state-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.empty-state-actionable .btn-deploy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.empty-state-actionable .btn-deploy:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.6);
    transform: scale(1.02);
}

/* Compact variant for smaller sections (e.g. Most Interacted Domains) */
.empty-state-actionable--compact {
    padding: 28px 24px;
    max-width: 360px;
}

.empty-state-actionable--compact .empty-state-title {
    font-size: 14px;
    margin-bottom: 6px;
}

.empty-state-actionable--compact .empty-state-subtitle {
    font-size: 12px;
    margin-bottom: 14px;
}

.empty-state-actionable--compact .btn-deploy {
    padding: 8px 16px;
    font-size: 12px;
}

/* Font Awesome Icon Spacing */
.panel-header h3 i,
.section-header h3 i {
    margin-right: 8px;
}

.metric-icon i {
    font-size: 24px;
}

/* Top Attacked Honeypots Styles */
.btn-view-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-view-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
    transform: scale(1.02);
}

.btn-view-toggle {
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-view-toggle i {
    font-size: 14px;
}

.port-code {
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attack-rate-bar {
    position: relative;
    width: 120px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.attack-rate-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-warning), var(--color-critical));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.attack-rate-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    transform: scale(1.02);
}

#honeypotGraphView {
    padding: 20px;
    min-height: 400px;
}

/* Section header icon for crosshairs */
.fa-crosshairs {
    color: #fff;
}

/* Search Bar Styling */
.search-container {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.search-input {
    width: 350px;
    padding: 10px 40px 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-bar-section {
    margin-bottom: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sidebar Logout Section */
.sidebar-logout {
    margin-top: auto;
    padding: 20px 12px;
    border-top: 1px solid var(--border-color);
}

.sidebar-logout a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--danger);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-logout a:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Threat Details Button */
.btn-threat-details {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: absolute;
    top: 15px;
    right: 15px;
}

.btn-threat-details:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.btn-threat-details i {
    font-size: 14px;
}

/* Threat Modal */
.threat-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.threat-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

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

.threat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.threat-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
}

.threat-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.threat-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.threat-modal-body {
    padding: 24px;
}

.threat-modal-section {
    margin-bottom: 24px;
}

.threat-modal-section:last-child {
    margin-bottom: 0;
}

.threat-modal-section h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    font-weight: 600;
}

.threat-modal-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
    font-size: 14px;
}

.threat-modal-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.threat-modal-value {
    color: var(--text-primary);
}

.threat-modal-value code {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.threat-modal-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.threat-modal-code pre {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.threat-modal-code code {
    color: var(--text-primary);
}

/* IP Threat Intelligence Panel (Dashboard + Research Analytics) */
.ip-card-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ip-card-modal.ip-card-modal-visible {
    opacity: 1;
}

.ip-card-modal-content.ip-card-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 620px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: ipCardSlideIn 0.25s ease;
    transition: transform 0.2s ease;
}

@keyframes ipCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ip-card-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.ip-card-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.ip-card-modal-title i {
    margin-right: 8px;
    color: var(--text-secondary);
}

.ip-card-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.ip-card-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.ip-card-modal-body {
    padding: 0 20px 24px;
}

.ip-card-loading,
.ip-card-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.ip-card-error {
    color: #f87171;
}

/* Hero: IP + Risk + Behavior */
.ip-card-hero {
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.ip-card-hero-ip {
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.ip-card-hero-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ip-card-risk-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: opacity 0.15s ease;
}

.ip-card-risk-critical {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

.ip-card-risk-high {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

.ip-card-risk-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.ip-card-risk-low {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.ip-card-behavior {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Summary strip */
.ip-card-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 520px) {
    .ip-card-summary-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ip-card-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ip-card-stat:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.ip-card-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ip-card-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Sections */
.ip-card-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ip-card-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.ip-card-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
}

.ip-card-section h4 i {
    margin-right: 8px;
    color: var(--text-secondary);
    width: 16px;
    text-align: center;
}

.ip-card-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px 16px;
    font-size: 14px;
}

.ip-card-grid-2 {
    grid-template-columns: 130px 1fr;
}

.ip-card-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.ip-card-value {
    color: var(--text-primary);
    font-size: 13px;
}

.ip-card-value code {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
}

.ip-card-flag {
    margin-right: 6px;
}

/* Enrichment */
.ip-card-enrichment .ip-card-value:empty::after {
    content: '—';
    color: var(--text-secondary);
}

/* Activity sparkline */
.ip-card-activity-wrap {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
}

.ip-card-sparkline {
    min-height: 48px;
    width: 100%;
    max-width: 400px;
}

.ip-card-sparkline[data-empty="1"] {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.ip-card-sparkline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-secondary);
}

/* Threat pills */
.ip-card-threat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ip-card-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.15s ease;
}

.ip-card-pill-threat {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.ip-card-pill-threat:hover {
    opacity: 0.9;
}

.ip-card-most-targeted {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.ip-card-most-targeted strong {
    color: var(--text-primary);
}

/* Rows (honeypots / domains) */
.ip-card-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ip-card-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ip-card-row-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ip-card-row-link:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.ip-card-row-name {
    color: var(--text-primary);
}

.ip-card-row-name code {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.ip-card-row-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Empty states */
.ip-card-empty-state {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    padding: 12px 0;
}

/* Actions */
.ip-card-actions {
    padding-top: 8px;
}

.ip-card-action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ip-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ip-card-btn:hover {
    transform: translateY(-1px);
}

.ip-card-btn-primary {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.ip-card-btn-primary:hover {
    background: rgba(59, 130, 246, 0.35);
}

.ip-card-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.ip-card-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ip-card-btn-danger {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.ip-card-btn-danger:hover {
    background: rgba(220, 38, 38, 0.25);
}

/* Legacy list (keep for any fallback) */
.ip-card-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.ip-card-list li {
    margin-bottom: 6px;
}

.ip-card-list li code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* Update threat-item to accommodate button */
.threat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.threat-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Webhook Integration Styles */
.webhook-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.webhook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.webhook-logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.webhook-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px;
    overflow: hidden;
}

.webhook-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ultrared-logo {
    background: linear-gradient(135deg, rgba(255, 8, 68, 0.1) 0%, rgba(255, 64, 102, 0.1) 100%);
    border: 1px solid rgba(255, 8, 68, 0.3);
}

.kela-logo {
    background: linear-gradient(135deg, rgba(0, 166, 251, 0.1) 0%, rgba(0, 166, 251, 0.1) 100%);
    border: 1px solid rgba(0, 166, 251, 0.3);
}

.slack-logo {
    background: linear-gradient(135deg, rgba(74, 21, 75, 0.1) 0%, rgba(74, 21, 75, 0.1) 100%);
    border: 1px solid rgba(74, 21, 75, 0.3);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    transition: 0.4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-slider:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

input:checked + .toggle-slider:hover {
    background-color: #2563eb;
}

.webhook-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.webhook-form .form-group:last-of-type {
    margin-bottom: 0;
}

.webhook-form button {
    margin-top: 8px;
}

.webhook-form .btn-primary,
.webhook-form .btn-secondary {
    width: auto;
    display: inline-flex;
    margin-right: 12px;
}

/* Admin dashboard: align actions with honeypots-style buttons */
.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.admin-table-actions form {
    display: inline;
    margin: 0;
}
.admin-footer-nav {
    margin-top: 1.5rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 0.5rem;
}
/* Admin hub cards: hover like ghost buttons */
.admin-card-link {
    display: block;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
.admin-card-link:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
}
.admin-card-link h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}
.admin-card-link p {
    margin: 0;
    opacity: 0.85;
}
.admin-card-link .admin-card-arrow {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.admin-card-link:hover .admin-card-arrow {
    color: var(--text-primary);
}
