/* Cyber Security Tools Custom Theme */
:root {
    --bg-dark: #0e0e0e;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --bg-input: #111111;
    --border-color: #272727;
    --border-focus: #00e5ff;
    --text-main: #f0f0f0;
    --text-muted: #8c8c8c;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.2);
    --accent-dim: #008fa3;
    --success: #2ff801;
    --warning: #ffb300;
    --danger: #ff4d4d;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Cyber Grid */
.cyber-grid {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

/* Typography */
h1, h2, h3, h4, .font-headline {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.mono {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* Neon Glows */
.glow-accent {
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.glow-box {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.08);
}

.border-glow:focus-within {
    border-color: var(--accent) !important;
    box-shadow: 0 0 12px var(--accent-glow) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dim);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-cyan {
    background: rgba(0, 229, 255, 0.12);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.badge-green {
    background: rgba(47, 248, 1, 0.12);
    color: #2ff801;
    border: 1px solid rgba(47, 248, 1, 0.3);
}

.badge-red {
    background: rgba(255, 77, 77, 0.12);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

.badge-yellow {
    background: rgba(255, 179, 0, 0.12);
    color: #ffb300;
    border: 1px solid rgba(255, 179, 0, 0.3);
}

/* Tool Cards */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 229, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 229, 255, 0.06);
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.pulse-glow {
    animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #181818;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid var(--accent);
    box-shadow: 0 5px 25px rgba(0,0,0,0.8), 0 0 15px var(--accent-glow);
    z-index: 9999;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}
