.custom_release-release-notes-container {
    margin: 2em auto;
    padding: 0 1em;
    position: relative;
    min-height: 200px;
}

.custom_release-release-notes-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom_release-release-notes-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #319645;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.custom_release-release-note-item {
    margin-bottom: 2em;
    padding: 1.5em;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add alternating background colors */
.custom_release-release-note-item:nth-child(odd) {
    background-color: #fff;
}

.custom_release-release-note-item:nth-child(even) {
    background-color: #f8f9fa;
}

.custom_release-release-note-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.custom_release-release-note-item h3 {
    margin: 0 0 0.5em;
    color: #333;
    font-size: 1.4em;
}

.custom_release-release-note-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom_release-release-note-item h3 a:hover {
    color: #319645;
}

/* Nested selectors for bell items */
.custom_release-rnd-bell-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.custom_release-rnd-bell-item h4 a {
    color: #005AAA;
    text-decoration: none;
    display: inline-block;
}

.custom_release-rnd-bell-item h4 a:hover {
    color: #005AAA;
}

.custom_release-release-note-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom_release-release-note-date .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #319645;
}

.custom_release-release-note-preview {
    color: #444;
    line-height: 1.6;
    margin-bottom: 1em;
}

.custom_release-rnd-read-more {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #319645;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: 2px solid #319645;
}

.custom_release-rnd-read-more:hover {
    background-color: #fff;
    color: #000 !important;
    text-decoration: none !important;
    border: 2px solid #319645;
}

/* Single Release Note Styles */
.custom_release-release-note-single-container {
    max-width: 800px;
    margin: 2em auto;
    padding: 0 1em;
}

