:root {
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    --accent-color: #00ff41; /* Hacker Green */
    --secondary-color: #1f6feb;
    --panel-bg: #161b22;
    --border-color: #30363d;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #000; /* Matrix background needs black */
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Matrix Background */
canvas#matrix {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* Behind content */
    width: 100%;
    height: 100%;
}

header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 1.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 300px; /* Content + Sidebar/Tools */
    gap: 2rem;
}

.card {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card strong {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

h2 {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

/* Tools Section Styles */
.tool-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0;
    padding: 0.5rem;
    border: 1px dashed var(--border-color);
    text-align: center;
}

button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit;
    border-radius: 4px;
    width: 100%;
}

button:hover {
    opacity: 0.9;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #8b949e;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
}

/* Password Strength Meter */
.password-wrapper {
    margin-top: 0.5rem;
}

.password-meter {
    height: 5px;
    background-color: #30363d;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-meter-fill {
    height: 100%;
    width: 0%;
    background-color: red;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    margin-top: 3px;
    text-align: right;
    font-weight: bold;
}

/* --- TOOLS & TABS --- */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: #8b949e;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

textarea.tool-io {
    width: 100%;
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    padding: 0.5rem;
    font-family: monospace;
    min-height: 100px;
    resize: vertical;
    margin-bottom: 0.5rem;
}

