/* ========================================
   Notification System Styles
   ======================================== */

/* Notification Bell Badge */
#notificationBadge {
    font-size: 0.65rem;
    padding: 0.25em 0.4em;
    min-width: 1.5em;
}

/* Notification Dropdown */
.notification-dropdown {
    width: 380px;
    max-width: 90vw;
    max-height: 600px;
    overflow: hidden;
/*    display: flex;
    flex-direction: column;*/
    padding: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.notification-dropdown.show {
    display: flex;
    flex-direction: column;
}

.notification-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.notification-dropdown-header h6 {
    font-weight: 600;
    color: #212529;
}

.notification-dropdown-body {
    overflow-y: auto;
    max-height: 450px;
    flex: 1;
}

.notification-dropdown-footer {
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Notification Dropdown Item */
.notification-dropdown-item {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.notification-dropdown-item:hover {
    background-color: #f8f9fa;
}

.notification-dropdown-item:last-child {
    border-bottom: none;
}

.notification-dropdown-item.unread {
    background-color: #e7f3ff;
}

.notification-dropdown-item.unread:hover {
    background-color: #d0e8ff;
}

.notification-dropdown-item .notification-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-dropdown-item .notification-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    margin-bottom: 0.25rem;
}

.notification-dropdown-item .notification-message {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-dropdown-item .notification-time {
    font-size: 0.75rem;
    color: #adb5bd;
}

.notification-dropdown-item .unread-indicator {
    width: 8px;
    height: 8px;
    background-color: #0d6efd;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

.notification-dropdown-item .notification-link {
    text-decoration: none;
}

/* Notification Empty State */
.notification-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #adb5bd;
}

.notification-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.notification-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Notification List (Index Page) */
.notification-list {
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: start;
    padding: 1.25rem;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
    position: relative;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #e7f3ff;
}

.notification-item.unread:hover {
    background-color: #d0e8ff;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #0d6efd;
}

.notification-item .notification-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notification-item .notification-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification-item .notification-title {
    font-weight: 600;
    font-size: 1rem;
    color: #212529;
}

.notification-item .notification-time {
    font-size: 0.85rem;
    color: #adb5bd;
    white-space: nowrap;
    margin-left: 1rem;
}

.notification-item .notification-message {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.notification-item .notification-link {
    text-decoration: none;
}

.notification-item .notification-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

.notification-item .notification-actions .btn {
    padding: 0.25rem 0.5rem;
    color: #6c757d;
}

.notification-item .notification-actions .btn:hover {
    color: #212529;
}

/* Notification Toast */
.notification-toast {
    min-width: 300px;
}

.notification-toast .toast-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
}

.notification-toast .toast-body {
    background-color: #fff;
}

/* Icon Colors */
.text-primary { color: #0d6efd !important; }
.text-danger { color: #dc3545 !important; }
.text-success { color: #198754 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #0dcaf0 !important; }
.text-secondary { color: #6c757d !important; }

/* Responsive Design */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 100vw;
        max-width: 100vw;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin: 0;
        border-radius: 0;
    }

    .notification-item {
        padding: 1rem;
    }

    .notification-item .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .notification-item .notification-actions {
        opacity: 1;
    }
}

/* Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-toast {
    animation: slideInRight 0.3s ease-out;
}

/* Loading State */
.notification-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Scrollbar Styling */
.notification-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-dropdown-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.notification-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

