/**
 * YOOAdmin - Notifications UI styles
 *
 * @package YOOAdmin
 */

/* === NOTIFICATION BADGE === */
.yp-notification-badge-container {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.yp-notification-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.yp-notification-toggle:hover {
    background-color: rgba(75, 75, 75, 0.1);
}

.yp-notification-toggle .dashicons {
    font-size: 18px;
    color: #4B4B4B;
}

.yp-notification-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #d63638;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

/* === NOTIFICATION DROPDOWN === */
.yp-notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: 600px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.yp-notifications-dropdown.show {
    display: flex;
}

/* Full-screen modal overlay and popup (covers header + content) */
.yp-modal-overlay {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background: rgba(0, 0, 0, 0.35);
    z-index: 110000; /* higher than header */
    display: none;
    align-items: center;
    justify-content: center;
}

.yp-modal-overlay.is-visible {
    display: flex;
}

.yp-modal {
    position: fixed;
    z-index: 110001; /* above overlay */
}

/* === DROPDOWN HEADER === */
.yp-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.yp-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #4B4B4B;
    margin: 0;
}

.yp-notifications-mark-read {
    background: none;
    border: none;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--yp-brand, #eda934);
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.yp-notifications-mark-read:hover,
.yp-notifications-mark-read:focus {
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
}

.yp-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === FILTER TABS === */
.yp-filter-tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
}

.yp-filter-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.yp-filter-tab {
    flex: 0 0 auto;
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #5e5e5e;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.yp-filter-tab:hover {
    background-color: rgba(75, 75, 75, 0.05);
    color: #4B4B4B;
}

.yp-filter-tab.active {
    color: var(--yp-brand, #eda934);
    border-bottom-color: var(--yp-brand, #eda934);
}

.yp-tab-count {
    display: inline-block;
    background: #e0e0e0;
    color: #4B4B4B;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    min-width: 18px;
    text-align: center;
}

.yp-filter-tab.active .yp-tab-count {
    background: var(--yp-brand, #eda934);
    color: white;
}

.yp-more-tabs-btn {
    margin-left: auto;
}

/* More-options button (three dots) */
.yp-filter-tabs-more {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #5e5e5e;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    margin-left: auto;
    min-width: 40px;
    text-align: center;
    line-height: 1;
}

.yp-filter-tabs-more:hover {
    background-color: rgba(75, 75, 75, 0.05);
    color: #4B4B4B;
}

.yp-filter-tabs-more:active {
    background-color: rgba(75, 75, 75, 0.1);
}

/* Hide tabs that are marked as hidden */
.yp-filter-tab.yp-tab-hidden {
    display: none !important;
}

/* Show tabs when they're made visible via toggle */
.yp-filter-tab.yp-tab-visible {
    display: inline-block !important;
}

/* === NOTIFICATION LIST === */
.yp-notifications-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
}

/* === LOADING SPINNER === */
.yp-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 200px;
}

.yp-spinner-circle {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--yp-brand, #eda934);
    border-radius: 50%;
    animation: yp-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.yp-loading-text {
    font-size: 14px;
    color: var(--yp-text-secondary, #666);
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

@keyframes yp-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* === NOTIFICATION ITEM === */
.yp-notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--yp-text-primary, #1a1a1a);
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--yp-border-light, #f0f0f0);
    position: relative;
    cursor: pointer;
}

.yp-notification-item:hover {
    background: var(--yp-hover-bg, #f8f9fa);
}

.yp-notification-item:last-child {
    border-bottom: none;
}

.yp-notification-item.yp-unread,
.yp-notification-item.yp-notification-unread {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.07) 0%, rgba(255, 255, 255, 0) 45%);
}

.yp-notification-item.yp-notification-unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--yp-primary, #eda934);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(238, 180, 78, 0.2);
    z-index: 1;
}

.yp-notification-item.yp-notification-read {
    opacity: 0.8;
    background: transparent;
}

.yp-notification-item.yp-notification-read::before {
    display: none;
}

/* Notification Icon Wrapper (like old system) */
.yp-notification-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yp-notification-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--yp-primary, #eda934);
    display: inline-block;
    line-height: 1;
}

/* Fallback for direct dashicons (if icon wrapper is missing) */
.yp-notification-item > .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--yp-primary, #eda934);
    flex-shrink: 0;
    display: inline-block;
    line-height: 1;
}

.yp-notification-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.yp-notification-item.yp-notification-unread .yp-notification-content {
    padding-left: 12px;
}

.yp-notification-content strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--yp-text-primary, #1a1a1a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.yp-notification-content .yp-notification-text {
    color: var(--yp-text-secondary, #666);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 2px;
    display: block;
}

