/* Custom styles for Zero-Day Hunter Dashboard */

/* Terminal-like font for code elements */
.terminal-text {
    font-family: 'Fira Code', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Glowing effects */
.glow-green {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.glow-blue {
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
}

.glow-red {
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
}

/* Typewriter effect for headers */
.typewriter {
    overflow: hidden;
    border-right: .15em solid #00ff00;
    white-space: nowrap;
    animation: typewriter 4s steps(40) 1s 1 normal both,
               blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #00ff00; }
}

/* Matrix rain effect background option */
.matrix-bg {
    position: relative;
    overflow: hidden;
}

.matrix-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 95%, rgba(0, 255, 0, 0.1) 100%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

/* Hacker terminal input style */
.terminal-input {
    background: #111;
    border: 1px solid #333;
    color: #00ff00;
    font-family: 'Fira Code', monospace;
    padding: 10px 15px;
    border-radius: 4px;
}

.terminal-input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

/* Status indicators */
.status-dot {
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Data stream animation */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    animation: stream 3s infinite linear;
}

@keyframes stream {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-hide {
        display: none;
    }
    
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-full {
        width: 100%;
    }
}

/* Print styles for reports */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-dark-panel, .bg-gray-900 {
        background: white !important;
        color: black !important;
        border: 1px solid #ddd !important;
    }
}

/* Page transitions */
.page-transition {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Code highlighting for exploit development */
.code-block {
    font-family: 'Fira Code', monospace;
    background: #111;
    border-left: 3px solid #00ff00;
    padding: 1rem;
    overflow-x: auto;
}

.code-keyword {
    color: #ff79c6;
}

.code-string {
    color: #f1fa8c;
}

.code-comment {
    color: #6272a4;
}

.code-function {
    color: #50fa7b;
}

/* Tool console styling */
.console-line {
    font-family: 'Fira Code', monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.console-success {
    color: #00ff00;
}

.console-error {
    color: #ff3333;
}

.console-warning {
    color: #ffcc00;
}

.console-info {
    color: #0066ff;
}