/* MCP Global Sidebar - Core Styles */
:root {
    --mcp-primary: #58086f;
    --mcp-primary-light: rgba(88, 8, 111, 0.05);
    --mcp-sidebar-width: 280px;
}

#mcp-global-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--mcp-sidebar-width);
    height: 100vh;
    background: #fff;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    z-index: 1000000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.05);
}

body.mcp-sidebar-open #mcp-global-sidebar {
    transform: translateX(0);
}

.mcp-sidebar-header {
    height: 100px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.mcp-sidebar-logo {
    height: 55px;
    width: auto;
}

.mcp-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 12px;
}

.mcp-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
}

.mcp-nav-item:hover {
    background: var(--mcp-primary-light);
    color: var(--mcp-primary);
}

.mcp-nav-item.active {
    background: var(--mcp-primary-light);
    color: var(--mcp-primary);
}

.mcp-nav-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--mcp-primary);
    border-radius: 0 4px 4px 0;
}

.mcp-nav-item i {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.mcp-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    background: rgba(248, 250, 252, 0.95);
}

.mcp-sidebar-footer.is-guest {
    padding: 16px 12px;
    background: transparent;
    border-top: none;
}

.mcp-user-profile {
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mcp-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 99px;
    object-fit: cover;
}

.mcp-user-info {
    flex: 1;
    min-width: 0;
}

.mcp-user-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcp-user-role {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--mcp-primary);
    opacity: 0.8;
}

.mcp-logout-btn {
    color: #94a3b8;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
}

.mcp-logout-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

.mcp-logout-btn i {
    width: 18px;
    height: 18px;
}

.mcp-nav-item.footer-login {
    margin-bottom: 0;
}

/* Overlay */
.mcp-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.mcp-sidebar-open .mcp-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.mcp-sidebar-open {
    overflow: hidden !important;
}

/* Fix for Duplicate Therapist Profile in Header */
/* This hides the Woolentor product loop widget that appears in the global header (Elementor ID 17) on single therapist pages. */
.single-product header.elementor-17 .elementor-element-725586a {
    display: none !important;
}