:root {
    --glass-bg: rgba(20, 20, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient: linear-gradient(45deg, #0f0f1e, #1a1a2e, #0f0f1e);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --card-radius: 16px;
}

body {
    background: var(--bg-gradient);
    background-size: 400% 400%;
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding-bottom: 20px;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.navbar {
    background: rgba(26, 26, 46, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 15px 20px;
}

.card-body {
    color: var(--text-primary);
    padding: 20px;
}

.text-white {
    color: #fff !important;
}

.text-muted {
    color: #a0a0a0 !important;
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(5px);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
    filter: brightness(1.1);
    z-index: 2;
}

.btn-primary:active {
    transform: scale(0.98);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    color: #e0e0e0;
}

code {
    color: #ff79c6;
}

.list-group-item {
    background: transparent;
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.risk-high {
    border-left: 4px solid #ff4757;
}

.risk-medium {
    border-left: 4px solid #ffa502;
}

.risk-low {
    border-left: 4px solid #2ed573;
}

.status-indicator {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-high {
    background-color: #ff4757;
    box-shadow: 0 0 10px #ff4757;
}

.status-medium {
    background-color: #ffa502;
    box-shadow: 0 0 10px #ffa502;
}

.status-low {
    background-color: #2ed573;
    box-shadow: 0 0 10px #2ed573;
}

.device-card {
    transition: transform 0.2s, background 0.3s;
    background: rgba(255, 255, 255, 0.03);
}

.device-card:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.08);
}

.port-badge {
    background: rgba(102, 126, 234, 0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
    transition: all 0.2s;
}

.port-badge:hover {
    background: rgba(102, 126, 234, 0.4) !important;
    cursor: help;
}

.info-badge {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-secondary) !important;
}

.bg-success-subtle {
    background-color: rgba(46, 213, 115, 0.1) !important;
}

.bg-secondary-subtle {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-outline-info {
    background-color: rgba(0, 209, 255, 0.05) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}