:root {
    --primary-mauve: #8a2be2;
    --light-mauve: #f3ebff;
    --dark-grey: #2c2c2c;
    --sidebar-bg: #1e1e1e;
    --body-bg: #f8f9fa;
    --text-main: #333;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--body-bg);
    color: var(--text-main);
    margin: 0;
    display: flex;
    min-height: 100vh;
}

nav {
    width: 240px;
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    bottom: 0;
    padding: 20px;
    border-right: 4px solid var(--primary-mauve);
    color: #fff;
}

nav h2 {
    color: #fff;
    font-size: 1.2rem;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

nav h2 span {
    color: var(--primary-mauve);
    font-weight: bold;
}

nav a {
    display: block;
    color: #bbb;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    transition: 0.3s;
}

nav a.active {
    color: #fff;
    background: var(--primary-mauve);
}

main {
    margin-left: 280px;
    padding: 40px;
    width: calc(100% - 280px);
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.seo-h1 {
    font-size: 1.1rem;
    color: var(--dark-grey);
    border-left: 4px solid var(--primary-mauve);
    padding-left: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

input[type="file"] {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

button {
    background: transparent;
    color: var(--primary-mauve);
    font-weight: bold;
    cursor: pointer;
    border: 2px solid var(--primary-mauve);
    padding: 10px 20px;
    border-radius: 6px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: inline-block;
    margin-right: 10px;
}

button:hover {
    background: var(--primary-mauve);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
}

pre {
    background: #1e1e1e;
    color: #dcdcaa;
    padding: 20px;
    border-radius: 8px;
    font-size: 12px;
    overflow-x: auto;
}

.footer-brand {
    position: absolute;
    bottom: 20px;
    font-size: 0.75rem;
    color: #666;
}

/* === Heatmap Grid === */
.heatmap-grid {
    display: grid;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
    background: #111;
    padding: 20px;
    border-radius: 8px;
}

.heatmap-node {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    border: 2px solid #fff;
    font-size: 0.9rem;
}