.custom_release-release-note-single {
    background-color: #fff;
    padding: 2em;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.custom_release-release-note-single h1 {
    margin: 0 0 0.5em;
    color: #333;
    font-size: 2em;
}

.custom_release-release-note-meta {
    margin-bottom: 2em;
    color: #666;
    font-size: 0.9em;
}

.custom_release-release-note-version {
    font-weight: bold;
    margin-right: 1em;
}

.custom_release-release-note-content {
    color: #444;
    line-height: 1.8;
    margin-bottom: 2em;
}

.custom_release-release-note-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.custom_release-nav-previous a,
.custom_release-nav-next a {
    color: #319645;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom_release-nav-previous a:hover,
.custom_release-nav-next a:hover {
    color: #005177;
}

.custom_release-rnd-back-button {
    display: inline-block;
    padding: 0.8em 1.5em;
    background-color: #319645;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: 2px solid #319645;
}

.custom_release-rnd-back-button:hover {
    background-color:#fff;
    color: #000 !important;
    text-decoration: none !important;
    border: 2px solid #319645;
}

/* Filter Container Styles */
.custom_release-release-notes-filters {
    margin: 2em auto;
    padding: 20px;
    background-color: #005AAA;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.custom_release-rnd-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 0;
}

.custom_release-rnd-filter-select {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #1d2327;
    cursor: pointer;
    transition: border-color 0.3s ease;
    width:100%;
    margin-bottom:0px !important;
}

.custom_release-rnd-filter-select:hover {
    border-color: #005AAA;
}

.custom_release-rnd-filter-select:focus {
    border-color: #005AAA;
    box-shadow: 0 0 0 1px #005AAA;
    outline: none;
}

.custom_release-rnd-filter-button {
    padding: 8px 16px;
    background-color: #319645;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.custom_release-rnd-filter-button:hover {
    background-color: #319645;
}

/* Two-column layout for select options */
@media (min-width: 768px) {
    .custom_release-rnd-filter-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .custom_release-rnd-filter-button {
        grid-column: span 2;
        justify-self: center;
        min-width: 200px;
    }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .custom_release-release-notes-filters {
        margin: 1em auto;
        padding: 15px;
    }
    
    .custom_release-rnd-filter-form {
        flex-direction: column;
    }
    
    .custom_release-rnd-filter-select {
        width: 100%;
    }
    
    .custom_release-rnd-filter-button {
        width: 100%;
    }
}

/* Bell Icon Styles - Scoped to our plugin */
.custom_release-rnd-bell-container {
    position: relative;
    display: inline-block;
    z-index: 1000; /* Ensure it stays above other elements */
}

.custom_release-rnd-bell-icon {
    cursor: pointer;
    padding: 10px;
    position: relative;
}

.custom_release-rnd-bell-icon .dashicons {
    font-size: 24px;
    color: #319645 !important;
    transition: color 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.custom_release-rnd-bell-icon:hover .dashicons {
    color: #0073aa;
}

.custom_release-rnd-bell-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 600px !important;
    z-index: 1001; /* Higher than container */
    padding: 15px;
    margin-top: 5px;
}

/* Ensure descriptions are hidden by default in bell dropdown */
.custom_release-rnd-bell-dropdown .custom_release-rnd-bell-description {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom_release-rnd-bell-icon:hover .custom_release-rnd-bell-dropdown {
    display: block;
}

.custom_release-rnd-bell-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.custom_release-rnd-bell-item:last-child {
    border-bottom: none;
}

.custom_release-rnd-bell-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.custom_release-rnd-bell-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    user-select: none;
    line-height: 1.4;
}

.custom_release-rnd-bell-title:hover {
    color: #0073aa;
}

.custom_release-rnd-expand-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom_release-rnd-bell-title.expanded .custom_release-rnd-expand-icon {
    transform: rotate(90deg);
}

.custom_release-rnd-bell-container .custom_release-rnd-bell-description {
    margin-top: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    border-top: 1px solid #f0f0f0;
    display: none !important; /* Force hidden by default */
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

.custom_release-rnd-bell-container .custom_release-rnd-bell-description.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 200px !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

.custom_release-rnd-bell-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom_release-rnd-bell-date .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #319645;
}

.custom_release-rnd-bell-preview {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    margin: 0;
}

/* Add a small arrow to the dropdown */
.custom_release-rnd-bell-dropdown:before {
    content: '';
    position: absolute;
    top: -6px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    z-index: 1002;
}

.custom_release-rnd-bell-dropdown:after {
    content: '';
    position: absolute;
    top: -7px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ddd;
    z-index: 1001;
}

/* Ensure proper stacking context */
.custom_release-rnd-bell-container * {
    box-sizing: border-box;
}

/* Prevent conflicts with other dropdowns */
.custom_release-rnd-bell-dropdown {
    pointer-events: auto;
}

/* Ensure proper display in various contexts */
@media screen and (max-width: 782px) {
    .custom_release-rnd-bell-container {
        position: static;
    }
    
    .custom_release-rnd-bell-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        overflow-y: auto;
        margin: 0;
        border-radius: 0;
    }
    
    .custom_release-rnd-bell-dropdown:before,
    .custom_release-rnd-bell-dropdown:after {
        display: none;
    }
}

.custom_release-rnd-bell-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.custom_release-rnd-view-all {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #319645;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid #319645;
}

.custom_release-rnd-view-all:hover {
    background-color: #fff;
    color: #000 !important;
    text-decoration: none !important;
    border: 2px solid #319645;
}

.custom_release-rnd-view-all .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    color: #eee !important;
}

.custom_release-rnd-view-all:hover .dashicons {
    transform: translateX(3px);
    text-decoration: none !important;
    color: #000 !important;
}

/* Ensure proper spacing in mobile view */
@media screen and (max-width: 782px) {
    .custom_release-rnd-bell-footer {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .custom_release-rnd-view-all {
        width: 100%;
        justify-content: center;
    }
}

/* Load More Button Styles */
.custom_release-rnd-load-more-container {
    text-align: center;
    margin: 2em 0;
    padding: 1em;
}

.custom_release-rnd-load-more {
    padding: 10px 20px;
    background-color: #319645;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #319645;
}

.custom_release-rnd-load-more:hover {
    background-color: #fff;
    color: #000;
    border: 2px solid #319645;
}

.custom_release-rnd-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Spinner */
.custom_release-rnd-loading {
    text-align: center;
    margin: 2em 0;
    padding: 1em;
}

.custom_release-rnd-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #319645;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.custom_release-custom_row {
    width: 100% !important;
    display: flex !important;
}
.custom_release-col_sm_10 {
    width: 84% !important;
}
.custom_release-col_sm_12 {
    width: 100% !important;
}
.custom_release-col_sm_2 {
    margin: auto !important;
    width: 16% !important;
    text-align: right !important;
}