/* ===== MODERN PROFESSIONAL DESIGN - BLUE/GREY ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    /* Modern Blue/Grey Palette */
    --primary-blue: #4A90E2;
    --secondary-blue: #357ABD;
    --accent-blue: #5BA3F5;
    --grey-light: #E8EEF4;
    --grey-medium: #D4DCE6;
    --grey-dark: #B8C5D6;
   
    /* Neutrals */
    --dark: #1A1A1A;
    --dark-gray: #2D2D2D;
    --medium-gray: #4A4A4A;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
   
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    --gradient-subtle: linear-gradient(135deg, #E8EEF4 0%, #D4DCE6 100%);
    --gradient-dark: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
    --gradient-soft-blue: linear-gradient(135deg, #80B4F5 0%, #5BA3F5 100%);
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-subtle);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--dark);
    position: relative;
    overflow-x: hidden;
}
/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(53, 122, 189, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(91, 163, 245, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
/* ===== HEADER - MODERN & SLEEK ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-primary) 1;
    transition: all 0.3s ease;
}
header:hover {
    box-shadow: 0 6px 32px rgba(74, 144, 226, 0.15);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
/* Hamburger - Modern Icon */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}
.hamburger-btn span {
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}
.hamburger-btn:hover span {
    transform: scaleX(1.1);
}
.hamburger-btn:hover span:nth-child(1) {
    transform: translateX(4px) scaleX(1.1);
}
.hamburger-btn:hover span:nth-child(3) {
    transform: translateX(-4px) scaleX(1.1);
}
/* Logo - Modern Treatment */
header img.logo {
    height: 40px;
    padding: 6px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.15);
    transition: all 0.3s ease;
}
header img.logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.25);
}
/* Title - Bold & Modern */
.title h1 {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.5px;
}
.title h1 .ai-accent {
    color: var(--primary-blue);
}
.subtitle {
    font-size: 10px;
    font-weight: 500;
    color: var(--medium-gray);
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
/* User Info - Clean & Modern */
.user-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 500;
}
.user-greeting {
    color: var(--dark);
    display: none;
}
.user-greeting strong {
    color: var(--primary-blue);
    font-weight: 700;
}
.user-info a {
    padding: 4px 6px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 9px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.login-button {
    background: var(--gradient-primary);
    color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}
.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.4);
}
.register-button {
    background: transparent;
    color: var(--primary-blue) !important;
    border: 2px solid var(--primary-blue);
}
.register-button:hover {
    background: var(--primary-blue);
    color: var(--white) !important;
}
.logout-link {
    color: var(--secondary-blue) !important;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 9px;
}
.logout-link:hover {
    background: rgba(53, 122, 189, 0.1);
}
/* ===== MAIN CONTAINER ===== */
.main-container {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
    gap: 0;
    position: relative;
    z-index: 1;
}
/* ===== OVERLAY/BACKDROP - SEMI-TRANSPARENT ===== */
.menu-overlay,
.overlay,
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    cursor: pointer;
}
.menu-overlay.active,
.overlay.active,
.backdrop.active {
    opacity: 1;
    visibility: visible;
}
/* ===== CHAT HISTORY DRAWER - MODERN SLIDE-OUT ===== */
.chat-history {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    overflow-y: auto;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1002;
    border-right: 2px solid transparent;
    border-image: var(--gradient-primary) 1;
}
.chat-history.active {
    left: 0;
}
.chat-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--grey-medium);
}
.chat-history h3 {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.close-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--light-gray);
    border: 2px solid var(--grey-medium);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.close-drawer-btn:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: rotate(90deg);
}
.close-drawer-btn:hover svg {
    stroke: var(--white);
}
.close-drawer-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--secondary-blue);
    transition: all 0.3s ease;
}
.chat-history ul {
    list-style: none;
}
.chat-history li {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--light-gray);
}
.chat-history li:hover {
    background: var(--grey-light);
    border-color: var(--accent-blue);
    transform: translateX(4px);
}
.chat-history li.selected {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}
/* ===== CHAT CONTAINER - MODERN CARD ===== */
.chat-container {
    flex: 1;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--grey-light);
    transition: all 0.3s ease;
}
.chat-container:hover {
    box-shadow: 0 12px 48px rgba(74, 144, 226, 0.15);
    border-color: var(--accent-blue);
}
#chatbox {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
/* ===== MESSAGES - MODERN BUBBLES ===== */
.message {
    display: flex;
    flex-direction: column;
    max-width: 90%;
    gap: 8px;
    animation: messageSlide 0.3s ease;
}
@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.message strong:first-child {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}
.message.human {
    align-self: flex-start;
    align-items: flex-start;
}
.message.human strong:first-child {
    background: transparent;
    color: var(--primary-blue);
    border: none;
    box-shadow: none;
}
.message.assistant {
    align-self: flex-start;
    align-items: flex-start;
}
/* LoanSpace.ai label - matching header style */
.message.assistant strong:first-child {
    background: transparent !important;
    color: var(--dark) !important;
    box-shadow: none;
}

