/* Fixed shadow at bottom of parent containers - doesn't scroll with content */

/* For suggested actions - target the parent wrapper, not the scrollable content */
[data-section="suggested-actions"] {
    position: relative !important;
}

/* Shadow on the parent container */
[data-section="suggested-actions"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, 
        rgba(17, 24, 39, 1) 0%, 
        rgba(17, 24, 39, 0.9) 10%,
        rgba(17, 24, 39, 0.6) 30%,
        rgba(17, 24, 39, 0.3) 60%,
        rgba(17, 24, 39, 0) 100%);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}

/* For pinned notes - target the parent wrapper */
[data-section="pinned-notes"] {
    position: relative !important;
}

/* Shadow on the parent container */
[data-section="pinned-notes"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, 
        rgba(17, 24, 39, 1) 0%, 
        rgba(17, 24, 39, 0.9) 10%,
        rgba(17, 24, 39, 0.6) 30%,
        rgba(17, 24, 39, 0.3) 60%,
        rgba(17, 24, 39, 0) 100%);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}

/* For any section with scrollable content */
.has-scroll-shadow {
    position: relative !important;
}

.has-scroll-shadow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, 
        rgba(17, 24, 39, 1) 0%, 
        rgba(17, 24, 39, 0.9) 10%,
        rgba(17, 24, 39, 0.6) 30%,
        rgba(17, 24, 39, 0.3) 60%,
        rgba(17, 24, 39, 0) 100%);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}

/* Ensure the shadow doesn't block interaction with content */
[data-section]::after {
    pointer-events: none !important;
}

/* Hide shadow when scrolled to bottom */
[data-section].hide-bottom-shadow::after,
.has-scroll-shadow.hide-bottom-shadow::after {
    opacity: 0 !important;
}

/* Ensure column-content can scroll freely */
[data-section] .column-content {
    /* No position relative here - let it scroll normally */
    overflow-y: auto !important;
    padding-bottom: 50px !important; /* Extra space so content isn't hidden by shadow */
}

/* IMPORTANT: Remove any ::after shadows from column-content that might be inherited */
[data-section] .column-content::after {
    content: none !important;
    display: none !important;
}

/* For tab containers that need shadows */
.tab-content-wrapper {
    position: relative !important;
}

.tab-content-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, 
        rgba(17, 24, 39, 0.95) 0%, 
        rgba(17, 24, 39, 0.7) 15%,
        rgba(17, 24, 39, 0.4) 40%,
        rgba(17, 24, 39, 0) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Interactive tabs parent container */
.interactive-tabs-content {
    position: relative !important;
}

.interactive-tabs-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, 
        rgba(17, 24, 39, 0.95) 0%, 
        rgba(17, 24, 39, 0.7) 15%,
        rgba(17, 24, 39, 0.4) 40%,
        rgba(17, 24, 39, 0) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Ensure proper stacking context */
[data-section],
.has-scroll-shadow,
.tab-content-wrapper,
.interactive-tabs-content {
    z-index: 1;
}

/* Make sure the shadow appears above the scrollbar but doesn't block it */
[data-section]::after,
.has-scroll-shadow::after {
    right: 0 !important; /* Cover full width including scrollbar area */
}

/* Specific overrides for side-by-side container structure */
.side-by-side-container .column-section {
    position: relative !important;
    overflow: hidden !important; /* Hide overflow on parent */
}

/* Ensure scrolling happens in column-content, not parent */
.side-by-side-container .column-content {
    position: relative !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: calc(100% - 40px) !important; /* Account for header */
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

/* Remove any inherited shadows from inner elements */
.side-by-side-container .column-content::after,
.side-by-side-container .column-items::after,
.side-by-side-container .accordion-item::after {
    content: none !important;
    display: none !important;
}