/* ============================================
   Notification Bell - Exact Reference Match
   1. No Bell Icon (Badge only)
   2. Dropdown: White card, rounded corners
   3. Unread Items: Full yellow card style
   ============================================ */

/* CSS Variables */
.aura-wrap,
.aura-shell,
.aura-bell,
.aura-bookings-header {
    --aura-accent-gold: #fbbf24;
    /* Adjusted gold to match image better */
    --aura-accent-gold-light: #fffbeb;
    --aura-accent-gold-border: #fcd34d;
    --aura-blue: #2563eb;
    --aura-unread-bg: #fffdf5;
}

/* Bell Container */
.aura-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

/* Bell Button - Show Icon & Badge */
.aura-bell__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    /* Pill shape for container */
    background: transparent;
    cursor: pointer;
    transition: all .2s ease;
}

/* Ensure bell icon is visible and styled - GOLDEN */
.aura-bell__btn .dashicons,
.aura-bell__btn svg,
.aura-bell__btn .dashicons-bell {
    display: inline-block !important;
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    color: #c78c40;
    /* Custom Gold Color */
    margin-right: 4px;
    transition: color .2s ease;
}

/* SVG fallback if Dashicons font fails to load */
.aura-bell__btn .dashicons-bell:empty,
.aura-bell__btn .dashicons-bell:not(.dashicons-before) {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c78c40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}

/* ============================================
   UNREAD STATE: Red Color + Shake Animation
   ============================================ */
@keyframes aura-bell-shake {
    0% {
        transform: rotate(0);
    }

    15% {
        transform: rotate(15deg);
    }

    30% {
        transform: rotate(-15deg);
    }

    45% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(5deg);
    }

    90% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0);
    }
}

.aura-bell--unread .aura-bell__btn .dashicons,
.aura-bell.has-unread .aura-bell__btn .dashicons,
.aura-bell--unread .aura-bell__btn svg,
.aura-bell.has-unread .aura-bell__btn svg {
    color: #ef4444 !important;
    /* Red-500 */
    animation: aura-bell-shake 1.2s cubic-bezier(.36, .07, .19, .97) both infinite;
    transform-origin: top center;
}

.aura-bell--unread .aura-bell__btn:hover .dashicons,
.aura-bell.has-unread .aura-bell__btn:hover .dashicons {
    color: #dc2626 !important;
    /* Red-600 */
}

.aura-bell__btn:hover .dashicons {
    color: #b45309;
}

.aura-bell__btn:hover {
    background: #fffbeb;
    /* Light gold bg on hover */
}

/* Badge - GREY rounded rectangle pill */
.aura-bell__badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    /* Grey border */
    background: #f3f4f6;
    /* Grey background */
    color: #374151;
    /* Grey text */
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
}

.aura-bell--unread .aura-bell__badge,
.aura-bell.has-unread .aura-bell__badge {
    border-color: #d1d5db;
    background: #e5e7eb;
    color: #111827;
}

/* ============================================
   DROPDOWN - Clean white card
   ============================================ */
.aura-bell__dropdown,
.aura-notifications-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 380px;
    min-width: 340px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
    /* Deeper shadow */
    padding: 20px;
    z-index: 2147483647;
    overflow: hidden;
    max-height: 520px;
    box-sizing: border-box;
}

.aura-bell__dropdown[hidden],
.aura-notifications-dropdown[hidden] {
    display: none !important;
}

/* Notification List - More spacing */
.aura-bell__list {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
    box-sizing: border-box;
}

/* ============================================
   NOTIFICATION ITEM - Clean card style
   ============================================ */
.aura-bell__item {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: none;
    /* Flat by default */
}

.aura-bell__item:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

/* Unread item - Full Yellow Card Style (Reference Match) */
.aura-bell__item.is-unread {
    border: 1px solid #fcd34d;
    /* Yellow border */
    border-left: 1px solid #fcd34d;
    /* Override previous left border if any */
    background: #fffdf5;
    /* Light yellow bg */
    box-shadow: 0 1px 2px rgba(251, 191, 36, 0.1);
}

.aura-bell__item.is-unread:hover {
    border-color: #fbbf24;
    background: #fffbeb;
}

/* Item Title */
.aura-bell__item-title {
    font-weight: 700;
    /* Bold title */
    font-size: 15px;
    color: #111827;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

/* Item Body */
.aura-bell__item-body {
    font-size: 13px;
    color: #374151;
    /* Slightly darker gray */
    margin-top: 4px;
    line-height: 1.5;
}

/* Item Meta - Timestamp */
.aura-bell__item-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* ============================================
   FOOTER - Centered "Mark all as read" button
   ============================================ */
.aura-bell__footer {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
    display: flex;
    justify-content: center;
    background: transparent;
}

/* Mark all as read button - Blue pill */
.aura-bell__markall {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 9999px;
    /* full pill */
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
    transition: all .2s ease;
}

.aura-bell__markall:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Empty State */
.aura-bell__empty {
    font-size: 14px;
    color: #9ca3af;
    padding: 32px 0;
    text-align: center;
    font-style: italic;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.aura-bell-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
    max-width: 340px;
    width: 100%;
    pointer-events: none;
}

.aura-bell-toast__card {
    pointer-events: auto;
    background: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #f5f5f7;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aura-bell-toast__card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.aura-bell-toast__title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.aura-bell-toast__body {
    font-size: 13px;
    line-height: 1.4;
    color: #d2d2d7;
}

/* Mobile */
@media (max-width: 640px) {
    .aura-bell {
        margin-left: 8px;
    }

    .aura-bell__dropdown,
    .aura-notifications-dropdown {
        width: 300px;
        right: -20px;
    }
}