/* Sidebar CSS for all tool pages */
body {
    display: grid;
    grid-template-areas:
        "sidebar header"
        "sidebar main";
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    margin: 0;
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: linear-gradient(180deg, #b8305d 0%, #9a2850 100%);
    color: white;
    padding: 30px 20px;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    line-height: normal;
}

.sidebar * {
    line-height: normal;
}

.sidebar-header {
    margin-top: 19px;
    margin-bottom: 30px;
    cursor: pointer;
}

.sidebar-header:hover {
    opacity: 0.9;
}

.sidebar-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 2px;
    color: white;
}

.sidebar-tagline {
    font-size: 0.9em;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.sidebar-category {
    margin-bottom: 25px;
}

.category-title {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 10px;
    font-weight: 600;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0 0 8px 0;
}

.sidebar-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95em;
    line-height: 1;
}

.sidebar-nav a i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(3px);
}

.sidebar-nav a.active {
    background: rgba(255,255,255,0.25);
    font-weight: 600;
}

/* Wrapper for main content */
.content-wrapper {
    grid-area: main;
    background: #f9f9f9;
}

/* Language switcher adjustments */
.language-switcher {
    grid-area: header;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        grid-template-areas:
            "header"
            "main";
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        width: 260px;
        z-index: 2000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

    .sidebar.show {
        display: block;
    }
}
