/* ==========================================================================
   Al Areeq Al Sajad - Customer Notification Center Stylesheet
   Luxury VIP styling with micro-animations, priority themes, and responsive design.
   ========================================================================== */

/* Pulsing Red Badge Animation for Storefront Bell & Tabs */
@keyframes pulse-customer-badge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.customer-badge-pulse {
    animation: pulse-customer-badge 2s infinite ease-in-out;
    background: linear-gradient(135deg, #dc3545, #b02a37) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
}

/* Storefront Header Notification Bell & Dropdown */
.customer-notif-dropdown {
    width: 360px;
    max-width: 90vw;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 0 15px rgba(212, 175, 55, 0.15) !important;
    padding: 0 !important;
    overflow: hidden;
    z-index: 1060;
}

@media (max-width: 991.98px) {
    .customer-notif-dropdown,
    .customer-notif-dropdown.show {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: 68px !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 28px) !important;
        max-width: none !important;
        margin: 0 auto !important;
        text-align: center;
    }
}

.customer-notif-header {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: #ffffff;
    padding: 14px 18px;
    border-bottom: 2px solid #d4af37;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.customer-notif-header h6 {
    margin: 0;
    font-family: 'Outfit', serif;
    font-weight: 700;
    color: #f3e5ab;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.customer-notif-body {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #f8f9fa;
}

.customer-notif-body::-webkit-scrollbar {
    width: 6px;
}
.customer-notif-body::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

.customer-notif-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    color: #333333;
    position: relative;
}

.customer-notif-item:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(4px);
}

.customer-notif-item.unread {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(255, 249, 230, 0.6) 100%);
    border-left: 4px solid #d4af37;
}

.customer-notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-right: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Priority & Category Icon Themes */
.customer-notif-icon.high {
    background: linear-gradient(135deg, #ffe5e5, #ffd0d0);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.customer-notif-icon.medium {
    background: linear-gradient(135deg, #fff9e6, #ffefb8);
    color: #b8860b;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.customer-notif-icon.low {
    background: linear-gradient(135deg, #e6f3ff, #cce6ff);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.customer-notif-content {
    flex-grow: 1;
    min-width: 0;
}

.customer-notif-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a1a1a;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-notif-desc {
    font-size: 0.78rem;
    color: #666666;
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.customer-notif-meta {
    font-size: 0.7rem;
    color: #999999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.customer-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4af37;
    box-shadow: 0 0 6px #d4af37;
    display: inline-block;
}

.customer-notif-footer {
    padding: 10px 18px;
    background: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.customer-notif-footer a {
    color: #b8860b;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s;
}

.customer-notif-footer a:hover {
    color: #8c6600;
}

/* ==========================================================================
   Customer Dashboard - Dedicated Notifications Page Styles
   ========================================================================== */
.customer-notif-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.customer-notif-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(212, 175, 55, 0.4);
}

.customer-notif-card.unread {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.07) 0%, #ffffff 100%);
    border-left: 5px solid #d4af37;
}

.customer-notif-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-notif-badge-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.customer-notif-badge-cat.orders {
    background: rgba(212, 175, 55, 0.15);
    color: #997300;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.customer-notif-badge-cat.payments {
    background: rgba(40, 167, 69, 0.12);
    color: #1e7e34;
    border: 1px solid rgba(40, 167, 69, 0.25);
}

.customer-notif-badge-cat.account {
    background: rgba(13, 110, 253, 0.12);
    color: #084298;
    border: 1px solid rgba(13, 110, 253, 0.25);
}

.customer-notif-badge-cat.promotions {
    background: rgba(111, 66, 193, 0.12);
    color: #593196;
    border: 1px solid rgba(111, 66, 193, 0.25);
}

.customer-notif-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-notif-action {
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-notif-action:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.btn-notif-delete:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Empty State */
.customer-notif-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border-radius: 16px;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    margin: 20px 0;
}

.customer-notif-empty i {
    font-size: 3.5rem;
    color: #d4af37;
    margin-bottom: 16px;
    opacity: 0.7;
}

.customer-notif-empty h5 {
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
}

.customer-notif-empty p {
    color: #777777;
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   Mobile Responsive Alignment & Positioning (Profile Notifications & Center Layout)
   ========================================================================== */
@media (max-width: 768px) {
    /* Notification container in profile takes full screen width with little padding */
    .customer-notif-card {
        padding: 18px 14px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Stack card items vertically and center align all content */
    .customer-notif-card,
    .customer-notif-card .customer-notif-card-inner,
    .customer-notif-card > .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .customer-notif-card .customer-notif-card-inner {
        gap: 12px !important;
    }

    /* Checkbox & Icon centering */
    .customer-notif-card .form-check {
        margin: 0 auto !important;
    }

    .customer-notif-card .customer-notif-icon {
        margin: 0 auto !important;
    }

    /* Center header elements (category badge, time, read badge, action buttons) */
    .customer-notif-card-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }

    .customer-notif-card-header > div {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .customer-notif-actions {
        justify-content: center !important;
        margin-top: 4px !important;
    }

    /* Bring text into the middle centered equally */
    .customer-notif-card h6,
    .customer-notif-card p,
    .customer-notif-card a {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: 100% !important;
    }
}

