.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.notification-modal {
    background: #fff;
    border-radius: 28px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    scrollbar-width: none;
    border: 20px solid #fff;
    border-bottom: 0 solid #fff;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
    display: none;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: fixed;
    background-color: white;
    width: 560px;
    border-radius: 28px 28px 0 0 ;

}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.mark-all-read {
    background: #0095DA;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.mark-all-read:hover {
    background: #00244E;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notifications-section {
    transition: opacity 0.3s ease;
    padding: 20px;
    margin-top: 70px;
}

.notification-item {
    transition: all 0.2s ease;
    margin-bottom: 10px;
    border: 1px solid #00244E;
    border-radius: 28px;
    text-align: start;
}
.notification-item:hover {
    transition: all 0.2s ease;
    border-radius: 10px;
}

.notification-item.is-expanded {
    background-color: #f8f9fa;
    text-align: start;
}

.notification-item.is-expanded .notification-content {
    padding: 0 16px 12px 16px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background: #fff;
    border-radius: 28px;
    transition: all 0.2s ease;
}
.notification-header:hover {
    background: #eaebec;
    border-radius: 10px;
    transition: all 0.2s ease;

}

.notification-title {
    display: flex;
    flex-direction: column;
    text-align: start;
}


.timestamp {
    font-size: 0.8em;
    color: #666;

}

.toggle-read-btn {
    background: #fff;
    border: 1px solid #0095DA;
    padding: 5px 10px;
    border-radius: 28px;
    margin-left: 15px;
    cursor: pointer;
    color: #0095DA;
    transition: all 0.2s ease;
}
.toggle-read-btn:hover {
    background: #0095DA;
    border: 1px solid #00244E;
    padding: 5px 10px;
    border-radius: 28px;
    margin-left: 15px;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;

}

.notification-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.notification-item.active .notification-content {
    max-height: 500px;
    padding: 15px;
}

.empty-notifications {
    color: #666;
    text-align: center;
    padding: 20px;
}

.notif-btn {
        display: none;
    }



/*---------------------------------------------------------------------------адаптация*/
@media (max-width: 768px) {
.mobile-notifications-container {
    display: none;
}
/* Мобильные уведомления */
    .notif-btn {
        position: fixed;
        display: flex;
        top: 2rem;
        left: -4rem;
        background-color: #0095DA;
        z-index: 998;
        border-radius: 28px;
    }

    .notif-wrapper {
        background-color: #0095DA;
        padding: 15px;
        border-radius: 28px;
        width: 100px;
        display: flex;
        flex-direction: row;
        justify-content: end;
    }
    .notification-badge-inmodal{
        position: absolute;
        background-color: #0095DA;
        padding: 0 2px;
        font-weight: bold;
        color: #fff;
        border-radius: 28px;
        margin-top: 0px;
        font-size: 14px;
        top: 5px;
        right: 25px;
        z-index: 1000;
    }
    .notification-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 1000;
    }
    .notification-icon svg {
        fill: white;
    }

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.2);
        z-index: 1003;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 0;
    }
    .notification-modal {
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(20px); /* Размытие 8px */
        -webkit-backdrop-filter: blur(20px); /* Для Safari */
        border-radius: 0 0 28px 28px;
        max-width: 100vw;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        position: relative;
        scrollbar-width: none;
         border: 0 solid #fff;
        border-bottom: 5px solid rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
        /*transform: translateY(100%);*/
    }
    .mobile-notifications-overlay.active .notif-panel-bg {
        /*transform: translateY(0%);*/
        /*transition: all 0.3s ease;*/
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
        position: fixed;
        background-color: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(20px); /* Размытие 8px */
        -webkit-backdrop-filter: blur(20px); /* Для Safari */
        width: 90%;
        border-radius: 0 0 28px 28px;

    }
    .notification-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(20px); /* Размытие 8px */
        -webkit-backdrop-filter: blur(20px); /* Для Safari */
        border-radius: 28px;
        transition: all 0.2s ease;
    }
    .toggle-read-btn {
        background: #fff;
        border: 1px solid #0095DA;
        padding: 5px;
        border-radius: 28px;
        margin-left: 15px;
        cursor: pointer;
        color: #0095DA;
        transition: all 0.2s ease;
        width: 30px;
        height: 30px;
    }
    .toggle-read-btn svg {
        margin-left: -5px;
    }





.mobile-notif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    display: none;
    justify-content: center;
    align-items: flex-end;
    touch-action: none;
  }

.mobile-notif-overlay.active {
    display: flex;
}


.mobile-notifi-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    position: sticky;
    top: 0;
    background: white;
    border-radius:0 0 28px 28px;
    z-index: 1;
}
.notif-panel-bg {
    background-color: rgba(241, 241, 241, 0.5);
    border-radius:0 0 28px 28px;
    backdrop-filter: blur(20px); /* Размытие 8px */
    -webkit-backdrop-filter: blur(20px); /* Для Safari */
    display: block;
}
.mobile-notifi-handle {
    width: 48px;
    height: 4px;
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
    margin: 12px auto;
    cursor: pointer;
  }
  .mobile-notifi-close-bar {
    padding: 16px;
    text-align: center;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid #eee;
    cursor: pointer;
  }
.mobile-notifi-header h3 {
    font-size: 24px;
    color: #00244E;
    font-weight: bold;
    white-space: nowrap;
}

.mobile-mark-all-read {
    background: #0095DA;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 28px;
}

.mobile-notifi-list {
  padding: 8px 16px 20px;
}

.mobile-notifi-item {
  border-radius: 28px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #f9f9f9;
}

.mobile-notifi-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.mobile-notifi-title {
  flex-grow: 1;
  font-weight: 500;
}

.mobile-notifi-time {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.mobile-notifi-action svg {
  transition: transform 0.2s ease;
}

.mobile-notifi-content {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.mobile-notifi-item.active .mobile-notifi-content {
  max-height: 500px;
  padding: 0 16px 16px;
}

.mobile-notifi-item.active .mobile-notifi-action svg {
  transform: rotate(90deg);
}

.mobile-notifi-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 15px;
}
}