.message.assistant strong:first-child .ai-accent {
    color: var(--primary-blue);
}
.message-content {
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 15px;
    word-break: break-word;
    hyphens: auto;
}
.message.human .message-content {
    background: var(--grey-light);
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
}
.message.assistant .message-content {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--grey-medium);
}
.message-content p {
    margin: 8px 0;
    font-size: 15px;
}

.message-content p:first-child {
    margin-top: 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

/* Better spacing when paragraph is followed by list */
.message-content p + ol,
.message-content p + ul {
    margin-top: 14px;
}
.message-content ul {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}
.message-content ol {
    list-style: none;
    margin: 12px 0;
    padding: 0;
    counter-reset: item;
}
.message-content ul li {
    padding: 8px 12px 8px 32px;
    position: relative;
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 15px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
}
.message-content ol li {
    padding: 8px 12px 8px 40px;
    position: relative;
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 15px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    counter-increment: item;
}
.message-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 10px;
    top: 8px;
    background: var(--primary-blue);
    color: white;
    font-weight: 700;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.message-content ul li::before {
    content: '•';
    position: absolute;
    left: 12px;
    top: 8px;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 16px;
}

/* Table styling */
.message-content table,
.response-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message-content table th,
.response-table th {
    background: var(--primary-blue);
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-content table td,
.response-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--grey-medium);
    background: white;
}

.message-content table tr:last-child td,
.response-table tr:last-child td {
    border-bottom: none;
}

.message-content table tr:nth-child(even) td,
.response-table tr:nth-child(even) td {
    background: var(--grey-light);
}

/* Sub-header styling */
.message-content h4,
.message-content .sub-header {
    font-size: 16px;
    font-weight: 600;
    margin: 14px 0 8px 0;
    color: var(--secondary-blue);
    padding: 0 !important;
    background: none !important;
    border: none !important;
}
/* Ensure strong text in content has NO background */
.message-content strong {
    color: var(--dark);
    font-weight: 700;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Make list item titles stand out */
.message-content li strong {
    color: var(--secondary-blue);
}
/* Section headers in messages - NO BOXES, just styled text */
.message-content h3,
.message-content .section-header {
    font-size: 18px;
    font-weight: 700;
    margin: 16px 0 8px 0;
    color: var(--primary-blue);
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    display: block;
    line-height: 1.4;
}

.message-content h3:first-child,
.message-content .section-header:first-child {
    margin-top: 0;
}
.message-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}
.message.human .message-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}
.message-content a:hover {
    color: var(--secondary-blue);
}
/* Welcome Message - No bubble around title */
.message.welcome {
    max-width: 90%;
    background: none;
    border: none;
}
.message.welcome strong:first-child {
    background: none !important;
    color: var(--dark) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    box-shadow: none !important;
    -webkit-text-fill-color: var(--dark) !important;
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0px;
    line-height: 1.3;
}
.message.welcome .message-content {
    background: transparent !important;
    border: none !important;
}
.message.welcome strong {
    color: inherit;
}
/* Starter Buttons - Modern Cards */
.starter-btn {
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid var(--grey-medium);
    border-radius: 12px;
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.4;
}
.starter-btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}
/* ===== INPUT AREA - MODERN DESIGN ===== */
.input-area {
    padding: 16px;
    background: var(--white);
    border-top: 2px solid var(--grey-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--grey-medium);
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    min-height: 56px;
    max-height: 180px;
    background: var(--white);
    color: var(--dark);
    line-height: 1.5;
}
#input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}
.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
#sendButton {
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
    letter-spacing: 0.5px;
}
#sendButton span {
    display: none;
}
#sendButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.4);
}
#sendButton:active {
    transform: translateY(0);
}
#sendButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
#sendButton svg {
    width: 20px;
    height: 20px;
}
#speechButton {
    padding: 14px 18px;
    background: var(--light-gray);
    border: 2px solid var(--grey-medium);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
#speechButton:hover {
    background: var(--grey-light);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}
