/* Enhanced Hacker Theme with Better Contrast */
:root {
    /* Base Colors */
    --primary-bg: #0a0a0f;
    --secondary-bg: #151520;
    --terminal-bg: #000015;
    --card-bg: rgba(10, 10, 30, 0.9);
    
    /* Theme Colors */
    --primary-red: #ff3366;
    --primary-green: #00ff99;
    --primary-blue: #3399ff;
    --primary-yellow: #ffcc00;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #ccccff;
    --text-muted: #8888aa;
    --text-danger: #ff3366;
    --text-success: #00ff99;
    --text-warning: #ffcc00;
    --text-info: #3399ff;
    
    /* UI Colors */
    --border-color: #333355;
    --shadow-color: rgba(0, 0, 40, 0.5);
    --glow-red: rgba(255, 51, 102, 0.5);
    --glow-green: rgba(0, 255, 153, 0.5);
    --glow-blue: rgba(51, 153, 255, 0.5);
    
    /* Status Colors */
    --status-online: #00ff99;
    --status-warning: #ffcc00;
    --status-danger: #ff3366;
    --status-scanning: #3399ff;
}

/* Base Styles */
body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Enhanced Matrix Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, var(--primary-bg) 0%, #000000 100%),
        linear-gradient(0deg, rgba(10, 10, 30, 0.9) 0%, transparent 100%);
    background-size: cover;
    z-index: 1;
    opacity: 0.4;
}



@keyframes scan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* Glitch Header - Improved */
.glitch-header {
    background: linear-gradient(180deg, 
        rgba(10, 10, 30, 0.95) 0%,
        rgba(20, 20, 40, 0.9) 100%);
    border-bottom: 2px solid var(--primary-red);
    padding: 2rem 0;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.glitch {
    position: relative;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 
        0 0 10px var(--primary-blue),
        0 0 20px var(--primary-blue),
        0 0 30px var(--primary-blue);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--primary-green);
    animation: glitch-1 3s infinite linear alternate-reverse;
    z-index: -1;
}

.glitch::after {
    color: var(--primary-red);
    animation: glitch-2 2s infinite linear alternate-reverse;
    z-index: -2;
}

