/* PentestAI — Custom Styles */

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: rgba(0, 212, 255, 0.25);
    color: #0a192f;
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section > div {
    animation: fadeInUp 0.6s ease-out;
}

/* Code block styling */
pre {
    white-space: pre;
    word-wrap: normal;
    overflow-x: auto;
}

code {
    font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Form focus states */
input:focus,
button:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Terminal-style block scrollbar */
.bg-navy-900 ::-webkit-scrollbar-track,
.bg-slate-900 ::-webkit-scrollbar-track {
    background: #112240;
}

.bg-navy-900 ::-webkit-scrollbar-thumb,
.bg-slate-900 ::-webkit-scrollbar-thumb {
    background: #233554;
}

.bg-navy-900 ::-webkit-scrollbar-thumb:hover,
.bg-slate-900 ::-webkit-scrollbar-thumb:hover {
    background: #334b6b;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
