/* Modern Notification System CSS */
:root {
    --cms-notif-primary: var(--primary, #c5a880);
    --cms-notif-primary-hover: var(--primary-hover, #a98d65);
    --cms-notif-font: 'Poppins', sans-serif;
}

/* Overlay with Glassmorphism Blur */
.cms-notification-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.cms-notification-overlay.show {
    opacity: 1;
}

/* Main Container */
.cms-notification {
    position: fixed;
    z-index: 99999;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    display: none;
    opacity: 0;
    font-family: var(--cms-notif-font);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 92%;
    width: 440px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Positions with modern slide/fade animations */
.cms-notification.pos-center {
    top: 50%; left: 50%;
    transform: translate(-50%, -45%) scale(0.96);
}
.cms-notification.pos-center.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cms-notification.pos-bottom {
    bottom: 20px; left: 50%;
    transform: translate(-50%, 20px);
    width: 800px;
    max-width: 92%;
}
.cms-notification.pos-bottom.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cms-notification.pos-top {
    top: 20px; left: 50%;
    transform: translate(-50%, -20px);
    width: 800px;
    max-width: 92%;
}
.cms-notification.pos-top.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cms-notification.pos-bottom-left {
    bottom: 25px; left: 25px;
    transform: translateY(20px);
}
.cms-notification.pos-bottom-left.show {
    opacity: 1;
    transform: translateY(0);
}

.cms-notification.pos-bottom-right {
    bottom: 25px; right: 25px;
    transform: translateY(20px);
}
.cms-notification.pos-bottom-right.show {
    opacity: 1;
    transform: translateY(0);
}

.cms-notification.pos-top-left {
    top: 25px; left: 25px;
    transform: translateY(-20px);
}
.cms-notification.pos-top-left.show {
    opacity: 1;
    transform: translateY(0);
}

.cms-notification.pos-top-right {
    top: 25px; right: 25px;
    transform: translateY(-20px);
}
.cms-notification.pos-top-right.show {
    opacity: 1;
    transform: translateY(0);
}

/* Themes */
.cms-notification.theme-dark {
    background: #111111;
    color: #eeeeee;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.cms-notification.theme-primary {
    background: var(--cms-notif-primary);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.cms-notification.theme-minimal {
    border: 1px solid #111111;
    box-shadow: none;
    border-radius: 0;
}

/* Content Area layout */
.cms-notification-inner {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Side layouts for bar-style notification */
.pos-bottom .cms-notification-inner, .pos-top .cms-notification-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 20px 30px;
}

.cms-notification-img-wrapper {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.theme-dark .cms-notification-img-wrapper {
    border-color: rgba(255, 255, 255, 0.08);
}
.cms-notification-img {
    display: block;
    object-fit: cover;
    max-width: 100%;
}

.cms-notification-content {
    flex-grow: 1;
}

/* Title & Description typography */
.cms-notification-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: #111111;
    text-transform: uppercase;
}
.theme-dark .cms-notification-title {
    color: #ffffff;
}
.theme-primary .cms-notification-title {
    color: #ffffff;
}
.theme-minimal .cms-notification-title {
    font-family: inherit;
    font-weight: 800;
}

.cms-notification-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #666666;
}
.theme-dark .cms-notification-desc {
    color: #bbbbbb;
}
.theme-primary .cms-notification-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons and actions */
.cms-notification-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}
.pos-bottom .cms-notification-actions, .pos-top .cms-notification-actions {
    flex-shrink: 0;
}

.cms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.2;
    border: 1px solid transparent;
}

.cms-btn-primary {
    background: #111111;
    color: #ffffff;
}
.cms-btn-primary:hover {
    background: var(--cms-notif-primary);
    color: #ffffff;
}

.theme-dark .cms-btn-primary {
    background: #ffffff;
    color: #111111;
}
.theme-dark .cms-btn-primary:hover {
    background: var(--cms-notif-primary);
    color: #ffffff;
}

.theme-primary .cms-btn-primary {
    background: #ffffff;
    color: var(--cms-notif-primary);
}
.theme-primary .cms-btn-primary:hover {
    background: #111111;
    color: #ffffff;
}

.theme-minimal .cms-btn-primary {
    background: #111111;
    color: #ffffff;
    border-radius: 0;
}
.theme-minimal .cms-btn-primary:hover {
    background: transparent;
    color: #111111;
    border-color: #111111;
}

.cms-btn-secondary {
    background: transparent;
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.cms-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.3);
}

.theme-dark .cms-btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.theme-dark .cms-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
}

.theme-primary .cms-btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.theme-primary .cms-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.theme-minimal .cms-btn-secondary {
    border-radius: 0;
    border-color: #111111;
    color: #111111;
}
.theme-minimal .cms-btn-secondary:hover {
    background: #111111;
    color: #ffffff;
}

/* Modern Close Button */
.cms-btn-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #666666;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 10;
}
.cms-btn-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #111111;
    transform: rotate(90deg);
}

.theme-dark .cms-btn-close {
    background: rgba(255, 255, 255, 0.06);
    color: #cccccc;
}
.theme-dark .cms-btn-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.theme-primary .cms-btn-close {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.theme-primary .cms-btn-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.theme-minimal .cms-btn-close {
    background: transparent;
    border-radius: 0;
    color: #111111;
}
.theme-minimal .cms-btn-close:hover {
    transform: scale(1.1);
}

/* Responsiveness */
@media (max-width: 768px) {
    .cms-notification {
        width: calc(100% - 30px) !important;
        left: 15px !important;
        right: 15px !important;
        border-radius: 4px !important;
        transform: translateY(20px) !important;
    }
    .cms-notification.show {
        transform: translateY(0) !important;
    }
    .cms-notification.pos-center {
        top: auto !important;
        bottom: 20px !important;
        transform: translateY(20px) scale(0.98) !important;
    }
    .cms-notification.pos-center.show {
        transform: translateY(0) scale(1) !important;
    }
    
    .pos-bottom .cms-notification-inner, .pos-top .cms-notification-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .cms-notification-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