@keyframes glitch-1 {
    0% { transform: translate(-2px, 2px); clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { transform: translate(2px, -2px); clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitch-2 {
    0% { transform: translate(2px, -2px); clip-path: inset(25% 0 58% 0); }
    20% { clip-path: inset(54% 0 7% 0); }
    40% { transform: translate(-2px, 2px); clip-path: inset(30% 0 43% 0); }
    60% { clip-path: inset(75% 0 6% 0); }
    80% { clip-path: inset(65% 0 13% 0); }
    100% { clip-path: inset(86% 0 14% 0); }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px var(--primary-blue);
}

/* Navigation - Enhanced */
.terminal-nav {
    background: linear-gradient(90deg, 
        rgba(20, 20, 40, 0.9) 0%,
        rgba(30, 30, 50, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 0 auto 2rem;
    max-width: 1200px;
    box-shadow: 0 5px 15px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.nav-links a:hover {
    background: rgba(51, 153, 255, 0.15);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 153, 255, 0.3);
    color: var(--text-primary);
}

.nav-links a.active {
    background: rgba(255, 51, 102, 0.2);
    border-color: var(--primary-red);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

/* System Status */
.system-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: var(--status-online);
    box-shadow: 0 0 15px var(--status-online);
    animation: pulse 2s infinite;
}

.status-dot.scanning {
    background: var(--status-scanning);
    box-shadow: 0 0 15px var(--status-scanning);
    animation: pulse 1s infinite;
}

.status-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.time-display {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'Share Tech Mono', monospace;
}

/* Terminal Cards - Enhanced */
.terminal-card {
    background: linear-gradient(145deg, 
        rgba(20, 20, 40, 0.9) 0%,
        rgba(10, 10, 30, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.terminal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 50, 0.6);
    border-color: var(--primary-blue);
}

.terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-red) 0%,
        var(--primary-green) 50%,
        var(--primary-blue) 100%);
    z-index: 1;
}

.card-header {
    background: linear-gradient(90deg, 
        rgba(255, 51, 102, 0.1) 0%,
        rgba(51, 153, 255, 0.1) 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.card-header h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h2 i {
    color: var(--primary-green);
}

.card-buttons {
    display: flex;
    gap: 0.5rem;
}

.cmd-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cmd-btn:hover {
    transform: scale(1.2);
}

.cmd-btn.red { 
    background: var(--primary-red); 
    box-shadow: 0 0 10px var(--primary-red);
}
.cmd-btn.yellow { 
    background: var(--primary-yellow); 
    box-shadow: 0 0 10px var(--primary-yellow);
}
.cmd-btn.green { 
    background: var(--primary-green); 
    box-shadow: 0 0 10px var(--primary-green);
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px currentColor;
}

h1 { color: var(--primary-blue); }
h2 { color: var(--primary-green); }
h3 { color: var(--primary-red); }
h4 { color: var(--primary-yellow); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green);
}

/* Enhanced Buttons */
.hacker-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(90deg, 
        var(--primary-blue) 0%,
        var(--primary-green) 100%);
    border: none;
    border-radius: 6px;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hacker-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.hacker-btn:hover::before {
    left: 100%;
}

.hacker-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(51, 153, 255, 0.4);
    color: white !important;
}

.hacker-btn:active {
    transform: translateY(-1px);
}

.hacker-btn i {
    font-size: 1.1rem;
}

/* Button Variants */
.hacker-btn.red {
    background: linear-gradient(90deg, 
        var(--primary-red) 0%,
        #ff6699 100%);
}

.hacker-btn.green {
    background: linear-gradient(90deg, 
        var(--primary-green) 0%,
        #33ffcc 100%);
}

.hacker-btn.blue {
    background: linear-gradient(90deg, 
        var(--primary-blue) 0%,
        #66ccff 100%);
}

.hacker-btn.yellow {
    background: linear-gradient(90deg, 
        var(--primary-yellow) 0%,
        #ffdd44 100%);
    color: #000 !important;
}

.hacker-btn.outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue) !important;
}

.hacker-btn.outline:hover {
    background: var(--primary-blue);
    color: white !important;
}

/* Form Elements */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.terminal-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 20, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.terminal-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(51, 153, 255, 0.3);
    background: rgba(0, 0, 30, 0.9);
}

.terminal-input::placeholder {
    color: var(--text-muted);
}

/* Checkboxes and Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    vertical-align: middle;
    accent-color: var(--primary-blue);
}

label {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Results Containers */
.results-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 30, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Risk Meter */
.risk-meter {
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
    position: relative;
    border: 1px solid var(--border-color);
}

.risk-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease, background 1s ease;
    position: relative;
    overflow: hidden;
}

.risk-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

.risk-fill.safe { 
    background: linear-gradient(90deg, var(--primary-green), #00cc77); 
}
.risk-fill.suspicious { 
    background: linear-gradient(90deg, var(--primary-yellow), #ffaa00); 
}
.risk-fill.dangerous { 
    background: linear-gradient(90deg, var(--primary-red), #ff0066); 
}

/* Verdict Box */
.verdict {
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
    border: 2px solid;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.verdict.safe {
    background: rgba(0, 255, 153, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
    text-shadow: 0 0 10px var(--primary-green);
}

.verdict.suspicious {
    background: rgba(255, 204, 0, 0.1);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    text-shadow: 0 0 10px var(--primary-yellow);
}

.verdict.dangerous {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--primary-red);
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
}

/* Vulnerability Items */
.vuln-item {
    padding: 1.25rem;
    border-left: 4px solid;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.vuln-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vuln-item.critical {
    border-left-color: var(--primary-red);
    background: rgba(255, 51, 102, 0.05);
}

.vuln-item.warning {
    border-left-color: var(--primary-yellow);
    background: rgba(255, 204, 0, 0.05);
}

.vuln-item.info {
    border-left-color: var(--primary-blue);
    background: rgba(51, 153, 255, 0.05);
}

.vuln-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.vuln-title h4 {
    margin: 0;
    font-size: 1.1rem;
}

.vuln-severity {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.severity-critical { 
    background: var(--primary-red); 
    color: white; 
    box-shadow: 0 0 10px var(--primary-red);
}
.severity-warning { 
    background: var(--primary-yellow); 
    color: black; 
    box-shadow: 0 0 10px var(--primary-yellow);
}
.severity-info { 
    background: var(--primary-blue); 
    color: white; 
    box-shadow: 0 0 10px var(--primary-blue);
}

/* Map Container */
.map-container {
    height: 300px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
    background: rgba(0, 0, 20, 0.8);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading i {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--primary-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--primary-red) 0%,
        var(--primary-yellow) 50%,
        var(--primary-green) 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Activity Log */
.activity-log {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.activity-log::-webkit-scrollbar {
    width: 6px;
}

.activity-log::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.activity-log::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

.log-entry {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.log-time {
    color: var(--text-muted);
    min-width: 85px;
    font-family: 'Share Tech Mono', monospace;
}

.log-type {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    letter-spacing: 0.05em;
}

.log-type.info { 
    background: rgba(51, 153, 255, 0.2); 
    color: var(--primary-blue); 
    border: 1px solid var(--primary-blue);
}
.log-type.warning { 
    background: rgba(255, 204, 0, 0.2); 
    color: var(--primary-yellow); 
    border: 1px solid var(--primary-yellow);
}
.log-type.success { 
    background: rgba(0, 255, 153, 0.2); 
    color: var(--primary-green); 
    border: 1px solid var(--primary-green);
}
.log-type.danger { 
    background: rgba(255, 51, 102, 0.2); 
    color: var(--primary-red); 
    border: 1px solid var(--primary-red);
}

.log-msg {
    color: var(--text-secondary);
    flex: 1;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-list i {
    color: var(--primary-green);
    font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    background: linear-gradient(145deg, 
        rgba(20, 20, 40, 0.8) 0%,
        rgba(30, 30, 60, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(51, 153, 255, 0.3);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px var(--primary-blue);
    margin: 0.5rem 0;
}

.stat-box h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Typewriter Effect */
.typewriter {
    border-left: 3px solid var(--primary-green);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.typewriter p {
    opacity: 0;
    animation: typing 2s steps(40, end) forwards;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
}

.typewriter p:nth-child(1) { animation-delay: 0s; }
.typewriter p:nth-child(2) { animation-delay: 1s; }
.typewriter p:nth-child(3) { animation-delay: 2s; }
.typewriter p:nth-child(4) { animation-delay: 3s; }

@keyframes typing {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
.terminal-footer {
    background: linear-gradient(180deg, 
        rgba(20, 20, 40, 0.95) 0%,
        rgba(10, 10, 30, 1) 100%);
    border-top: 2px solid var(--primary-green);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 -5px 20px var(--shadow-color);
}

.terminal-footer p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Quick IP Buttons */
.quick-ip-btn {
    background: linear-gradient(145deg, 
        rgba(30, 30, 60, 0.8) 0%,
        rgba(40, 40, 80, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    text-decoration: none;
}

.quick-ip-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(51, 153, 255, 0.3);
    color: var(--text-primary);
}

.quick-ip-btn i {
    font-size: 2rem;
    color: var(--primary-green);
}

.quick-ip-btn span {
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
}

.quick-ip-btn small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
}

/* Warning Banner */
.warning-banner {
    background: linear-gradient(90deg, 
        rgba(255, 204, 0, 0.1) 0%,
        rgba(255, 153, 0, 0.15) 100%);
    border: 1px solid var(--primary-yellow);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-warning);
}

.warning-banner i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.warning-banner strong {
    color: var(--primary-yellow);
}

/* Info Card */
.info-card {
    background: linear-gradient(145deg, 
        rgba(20, 20, 40, 0.8) 0%,
        rgba(30, 30, 60, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-3px);
}

.info-card h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    font-size: 1.1rem;
}

.info-card p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* Threat Level Indicators */
.threat-level {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.threat-low { 
    background: rgba(0, 255, 153, 0.2); 
    color: var(--primary-green); 
    border: 1px solid var(--primary-green);
}
.threat-medium { 
    background: rgba(255, 204, 0, 0.2); 
    color: var(--primary-yellow); 
    border: 1px solid var(--primary-yellow);
}
.threat-high { 
    background: rgba(255, 51, 102, 0.2); 
    color: var(--primary-red); 
    border: 1px solid var(--primary-red);
}

/* Scan Steps */
.scan-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.75rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.scan-step.active {
    background: rgba(51, 153, 255, 0.15);
    border-left: 4px solid var(--primary-blue);
}

.scan-step.completed {
    background: rgba(0, 255, 153, 0.1);
    border-left: 4px solid var(--primary-green);
}

.scan-step i {
    font-size: 1.2rem;
}

/* Map Controls */
.map-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.map-control-btn {
    padding: 0.5rem 1rem;
    background: rgba(30, 30, 60, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-control-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Theme Switcher (Optional) */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.theme-btn:hover {
    transform: rotate(180deg);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links a {
        justify-content: center;
        padding: 1rem;
    }
    
    .system-status {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .glitch {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .terminal-card {
        margin: 0 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hacker-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .card-buttons {
        align-self: flex-end;
    }
}

/* Print Styles */
@media print {
    .matrix-bg,
    .scan-line,
    .terminal-nav,
    .terminal-footer,
    .hacker-btn,
    .theme-switcher {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .terminal-card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }
}
/* Add these to your existing hacker-theme.css */

/* Enhanced loading animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Terminal cursor effect */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--primary-green);
    animation: blink 1s infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Data visualization */
.data-visualization {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.data-point {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.data-point .value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-blue);
    font-family: 'Orbitron', sans-serif;
}

.data-point .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Timeline visualization */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 2px solid var(--primary-blue);
}

.timeline-item.completed::before {
    background: var(--primary-green);
}

.timeline-item.current::before {
    background: var(--primary-yellow);
    animation: pulse 2s infinite;
}

.timeline-item.pending::before {
    background: var(--border-color);
}

/* Tags and badges */
.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag.success { 
    background: rgba(0, 255, 153, 0.2); 
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
}

.tag.warning { 
    background: rgba(255, 204, 0, 0.2); 
    color: var(--primary-yellow);
    border: 1px solid var(--primary-yellow);
}

.tag.danger { 
    background: rgba(255, 51, 102, 0.2); 
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
}

.tag.info { 
    background: rgba(51, 153, 255, 0.2); 
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

/* Tooltip */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--terminal-bg);
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Code block styling */
.code-block {
    background: rgba(0, 0, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    position: relative;
}

.code-block::before {
    content: '>>';
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--primary-green);
}

.code-block pre {
    margin: 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.status-indicator.online .dot { 
    background: var(--primary-green); 
    box-shadow: 0 0 8px var(--primary-green);
}

.status-indicator.offline .dot { 
    background: var(--primary-red); 
    box-shadow: 0 0 8px var(--primary-red);
}

.status-indicator.warning .dot { 
    background: var(--primary-yellow); 
    box-shadow: 0 0 8px var(--primary-yellow);
}

/* Progress steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.progress-step .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--terminal-bg);
    border: 2px solid var(--border-color);
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: white;
}

.progress-step.completed .step-circle {
    border-color: var(--primary-green);
    background: var(--primary-green);
    color: white;
}

.progress-step .step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Notification system */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--terminal-bg);
    border: 1px solid;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification.success {
    border-color: var(--primary-green);
    background: rgba(0, 255, 153, 0.1);
}

.notification.error {
    border-color: var(--primary-red);
    background: rgba(255, 51, 102, 0.1);
}

.notification.warning {
    border-color: var(--primary-yellow);
    background: rgba(255, 204, 0, 0.1);
}

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

/* Responsive tables */
.responsive-table {
    width: 100%;
    overflow-x: auto;
}

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

.responsive-table th,
.responsive-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.responsive-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-green);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.responsive-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Risk Meter Styles */
.risk-meter {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
    position: relative;
    border: 1px solid #333;
}

.risk-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease, background 0.5s ease;
    position: relative;
    overflow: hidden;
}

.risk-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

/* Verdict-specific colors */
.risk-fill.safe {
    background: linear-gradient(90deg, #00ff88, #00cc66) !important;
}

.risk-fill.warning {
    background: linear-gradient(90deg, #ffff00, #ffcc00) !important;
}

.risk-fill.suspicious {
    background: linear-gradient(90deg, #ffaa00, #ff8800) !important;
}

.risk-fill.dangerous {
    background: linear-gradient(90deg, #ff003c, #cc002e) !important;
}

/* Verdict boxes */
.verdict {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
    font-weight: bold;
    border: 2px solid;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

.verdict.safe {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
}

.verdict.warning {
    background: rgba(255, 255, 0, 0.1);
    border-color: #ffff00;
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00;
}

.verdict.suspicious {
    background: rgba(255, 170, 0, 0.1);
    border-color: #ffaa00;
    color: #ffaa00;
    text-shadow: 0 0 10px #ffaa00;
}

.verdict.dangerous {
    background: rgba(255, 0, 60, 0.1);
    border-color: #ff003c;
    color: #ff003c;
    text-shadow: 0 0 10px #ff003c;
}

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}