﻿.notification-dropdown {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 8px 0;
}

#notificationList {
    padding: 10px;
}

.notification-item {
    background: #ffffff;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #f1f1f1;
    position: relative;
}

.notification-item:hover {
        background-color: #f8f9fa;
        transform: translateY(-1px);
}

.notification-item.unread {
        background: #eef6ff;
        border-color: #cfe4ff;
}


.notification-item.unread::before {
      content: "";
      position: absolute;
      left: 0;
      top: 10px;
      bottom: 10px;
      width: 4px;
      border-radius: 4px;
      background-color: #1877f2;
}

.notification-title {
    font-weight: 600;
    color: #212529;
    font-size: 17px;
    margin-bottom: 4px;
}

.notification-message {
    color: #495057;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-time {
    font-size: 14px;
    color: #868e96;
    text-align: right;
}


.dropdown-header {
    padding: 12px 16px;
    font-size: 18px;
}


.dropdown-divider {
    display: none;
}

#notificationToastContainer {
    position: fixed;
    top: 120px;
    right: 120px;
    z-index: 9999;
    max-width: 380px;
}

.notification-toast {
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    overflow: hidden;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
    position: relative;
}

    .notification-toast:hover {
        transform: translateX(-5px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .notification-toast.closing {
        animation: slideOutRight 0.3s ease-in forwards;
    }

    .notification-toast.info {
        border-left-color: #17a2b8;
    }

    .notification-toast.success {
        border-left-color: #28a745;
    }

    .notification-toast.warning {
        border-left-color: #ffc107;
    }

    .notification-toast.danger {
        border-left-color: #dc3545;
    }

    .notification-toast.reminder {
        border-left-color: #f4d03f;
    }

    .notification-toast .toast-header {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .notification-toast .toast-header strong {
            flex: 1;
            font-size: 14px;
            font-weight: 600;
            color: #2c3e50;
        }

        .notification-toast .toast-header small {
            color: #6c757d;
            font-size: 12px;
        }

        .notification-toast .toast-header .close {
            margin-left: 8px;
            padding: 0;
            background: transparent;
            border: none;
            font-size: 20px;
            font-weight: 300;
            color: #6c757d;
            cursor: pointer;
            opacity: 0.6;
            transition: all 0.2s ease;
            line-height: 1;
        }

            .notification-toast .toast-header .close:hover {
                opacity: 1;
                transform: rotate(90deg);
                color: #dc3545;
            }

    .notification-toast .toast-body {
        padding: 16px;
        font-size: 14px;
        color: #495057;
        line-height: 1.5;
    }


    .notification-toast .notification-icon {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        flex-shrink: 0;
    }

    .notification-toast.info .notification-icon {
        background: #d1ecf1;
        color: #0c5460;
    }

    .notification-toast.success .notification-icon {
        background: #d4edda;
        color: #155724;
    }

    .notification-toast.warning .notification-icon {
        background: #fff3cd;
        color: #856404;
    }

    .notification-toast.danger .notification-icon {
        background: #f8d7da;
        color: #721c24;
    }

    .notification-toast.reminder .notification-icon {
        background: #fff8dc;
        color: #856404;
    }

    .notification-toast .progress-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, #007bff, #0056b3);
        animation: shrinkWidth 5s linear forwards;
    }

    .notification-toast.info .progress-bar {
        background: linear-gradient(90deg, #17a2b8, #117a8b);
    }

    .notification-toast.success .progress-bar {
        background: linear-gradient(90deg, #28a745, #1e7e34);
    }

    .notification-toast.warning .progress-bar {
        background: linear-gradient(90deg, #ffc107, #e0a800);
    }

    .notification-toast.danger .progress-bar {
        background: linear-gradient(90deg, #dc3545, #bd2130);
    }

    .notification-toast.reminder .progress-bar {
        background: linear-gradient(90deg, #f4d03f, #d4af37);
    }

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes shrinkWidth {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}


@media (max-width: 576px) {
    #notificationToastContainer {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification-toast {
        border-radius: 8px;
    }
}

.notification-item.danger.unread {
    background: #ffe6e6;
    border-color: #ffcccc;
}

    .notification-item.danger.unread:hover {
        background-color: #ffd9d9;
    }


    .notification-item.danger.unread::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 4px;
        border-radius: 4px;
        background-color: #dc3545;
    }


.notification-item.danger:not(.unread) {
    background: #ffffff;
    border-color: #f1f1f1;
}

    .notification-item.danger:not(.unread):hover {
        background-color: #f8f9fa;
    }

.notification-item.reminder.unread {
    background: #fffaed;
    border-color: #f4d03f;
}

    .notification-item.reminder.unread:hover {
        background-color: #fff8dc;
    }

    .notification-item.reminder.unread::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 4px;
        border-radius: 4px;
        background-color: #f4d03f;
    }

.notification-item.reminder:not(.unread) {
    background: #ffffff;
    border-color: #f1f1f1;
}

.notification-item.reminder:not(.unread):hover {
        background-color: #f8f9fa;
}




