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

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: scanlines 2s infinite;
}

@keyframes scanlines {
    0%, 100% { 
        background: #000; 
    }
    50% { 
        background: linear-gradient(90deg, #000 0%, #001100 50%, #000 100%);
    }
}

.terminal {
    width: 600px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.3);
    border: 1px solid #333;
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-buttons {
    display: flex;
    gap: 5px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red { background: #ff5f57; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #28ca42; }

.terminal-title {
    color: #ccc;
    font-size: 12px;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
}

.loading-text {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 14px;
}

.prompt {
    color: #00ff00;
}

.command {
    color: #ffffff;
    margin-left: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    width: 0%;
    animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
    to { width: 100%; }
}

.status-text {
    color: #00ff00;
    font-size: 12px;
    animation: blink 1s infinite;
}

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

/* Main Content */
.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left i {
    font-size: 2.5rem;
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timestamp {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 5px;
}

.threat-level {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #ff4757;
}

.level-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.level-indicator.critical {
    background: #ff4757;
    box-shadow: 0 0 10px #ff4757;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.card:hover::before {
    left: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header i {
    font-size: 1.5rem;
    color: #4ecdc4;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    flex-grow: 1;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.compromised {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid #ff4757;
}

.status-badge.tracked {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.status-badge.vulnerable {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid #ff0000;
}

.status-badge.monitored {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    border: 1px solid #8a2be2;
}

.status-badge.fingerprinted {
    background: rgba(255, 20, 147, 0.2);
    color: #ff1493;
    border: 1px solid #ff1493;
}

.status-badge.active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item label {
    font-weight: 600;
    color: #ccc;
    min-width: 120px;
    font-size: 0.9rem;
}

.data-field {
    flex-grow: 1;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-weight: bold;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    min-height: 24px;
    display: flex;
    align-items: center;
}

.data-field.vulnerability {
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.3);
    animation: danger-blink 2s infinite;
}

@keyframes danger-blink {
    0%, 90% { background: rgba(0, 0, 0, 0.3); }
    95% { background: rgba(255, 71, 87, 0.1); }
}

.data-field.truncated {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spoofing-warning {
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid #ff8c00;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    color: #ff8c00;
    font-weight: bold;
    text-align: center;
    animation: warning-pulse 2s infinite;
}

.spoofing-warning i {
    margin-right: 8px;
}

@keyframes warning-pulse {
    0%, 100% { background: rgba(255, 140, 0, 0.2); }
    50% { background: rgba(255, 140, 0, 0.3); }
}

.copy-btn {
    cursor: pointer;
    color: #4ecdc4;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: scale(1.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.warning-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffa500;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.warning-message i {
    font-size: 1.2rem;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.footer-text {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .terminal {
        width: 90%;
        margin: 0 10px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-item label {
        min-width: auto;
    }
}

/* Loading animations */
.data-loading {
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Matrix effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Glitch effect */
.glitch {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}