body {
    /* margin: 0; */
    font-family: 'Inter', sans-serif;
    background-color: #08090A;
    height: 100%;
    overflow: hidden;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Globally hide scrollbars but keep scrolling */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.main-content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    /* grid-template-rows: 56px 40px 75px 1fr;  */
    gap: 10px;
    align-items: stretch;
    background-color: #08090A;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}


.top-bar {
    grid-column: span 4 / span 4;
    grid-row-start: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #08090A;
    min-width: 960px;
    /* width: 100%; */
    /* height: 56px; */
    gap: 16px;
    position: relative;
    padding-top: 5px;
    padding-bottom: 10px;
    padding-left: 24px;
    border-bottom: 0.5px solid #313131;
    /* required for pseudo-element positioning */
}

/* .top-bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 0.5px;
    background-color: #313131;
} */

.top-right-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 24px;
    /* margin-right: 24px; */
}

.logo {
    display: flex;
    align-items: center;
    width: 96px;
    height: 40px;
    /* margin-left: 24px; */
}


.logo-image {
    object-fit: contain;
}


.primary-sidebar {
    grid-row: span 4 / span 4;
    grid-row-start: 2;
    width: 224px;
    margin-left: 24px;
    height: calc(100vh - 80px); 
    overflow-y: auto;
    box-sizing: border-box;
}


.feature-list {
    transition: width 0.3s ease, margin 0.3s ease;
    grid-column: span 3 / span 3;
    grid-row-start: 2;
    /* display: flex; */
    height: 40px;
    /* align-items: center; */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    white-space: nowrap;
    /* Prevent wrapping of content */
    font-family: 'Inter', sans-serif;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    border-radius: 12px;
    margin-right: 24px;

}

.main-header {
    transition: width 0.3s ease, margin 0.3s ease;
    grid-column: 2 / 3; /* 2nd column */
    grid-row-start: 3;
    height: 75px;
    width: 100%; /* Responsive width */
    max-width: 100%; /* Ensure no overflow */
    background-color: #131315; /* Optional, match your style */
    border-radius: 16px;
    border: 1px solid #313131;
    margin-top: 6px;
    padding: 0 16px; /* internal padding */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6px;
}



/* .main-container {
    transition: width 0.3s ease, margin 0.3s ease;
    grid-column: span 3 / span 4;
    grid-row: span 5 / span 5;
    grid-column-start: 2;
    grid-row-start: 4;
    width: 860px;
    height: 654px;
    background-color: #131315;
    border: 1px solid #313131;
    border-radius: 16px;

    padding: clamp(12px, 2vw, 16px) 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;

} */
/* Main Container */
.main-container {
    transition: width 0.3s ease, margin 0.3s ease;
    grid-column: 2 / 3; /* 2nd column */
    grid-row-start: 4;
    width: 100%; /* Responsive width */
    max-width: 100%;
    background-color: #131315;
    border: 1px solid #313131;
    height: calc(100vh - 220px);
    border-radius: 16px;
    padding: 16px; /* Optional for internal padding */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}


.main-header.expanded,
.main-container.expanded {
    /* width: calc(100% - 60px); or a fixed width like 940px */
    margin-left: -180px;
    width: 74vw;
    max-width: 100vw;
}


/* Expanded when Sidebar is Collapsed */
.feature-list.expanded {
    margin-left: -180px;
    width: 80vw;
    max-width: 100vw;
}

.action-sidebar {
    grid-row: span 4 / span 4;
    grid-column-start: 3;
    grid-row-start: 3;
    width: 290px;
    height: calc(100vh - 124px);
    padding-top: 6px;
    /* margin-right: 24px; */
    border-radius: 16px;
    overflow-y: auto; /* if content overflows */
    /* background-color: #fff;  */
    gap: 16px;
}


/* @media (min-width: 1580px) and (max-width: 1866px) {
    .main-header.expanded,
    .main-container.expanded {
        width: 114%; 
    }
} */

#popup-message {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: sans-serif;
    font-size: 14px;
    pointer-events: none;
}

#popup-message.visible {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
#popup-message {
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}
#popup-message.visible {
    transition: opacity 0.5s ease-in-out, visibility 0s;
}
