/* Mobile Notification Panel Styles */

/* Offcanvas customization */
#notificationOffcanvas {
    width: 100% !important;
    max-width: 400px;
}

/* Close button enhancement */
#notificationOffcanvas .btn-close-white {
    opacity: 1;
    filter: brightness(0) invert(1);
}

#notificationOffcanvas .offcanvas-header {
    min-height: 60px;
    padding: 1rem 1.5rem;
}

#notificationOffcanvas .offcanvas-header .btn-close {
    margin: 0;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background-size: 1rem;
}

/* Mobile notification list */
#notification-list-mobile .notification-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

#notification-list-mobile .notification-item:active {
    background-color: #f8f9fa;
}

#notification-list-mobile .notification-item.unread {
    background-color: #f0f7ff;
}

/* Touch-friendly buttons */
#notification-list-mobile .btn,
#notification-list-mobile a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* Avatar in notifications */
#notification-list-mobile .avatar {
    flex-shrink: 0;
}

/* Notification text */
#notification-list-mobile .notification-title {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

#notification-list-mobile .notification-message {
    font-size: 0.75rem;
    line-height: 1.3;
    color: #67748e;
}

#notification-list-mobile .notification-time {
    font-size: 0.7rem;
    color: #8392ab;
    margin-top: 0.25rem;
}

/* Swipe gesture indicator */
.offcanvas-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #dee2e6;
    border-radius: 2px;
}

/* Empty state */
#notification-list-mobile .empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

#notification-list-mobile .empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* Loading state */
#notification-list-mobile .loading-state {
    padding: 2rem;
    text-align: center;
}

/* Badge positioning */
#notif-badge-mobile,
#notif-badge-desktop {
    font-size: 0.65rem;
    padding: 0.2em 0.4em;
    border-radius: 10px;
}

/* Smooth animations */
.notification-item {
    animation: slideIn 0.3s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 576px) {
    #notificationOffcanvas {
        width: 100% !important;
        max-width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #notification-list-mobile .notification-item {
        border-bottom-color: #2d3748;
    }
    
    #notification-list-mobile .notification-item.unread {
        background-color: #1a365d;
    }
}