.yp-notification-content .yp-notification-meta,
.yp-notification-content .yp-notification-time {
    font-size: 10px;
    color: var(--yp-text-muted, #7a7a7a);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
}

/* Fallback for spans without classes (like old system) */
.yp-notification-content span:not(.yp-notification-text):not(.yp-notification-meta):not(.yp-notification-time) {
    font-size: 11px;
    color: var(--yp-text-secondary, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Notification Actions Wrapper (like old system) */
.yp-notification-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yp-notification-expand {
    flex-shrink: 0;
    color: var(--yp-primary, #eda934);
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.yp-notification-item:hover .yp-notification-expand {
    transform: translateX(3px);
}

/* === EMPTY STATE === */
.yp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.yp-empty-icon {
    margin-bottom: 16px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    order: 1;
}

.yp-empty-icon .dashicons {
    font-size: 48px;
    color: #e0e0e0;
    position: relative;
    z-index: 11;
    display: inline-block;
    line-height: 1;
    width: 48px;
    height: 48px;
}

.yp-empty-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #4B4B4B;
    position: relative;
    z-index: 1;
    order: 2;
}

.yp-empty-message {
    margin: 0;
    font-size: 14px;
    color: #5e5e5e;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    order: 3;
}

/* === NOTIFICATION MODAL === */
#yp-notification-modal {
    position: fixed;
    inset: 0;
    z-index: 110000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#yp-notification-modal[style*="display: flex"],
#yp-notification-modal.show {
    display: flex !important;
}

.yp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 110000;
}

.yp-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.yp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--_yp-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yp-modal-close:hover {
    background: var(--_yp-primary);
    transform: rotate(90deg);
}

/* RTL: Fix close button position so it doesn't overlap the title */
[dir="rtl"] .yp-modal-close {
    right: auto;
    left: 15px;
}

.yp-modal-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.yp-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 25px 20px;
    border-bottom: 1px solid var(--yp-border-color, #e5e5e5);
}

.yp-modal-icon {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--yp-primary, #eda934);
    flex-shrink: 0;
}

.yp-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--yp-text-primary, #1a1a1a);
    line-height: 1.3;
}

.yp-modal-body {
    padding: 25px;
    max-height: 50vh;
    overflow-y: auto;
}

.yp-modal-settings-link {
    color: var(--yp-primary, #eda934);
    text-decoration: none;
}

.yp-modal-settings-link:hover {
    color: color-mix(in srgb, var(--yp-primary, #eda934) 80%, #000);
    text-decoration: none;
}

.yp-modal-text {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--yp-text-primary, #1a1a1a);
}

.yp-modal-details {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--yp-text-secondary, #666);
}

.yp-modal-details p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: var(--yp-text-secondary, #666);
}

.yp-modal-details strong {
    color: var(--yp-text-primary, #1a1a1a);
    font-weight: 600;
}

.yp-modal-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid var(--yp-border-color, #e5e5e5);
    background: var(--yp-header-bg-light, #f8f9fa);
    position: relative;
    flex-wrap: wrap;
}

.yp-modal-action-btn,
.yp-modal-dismiss-btn,
.yp-modal-delete-btn,
.yp-modal-snooze-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yp-modal-action-btn {
    background: #eda934;
    color: white;
}

.yp-modal-action-btn:hover {
    background: #dba617;
}

.yp-modal-dismiss-btn {
    background: white;
    color: #4B4B4B;
    border: 1px solid #e0e0e0;
}

.yp-modal-dismiss-btn:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

.yp-modal-delete-btn {
    background: transparent;
    color: #d63638;
    border: none;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.yp-modal-delete-btn .dashicons,
.yp-modal-snooze-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Dashicons font renders high; push down to align with text */
    position: relative;
    top: 4px;
}

.yp-modal-delete-btn:hover {
    color: #b32d2e;
    text-decoration: underline;
}

.yp-modal-snooze-btn {
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
    position: relative;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.yp-modal-snooze-btn:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: var(--yp-brand, #eda934);
}


.yp-modal-snooze-btn .yp-snooze-text,
.yp-modal-delete-btn .yp-delete-text {
    font-size: 13px;
    line-height: 1;
    display: inline-block;
}

/* Snooze Options - Inline Layout */
.yp-snooze-options {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid #e0e0e0;
}

.yp-snooze-header {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.yp-snooze-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.yp-snooze-option {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--yp-brand, #eda934);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
    color: var(--yp-brand, #eda934);
    white-space: nowrap;
}

.yp-snooze-option:hover {
    background: var(--yp-brand, #eda934);
    color: white;
}

.yp-snooze-custom {
    display: flex;
    align-items: center;
}

.yp-snooze-custom-btn {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid var(--yp-brand, #eda934);
    color: var(--yp-brand, #eda934);
    background: white;
}

.yp-snooze-custom-btn:hover {
    background: var(--yp-brand, #eda934);
    color: white;
}

/* Custom Snooze Popup */
.yp-snooze-custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yp-snooze-custom-popup {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 90%;
}

.yp-snooze-custom-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.yp-snooze-custom-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.yp-snooze-custom-popup-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.yp-snooze-custom-popup-close:hover {
    background: #f0f0f0;
}

.yp-snooze-custom-popup-close .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #666;
}

.yp-snooze-custom-popup-body {
    padding: 25px;
}

.yp-snooze-custom-popup-body label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.yp-snooze-custom-time-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.yp-snooze-custom-time-input:focus {
    outline: none;
    border-color: var(--yp-brand, #eda934);
    box-shadow: 0 0 0 3px rgba(238, 180, 78, 0.1);
}

.yp-snooze-custom-popup-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.yp-snooze-custom-popup-cancel {
    padding: 8px 16px;
    font-size: 13px;
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
}

.yp-snooze-custom-popup-cancel:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

.yp-snooze-custom-popup-confirm {
    padding: 8px 16px;
    font-size: 13px;
    background: var(--yp-brand, #eda934);
    color: white;
    border: none;
}

.yp-snooze-custom-popup-confirm:hover {
    background: #dba617;
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .yp-notifications-dropdown {
        background: #fff;
        border-color: #e0e0e0;
        color: #1a1a1a;
    }
    
    .yp-dropdown-header {
        background: #f8f9fa;
        border-bottom-color: #e0e0e0;
    }
    
    .yp-header-title {
        color: #1a1a1a;
    }
    
    .yp-filter-tabs {
        background: #f8f9fa;
        border-bottom-color: #e0e0e0;
    }
    
    .yp-filter-tab {
        color: #5e5e5e;
    }
    
    .yp-filter-tab:hover {
        background-color: rgba(75, 75, 75, 0.05);
        color: #4B4B4B;
    }
    
    .yp-filter-tab.active {
        color: var(--yp-brand, #eda934);
        border-bottom-color: var(--yp-brand, #eda934);
    }
    
    .yp-notifications-list {
        background: #fff;
    }
    
    .yp-notification-item {
        background: #fff;
        border-bottom-color: #f0f0f0;
    }
    
    .yp-notification-item:hover {
        background-color: #f8f9fa !important;
    }
    
    .yp-notification-item.yp-notification-unread {
        background: linear-gradient(90deg, rgba(13, 110, 253, 0.07) 0%, rgba(255, 255, 255, 0) 45%);
    }
    
    .yp-notification-item .dashicons {
        color: var(--yp-primary, #eda934);
    }
    
    .yp-notification-content strong,
    .yp-notification-content span {
        color: #333;
    }
    
    .yp-modal-content {
        background: #fff;
        color: #333;
    }
    
    .yp-modal-header {
        background: #f8f9fa;
        border-bottom-color: #e0e0e0;
    }
    
    .yp-modal-title {
        color: #333;
    }
    
    .yp-modal-body {
        color: #333;
    }
    
    .yp-modal-footer {
        background: #f8f9fa;
        border-top-color: #e0e0e0;
    }
}

/* === TOAST MESSAGES === */
.yp-toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-left: 4px solid var(--yp-brand, #eda934);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    max-width: 500px;
    z-index: 100000;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.yp-toast-message.yp-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.yp-toast-message.yp-toast-success {
    border-left-color: var(--yp-brand, #eda934);
}

.yp-toast-message.yp-toast-error {
    border-left-color: #d63638;
}

.yp-toast-message.yp-toast-info {
    border-left-color: var(--yp-brand, #eda934);
}

.yp-toast-icon {
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.yp-toast-success .yp-toast-icon {
    color: var(--yp-brand, #eda934);
}

.yp-toast-error .yp-toast-icon {
    color: #d63638;
}

.yp-toast-info .yp-toast-icon {
    color: var(--yp-brand, #eda934);
}

.yp-toast-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* === WORDPRESS ADMIN BAR NOTIFICATIONS === */
#wp-admin-bar-yooadmin-notifications .yp-notification-badge-container {
    position: relative;
    display: inline-block;
}

#wp-admin-bar-yooadmin-notifications .yp-notification-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

#wp-admin-bar-yooadmin-notifications .yp-notification-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: inherit;
    line-height: 20px;
}

#wp-admin-bar-yooadmin-notifications .yp-notification-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background-color: #d63638;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    text-align: center;
    line-height: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wp-admin-bar-yooadmin-notifications > .ab-item {
    padding: 0 8px;
}

#wp-admin-bar-yooadmin-notifications:hover .yp-notification-toggle {
    opacity: 0.8;
}

@media (max-width: 782px) {
    .yp-notifications-dropdown {
        position: fixed !important;
        top: 70px !important;
        left: 50% !important;
        right: auto !important;
        width: 90vw !important;
        max-width: calc(100vw - 32px) !important;
        transform: translateX(-50%) !important;
    }

    #yp-notification-modal {
        padding: 12px;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
    }

    .yp-modal-content {
        max-width: calc(100vw - 24px);
        margin: 0 auto;
    }
}
