:root {
    --sidebar-bg: #ffffff;
    --main-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --sidebar-width: 260px;
}

* { box-sizing: border-box; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    background-color: var(--main-bg);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Sidebar Layout */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

/* Sidebar Branding Header */
.sidebar-brand {
    padding: 32px 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand a { text-decoration: none; color: inherit; display: block; }
.sidebar-brand .site-link { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1.2px; margin-bottom: 4px; text-transform: uppercase; font-weight: 600; }
.sidebar-brand .site-title { font-size: 1.25rem; font-weight: 700; color: var(--text-main); letter-spacing: -0.5px; }

/* Navigation Links */
.nav-menu { padding: 20px 0; flex: 1; }

.nav-item {
    display: block;
    padding: 12px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.nav-item:hover { background: #f9fafb; color: var(--text-main); }

.nav-item.active {
    background: #f3f4f6;
    color: var(--text-main);
    font-weight: 600;
    border-left: 4px solid var(--text-main);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 60px 40px;
    display: flex;
    justify-content: center;
}

.tool-wrapper { width: 100%; max-width: 800px; }

.tool-header { margin-bottom: 32px; }
.tool-header h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.tool-header p { color: var(--text-muted); font-size: 1rem; }

/* Standard Tool Card */
.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 20px; }
}

/* Ensure the sidebar container is a flexbox */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-bottom: 20px; /* Space at the bottom */
}

.sidebar-footer {
    padding: 20px 15px;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Soft separator */
}

.bmc-custom-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #f0f7ff; /* Very soft blue */
    color: #0050a4;           /* Your brand blue */
    border: 1px solid #d0e4f7;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bmc-custom-button:hover {
    background-color: #0050a4;
    color: #ffffff;
    border-color: #0050a4;
    box-shadow: 0 4px 10px rgba(0, 80, 164, 0.1);
}

.bmc-custom-button img {
    height: 18px;
    width: 18px;
    /* This filter makes the black coffee icon match your blue text */
    filter: invert(21%) sepia(90%) saturate(1243%) hue-rotate(193deg) brightness(91%) contrast(101%);
}

.bmc-custom-button:hover img {
    /* Turns the icon white on hover */
    filter: brightness(0) invert(1);
}

.discord-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #5865F2; /* Discord Blurple */
    text-decoration: none;
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: rgba(88, 101, 242, 0.05);
    transition: all 0.2s ease;
}

.discord-sidebar-link:hover {
    background: #5865F2;
    color: #ffffff;
}

.discord-sidebar-link svg {
    flex-shrink: 0;
}