/* === Notification Styles V2 === */

.notifications-dropdown .dropdown-toggle::after {
    display: none; /* Убрать стрелку Bootstrap */
}

.notification-indicator {
    position: absolute;
    top: 5px;
    right: 0px;
    width: 10px;
    height: 10px;
    background-color: #dc3545;
    border-radius: 50%;
    border: 2px solid #fff;
}

.notifications-dropdown .dropdown-menu {
    width: 380px;
    padding: 0;
    border-radius: 0.75rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(-10px);
}

.notifications-dropdown .dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

@media (max-width: 767.98px) {
    .notifications-dropdown .dropdown-menu {
        width: 90vw;
        right: -130px !important;
        left: auto !important;
        transform: translateY(-10px) !important;
    }
    
    .notifications-dropdown .dropdown-menu.show {
        transform: translateY(0) !important;
    }
}

.notification-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
    flex-shrink: 0;
}

.notification-header-v2 .view-all-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #613482;
    text-decoration: none;
}

.notification-list-v2 {
    max-height: 350px;
    overflow-y: auto; /* Скролл только для списка */
}

.notification-list-item-v2 {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
    color: inherit;
    text-decoration: none;
    white-space: normal;
}
.notification-list-item-v2:last-child {
    border-bottom: none;
}

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

.notification-icon-v2 {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    color: #613482;
}

.notification-icon-v2 i {
    font-size: 1.1rem;
}

.notification-details-v2 {
    flex-grow: 1;
    min-width: 0;
}

.notification-title-v2 {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: #212529;
}

.notification-message-v2 {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.notification-date-v2 {
    font-size: 0.75rem;
    color: #6c757d;
} 