/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 70px;
    right: -400px;
    width: 380px;
    max-width: 95vw;
    height: calc(100vh - 90px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.notification-panel.open {
    right: 20px;
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-time {
    color: #999;
    font-size: 0.8rem;
}

/* Toast Notification */
#alert-container {
    position: fixed;
    left: calc(var(--sidebar-width, 200px) + 24px);
    bottom: 24px;
    width: 360px;
    max-width: calc(100vw - 48px);
    z-index: 1300;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

#alert-container .alert {
    margin: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    pointer-events: auto;
}

.toast-notification {
    position: fixed;
    left: calc(var(--sidebar-width, 200px) + 24px);
    bottom: 24px;
    width: 350px;
    max-width: 90vw;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 1310;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.toast-content i {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-desc {
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    #alert-container {
        left: 16px;
        bottom: 16px;
        width: 360px;
        max-width: calc(100vw - 32px);
    }

    .toast-notification {
        left: 16px;
        bottom: 16px;
    }
}

@media (max-width: 576px) {
    #alert-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        max-width: none;
    }

    .notification-panel {
        width: 100vw;
        right: -100vw;
        top: 60px;
        height: calc(100vh - 60px);
        border-radius: 0;
    }
    
    .notification-panel.open {
        right: 0;
    }
    
    .toast-notification {
        width: 90vw;
        left: 50%;
        transform: translateX(-50%);
        bottom: 16px;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }
    
    .toast-notification.show {
        right: auto;
        transform: translateX(-50%) translateY(0);
    }
} 
