.notification-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.notification-panel.active {
    right: 0;
}

.notification-header {
    padding: 24px;
    background: linear-gradient(135deg, #00204a 0%, #003d82 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.notification-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00bbf0, #00d4ff);
}

.notification-header h5 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-header h5::before {
    content: '\f0f3';
    font-family: 'FontAwesome';
    font-size: 1.4rem;
    color: #00bbf0;
}

.notification-header button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-header button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.notification-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #f8f9fa;
}

.notification-body::-webkit-scrollbar {
    width: 8px;
}

.notification-body::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.notification-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00bbf0, #0099cc);
    border-radius: 4px;
}

.notification-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0099cc, #007799);
}

.notification-item {
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 187, 240, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.notification-item:hover::before {
    opacity: 1;
}

.notification-item.unread {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border-left-color: #00bbf0;
    box-shadow: 0 2px 12px rgba(0, 187, 240, 0.15);
}

.notification-item.unread::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 10px;
    height: 10px;
    background: #00bbf0;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 187, 240, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(0, 187, 240, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 187, 240, 0.1);
    }
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
    gap: 12px;
}

.notification-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.notification-message {
    color: #495057;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.notification-empty {
    text-align: center;
    padding: 80px 20px;
    color: #adb5bd;
}

.notification-empty i {
    color: #dee2e6;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notification-empty p {
    font-size: 1rem;
    font-weight: 500;
}

.notification-footer {
    padding: 16px;
    border-top: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.notification-footer button {
    width: 100%;
    background: linear-gradient(135deg, #00bbf0 0%, #0099cc 100%);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 187, 240, 0.3);
}

.notification-footer button:hover:not(:disabled) {
    background: linear-gradient(135deg, #0099cc 0%, #007799 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 187, 240, 0.4);
}

.notification-footer button:disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

.notif-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1040;
    transition: opacity 0.3s ease;
}

.notif-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .notification-panel {
        width: 100%;
        right: -100%;
    }

    .notification-header h5 {
        font-size: 1.2rem;
    }

    .notification-item {
        padding: 14px;
    }
}
