/* ============================================
   NOTIFICATION SYSTEM - MODAL + POPUP STYLES
   ============================================ */

/* --- MODAL OVERLAY --- */
#cpl-notification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center; /* Keeps it vertically centered */
    justify-content: flex-end; /* Pushes the modal to the right */
    animation: fadeIn 0.25s ease;
}

#cpl-notification-modal-overlay.hidden {
    display: none !important;
}

/* --- MODAL BOX --- */
.cpl-notification-modal {
    background: #ffffff;
    border-radius: 3px;
    width: 30%;
    max-width: 560px;
    max-height: 70vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
	margin-right: 2rem;
    animation: slideUp 0.25s ease;
}

/* --- MODAL HEADER --- */
.cpl-notification-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(to bottom, 
        darkblue 0%, 
        darkblue 35%,
        blue 65%,
        #000000 100%);
	color: white;
    flex-shrink: 0;
}

.cpl-notification-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.cpl-notification-modal-close {
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    color: white;
    background: none;
    border: none;
    padding: 0 4px;
    transition: color 0.2s;
    line-height: 1;
	text-shadow: none;
    filter: none;     /* Removes SVG / PNG drop-shadow() filters */
    box-shadow: none;
}

.cpl-notification-modal-close:hover {
    color: #e53e3e;
	background:none;
}

/* --- MODAL BODY --- */
.cpl-notification-modal-body {
    padding: 16px 20px 20px;
    overflow-y: auto;
    flex: 1;
    max-height: 50vh;
}

/* --- NOTIFICATION GROUPS --- */
.cpl-notification-group {
    margin-bottom: 16px;
}

.cpl-notification-group h4 {
    margin: 0 0 8px 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: darkblue;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 4px;
}

/* --- NOTIFICATION ITEMS --- */
.cpl-notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: background 0.15s;
	position: relative;
    transition: background 0.2s ease;
}

/* Synchronize text color when the PARENT container is hovered */
.cpl-notification-item:hover .cpl-notification-link {
    color: white;
    text-decoration: underline;
}

/* Make the link stretch to cover the entire parent box */
.cpl-notification-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 12px 16px; /* Move inner padding here so the entire area is clickable */
    color: inherit;     /* Inherits default text color until hovered */
    text-decoration: none;
    box-sizing: border-box;
}

.cpl-notification-dismiss {
    cursor: pointer;
    color: red;
    font-size: 18px;
    font-weight: 300;
    padding: 0 2px 0 6px;
    transition: color 0.2s;
    line-height: 1;
    background: none;
    border: none;
	text-shadow: none;
	box-shadow: none;
    filter: none;     /* Removes SVG / PNG drop-shadow() filters */
}

.cpl-notification-dismiss:hover {
    color: darkblue;
	background: none;
	text-shadow: none;
    filter: none;     /* Removes SVG / PNG drop-shadow() filters */
    box-shadow: none;
}

/* --- MODAL FOOTER --- */
.cpl-notification-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: linear-gradient(to bottom, 
        darkblue 0%, 
        darkblue 35%,
        blue 65%,
        #000000 100%);
    flex-shrink: 0;
}

.cpl-notification-button {
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid yellow;
    background: darkblue;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
	text-shadow: none;
    filter: none;     /* Removes SVG / PNG drop-shadow() filters */
    box-shadow: none;
}

.cpl-notification-button:hover {
    background: #edf2f7;
	text-shadow: none;
    filter: none;     /* Removes SVG / PNG drop-shadow() filters */
    box-shadow: none;
}

.cpl-notification-button.primary {
    background: darkblue;
    border-color: yellow;
    color: #ffffff;
}

.cpl-notification-button.primary:hover {
    background: blue;
}

/* --- MINIMIZED BELL --- */
.cpl-notification-minimized {
    position: fixed;
    top: 65px;
    right: 20px;
    z-index: 99998;
    background: darkblue;
    color: yellow;
	outline: 1px solid yellow; /* alternative to border which wasn't working */
    padding: 10px 16px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
}

.cpl-notification-minimized:hover {
    background: blue;
    transform: scale(1.03);
}

.cpl-notification-minimized .cpl-minimized-count {
    background: #e53e3e;
    border-radius: 50%;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.cpl-notification-minimized.hidden {
    display: none !important;
}

/* --- NO NOTIFICATIONS --- */
.cpl-no-notifications {
    text-align: center;
    color: #a0aec0;
    padding: 30px 0;
    font-size: 0.95rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
    .cpl-notification-modal {
        width: 95%;
        max-height: 90vh;
    }
    .cpl-notification-modal-body {
        max-height: 40vh;
    }
    .cpl-notification-minimized {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}