/* Notification Bell Styles */

/* Bell Icon Button */
.notification-bell-button {
    position: relative;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #0066cc;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.notification-bell-button:hover {
    background: #e6f0ff;
    transform: scale(1.1);
}

.notification-bell-button.has-unread {
    animation: bellRing 0.6s ease-in-out;
}

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

/* Badge */
#notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dropdown */
#notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 380px;
    max-height: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.notification-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.notification-dropdown-header h6 {
    margin: 0;
    font-weight: 600;
}

.notification-dropdown-header a {
    color: white;
    font-size: 12px;
    text-decoration: none;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-dropdown-header a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-dropdown-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notification-dropdown-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.notification-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.notification-dropdown-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.notification-dropdown-item:hover {
    background: #f9f9f9;
    padding-left: 20px;
}

.notification-dropdown-content {
    flex: 1;
}

.notification-dropdown-title {
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 4px;
}

.notification-dropdown-customer {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.notification-dropdown-amount {
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 4px;
}

.notification-dropdown-time {
    font-size: 11px;
    color: #999;
}

.notification-dropdown-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0066cc, #00a8a8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: 12px;
    flex-shrink: 0;
}

.notification-dropdown-empty {
    padding: 30px 15px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Toast Notification */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-left: 4px solid #ff4757;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-width: 350px;
    z-index: 2000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-toast.fade-out {
    animation: slideOutRight 0.3s ease-in;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-toast-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    animation: bellPulse 2s ease-in-out infinite;
}

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

.notification-toast-content {
    flex: 1;
}

.notification-toast-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-toast-message {
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.notification-toast-amount {
    font-size: 16px;
    font-weight: 600;
    color: #ff4757;
}

.notification-toast-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-toast-close:hover {
    color: #333;
    transform: scale(1.2);
}

/* Sound Toggle */
.notification-sound-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.notification-sound-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0066cc;
}

.notification-sound-toggle label {
    cursor: pointer;
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    #notification-dropdown {
        width: calc(100vw - 30px);
        right: 15px;
        max-height: calc(100vh - 100px);
    }

    .notification-toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        min-width: unset;
    }

    .notification-dropdown-item {
        padding: 12px;
    }

    .notification-dropdown-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .notification-bell-button {
        font-size: 20px;
    }

    .notification-toast {
        min-width: unset;
        padding: 12px;
    }

    .notification-toast-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}
