@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@400;700;900&display=swap');

:root {
    --bg-main: #050505;
    --bg-sec: #111111;
    --bg-card: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border: #333333;
    --accent: #ffffff;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.logo .bracket { stroke-dasharray: 150; stroke-dashoffset: 150; animation: drawSVG 1.5s forwards; }
.logo .slash { stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawSVG 1s forwards 0.5s; }

header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
}

header p { color: var(--text-muted); margin-top: 0.5rem; }

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

input {
    flex: 1;
    background: var(--bg-sec);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus { border-color: var(--accent); box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }

button#scanBtn {
    background: var(--accent);
    color: var(--bg-main);
    border: none;
    padding: 0 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

button#scanBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid var(--bg-main);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hidden { display: none !important; }
.category { margin-bottom: 3rem; animation: fadeInUp 0.5s ease-out; }
.category-header { border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.tag { background: var(--text-main); color: var(--bg-main); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.9rem; margin-right: 0.5rem; font-weight: 700; }

.file-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.file-card:hover { border-color: #666; }

.file-header {
    background: var(--bg-sec);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-info { display: flex; align-items: center; gap: 0.5rem; }
.file-actions { display: flex; gap: 0.5rem; align-items: center; }

.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 0.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn:hover { background: var(--text-main); color: var(--bg-main); border-color: var(--text-main); }
.file-size { color: var(--text-muted); font-size: 0.8rem; margin-right: 1rem; }
.file-content { max-height: 400px; overflow-y: auto; background: #000; }
.file-content pre { margin: 0; padding: 1rem; font-family: 'Fira Code', monospace; font-size: 0.85rem; border-radius: 0; }

@keyframes drawSVG { to { stroke-dashoffset: 0; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { 100% { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }