.notifications-wrapper {
    position: relative;
}

.notification-bell {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: scale(1.08);
    border-color: rgba(238, 162, 45, 0.3);
}

.notification-bell.has-notifications {
    color: var(--sedona-orange);
    background: rgba(238, 162, 45, 0.15);
    border-color: var(--sedona-orange);
}

.notification-bell.has-notifications:hover {
    background: rgba(238, 162, 45, 0.25);
    box-shadow: 0 0 20px rgba(238, 162, 45, 0.4);
}

.notification-bell.ring {
    animation: ringBell 0.5s ease-in-out;
}

@keyframes ringBell {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(15deg); }
    20%, 40%, 60%, 80% { transform: rotate(-15deg); }
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 5px;
    border: 2px solid var(--sedona-blue-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1050;
}

.notifications-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 12px;
    width: 16px;
    height: 16px;
    background: var(--white);
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--sedona-blue-dark) 0%, var(--sedona-blue) 100%);
    color: var(--white);
    border-bottom: 3px solid var(--sedona-orange);
}

.notifications-mute-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.notifications-mute-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.notifications-mute-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.notifications-mute-btn.muted {
    background: rgba(220, 53, 69, 0.2);
    color: #ffcccb;
}

.notifications-mute-btn.muted:hover {
    background: rgba(220, 53, 69, 0.3);
}

.notifications-mute-btn.muted i {
    color: #ff6b6b;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.view-all-link {
    color: var(--sedona-orange);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(238, 162, 45, 0.1);
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: var(--white);
    background: var(--sedona-orange);
    gap: 8px;
    transform: translateX(2px);
}

.view-all-link i {
    transition: transform 0.2s ease;
}

.view-all-link:hover i {
    transform: translateX(3px);
}

.notifications-body {
    max-height: 400px;
    overflow-y: auto;
}

.notifications-body::-webkit-scrollbar { width: 6px; }
.notifications-body::-webkit-scrollbar-track { background: var(--gray-100); }
.notifications-body::-webkit-scrollbar-thumb { background: var(--sedona-blue); border-radius: 3px; }

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: var(--sedona-blue-subtle);
}

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

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-icon.danger { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.notification-icon.warning { background: rgba(238, 162, 45, 0.15); color: var(--sedona-orange-dark); }
.notification-icon.info { background: rgba(23, 162, 184, 0.15); color: #17a2b8; }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.9rem;
    color: var(--sedona-blue);
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.notification-client {
    font-weight: 500;
    color: var(--gray-600);
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-time::before {
    content: '•';
}

.notification-loading,
.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray-500);
}

.notification-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.notification-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.notification-loading i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

/* Toast Notifications */
.notification-toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.notification-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--sedona-orange);
    animation: slideIn 0.3s ease;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-toast:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.notification-toast.fade-out {
    animation: slideOut 0.3s ease;
    opacity: 0;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

.toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sedona-orange) 0%, var(--sedona-orange-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sedona-blue);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--gray-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toast-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.notification-toast.success-toast {
    border-left-color: var(--success, #198754);
    cursor: default;
}

.notification-toast.success-toast .toast-icon {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

/* Mute Toast */
.mute-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--sedona-blue) 0%, var(--sedona-blue-dark) 100%);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.mute-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mute-toast i { font-size: 1.2rem; }

/* Dashboard Mute Button */
.btn-mute-toggle {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-mute-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-mute-toggle.muted {
    background: rgba(220, 53, 69, 0.25);
    border-color: #dc3545;
    color: #dc3545;
}

.btn-mute-toggle.muted:hover {
    background: rgba(220, 53, 69, 0.35);
    color: #dc3545;
}

@media (max-width: 576px) {
    .notifications-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
    }

    .notification-toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification-toast {
        padding: 12px;
    }

    .toast-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}
