/* =========================
    NOTIFICATIONS (FIXED)
========================== */

.notification-wrapper {
    position: relative;
}

/* Overlay */
.notification-overlay {
    position: fixed;
    top: 75px;
    right: 0;

    width: 556px;
    height: 85vh;

    background: var(--clr-white);
    border-left: 1px solid #e5e7eb;
    border-radius: 10px 0 0 10px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);

    opacity: 0;
    transform: translateX(20px); /* slide from right */
    pointer-events: none;

    transition: all 0.25s ease;
    z-index: 2000;

    display: flex;
    flex-direction: column;
}

/* ACTIVE STATE */
.notification-overlay.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
/* List */
.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;

    flex: 1;
    overflow-y: auto;
}

/* Items */
.notification-item {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
}

.notification-item.unread {
    background-color: #f0fdf4;
}

.notification-item:hover {
    background-color: #f9fafb;
}

.notification-empty {
    padding: 12px;
    text-align: center;
    color: #9ca3af;
}

/* Badge */
.notification-badge {
    background: var(--clr-red);
    color: var(--clr-white);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 6px;
}

.hidden {
    display: none;
}

.notification-table-wrapper {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Make table compact for overlay */
.notification-table {
    font-size: 13px;
}

/* Reduce padding for dropdown feel */
.notification-table td,
.notification-table th {
    padding: 8px !important;
}

/* Unread highlight override (better than Bootstrap green) */
.notification-table tbody tr.unread {
    background-color: var(--clr-footer-bg);
    color: var(--clr-6) !important;
}

.notification-detail-card {
    background: var(--clr-6);
    border: 1px solid var(--clr-input-border);
    border-radius: 14px;
    padding: 20px;
    color: var(--clr-white);
}

/* HERO IMAGE */
.nd-image {
    border-radius: 14px;
    padding: 35px;
    margin-bottom: 16px;
    text-align: center;
    color: var(--clr-black);
    position: relative;
    overflow: hidden;
}

@keyframes floatGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nd-emoji {
    font-size: 42px;
    position: relative;
    z-index: 2;
    display: inline-block;
}

/* TADA SHAKE ANIMATION */
.nd-emoji.tada {
    animation: tadaShake 1.2s ease-in-out infinite;
}

@keyframes tadaShake {
    0% {
        transform: scale(1) rotate(0deg);
    }
    10% {
        transform: scale(0.9) rotate(-6deg);
    }
    20% {
        transform: scale(1.1) rotate(6deg);
    }
    30% {
        transform: scale(1.1) rotate(-6deg);
    }
    40% {
        transform: scale(1.1) rotate(6deg);
    }
    50% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.nd-image-text {
    font-size: 14px;
    margin-top: 6px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.nd-info {
    background: linear-gradient(135deg, var(--clr-8), var(--clr-gold));
}
.nd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.nd-title {
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
}