#speechButton img {
    height: 22px;
    width: 22px;
}
/* Powered By - Subtle */
.powered-by {
    padding: 12px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--medium-gray);
    font-style: italic;
    background: var(--light-gray);
    border-top: 1px solid var(--grey-medium);
}
/* ===== LOADING & STATES ===== */
.thinking {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--grey-light);
    border: 2px solid var(--grey-medium);
    border-radius: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    max-width: 90%;
}
.spinner {
    border: 3px solid var(--grey-medium);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.error {
    background: rgba(230, 57, 70, 0.1);
    color: #E63946;
    border: 2px solid #E63946;
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 600;
    max-width: 90%;
}
/* ===== SCROLLBAR - MODERN THIN ===== */
#chatbox::-webkit-scrollbar,
.chat-history::-webkit-scrollbar {
    width: 8px;
}
#chatbox::-webkit-scrollbar-track,
.chat-history::-webkit-scrollbar-track {
    background: var(--grey-light);
    border-radius: 8px;
}
#chatbox::-webkit-scrollbar-thumb,
.chat-history::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 8px;
}
#chatbox::-webkit-scrollbar-thumb:hover,
.chat-history::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}
/* ===== RESPONSIVE - MOBILE-FIRST ADJUSTMENTS ===== */
@media (min-width: 481px) {
    header {
        padding: 16px 20px;
    }
    header img.logo {
        height: 50px;
    }
    .title h1 {
        font-size: 24px;
    }
    .title h1 .ai-accent {
        color: var(--primary-blue);
    }
    .subtitle {
        font-size: 13px;
    }
    .header-left {
        gap: 16px;
    }
    .header-right {
        gap: 16px;
    }
    .hamburger-btn {
        width: 32px;
        height: 28px;
    }
    .user-info {
        font-size: 14px;
    }
    .user-greeting {
        display: inline;
    }
    .user-info a {
        padding: 8px 16px;
        font-size: 13px;
    }
    .logout-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    .main-container {
        padding: 24px;
    }
    .chat-history {
        width: 300px;
        left: -300px;
        padding: 22px;
    }
    .chat-history-header {
        margin-bottom: 22px;
        padding-bottom: 14px;
    }
    .chat-history h3 {
        font-size: 19px;
    }
    .close-drawer-btn {
        width: 34px;
        height: 34px;
    }
    .close-drawer-btn svg {
        width: 19px;
        height: 19px;
    }
    .chat-history li {
        padding: 13px 17px;
        font-size: 14.5px;
        margin-bottom: 9px;
    }
    #chatbox {
        padding: 24px;
        gap: 18px;
    }
    .message {
        max-width: 85%;
    }
    .message strong:first-child {
        font-size: 13px;
    }
    .message-content {
        font-size: 16px;
    }
    .thinking {
        max-width: 85%;
    }
    .error {
        max-width: 85%;
    }
    .input-area {
        padding: 20px;
        gap: 14px;
    }
    #input {
        font-size: 16px;
        min-height: 55px;
    }
    #sendButton {
        font-size: 15px;
    }
    #sendButton span {
        display: inline;
    }
    .starter-btn {
        font-size: 15px;
    }
}

@media (min-width: 769px) {
    header {
        padding: 20px 40px;
    }
    header img.logo {
        height: 60px;
        padding: 8px;
    }
    .title h1 {
        font-size: 32px;
    }
    .title h1 .ai-accent {
        color: var(--primary-blue);
    }
    .subtitle {
        font-size: 13px;
    }
    .header-left {
        gap: 20px;
    }
    .header-right {
        gap: 16px;
    }
    .user-info {
        font-size: 14px;
    }
    .user-info a {
        padding: 10px 24px;
        font-size: 14px;
    }
    .logout-link {
        padding: 10px 24px;
        font-size: 14px;
    }
    .main-container {
        padding: 32px;
    }
    .chat-history {
        width: 350px;
        left: -350px;
        padding: 24px;
    }
    .chat-history-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    .chat-history h3 {
        font-size: 20px;
    }
    .close-drawer-btn {
        width: 36px;
        height: 36px;
    }
    .close-drawer-btn svg {
        width: 20px;
        height: 20px;
    }
    .chat-history li {
        padding: 14px 18px;
        font-size: 15px;
        margin-bottom: 10px;
    }
    #chatbox {
        padding: 32px;
        gap: 20px;
    }
    .message {
        max-width: 75%;
    }
    .message strong:first-child {
        font-size: 13px;
    }
    .message-content {
        font-size: 16px;
    }
    .thinking {
        max-width: 75%;
    }
    .error {
        max-width: 75%;
    }
    .input-area {
        padding: 24px;
        gap: 16px;
    }
    #input {
        font-size: 16px;
        min-height: 60px;
    }
    #sendButton {
        font-size: 15px;
    }
    .starter-btn {
        font-size: 15px;
    }
/* Ensure list items are clickable */
.chat-history li {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}
/* Make sure the list itself allows clicks */
#chatHistoryList {
    pointer-events: auto !important;
}
/* Force sidebar above overlay */
.chat-history.active {
    z-index: 1010 !important;
}

/* Make overlay start after sidebar */
.menu-overlay.active {
    left: 280px;
    width: calc(100% - 280px);
}

@media (min-width: 481px) {
    .menu-overlay.active {
        left: 300px;
        width: calc(100% - 300px);
    }
}

@media (min-width: 769px) {
    .menu-overlay.active {
        left: 350px;
        width: calc(100% - 350px);
    }
}
}
