﻿
/* Notification Container */
/*.notification-container {
    display: flex;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    width: 80%;*/ /* Covers 80% of the screen */
    /*margin: 20px auto;
}*/

/* Bell Icon */
/*.notification-icon {
    font-size: 30px;
    color: #ff4d4f;
    margin-right: 20px;
}*/

/* Notification Text */
/*.notification-text {
    flex-grow: 1;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: fadeIn 1s ease-in-out;
}*/

/* Fade-In Animation */
/*@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}*/

/* Description Text */
/*.notification-description {
    color: #555;
    font-size: 16px;
    margin-top: 5px;
    width: 100%;
}*/

/*notification end*/



/*new bell code*/

/* Notification Container */
.notification-container {
    display: flex;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    width: 80%; /* Covers 80% of the screen */
    margin: 20px auto;
    overflow: hidden;
}

/* Bell Icon */
.notification-icon {
    font-size: 30px;
    color: #ff4d4f;
    margin-right: 20px;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Notification Text */
.notification-text {
    flex-grow: 1;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: fadeIn 1s ease-in-out;
}

/* Fade-In Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description Text */
.notification-description {
    color: #555;
    font-size: 16px;
    margin-top: 5px;
    width: 100%;
}

.notification-link {
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 20px;
    font-size: 14px;
}


/* Add this CSS for the shake animation */
@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.notification-icon {
    font-size: 30px;
    color: #ff4d4f;
    margin-right: 20px;
    flex-shrink: 0; /* Prevent shrinking */
    animation: shake 0.5s infinite; /* Shaking animation */
    animation-timing-function: ease-in-out; /* Smooth animation */
    animation-iteration-count: infinite; /* Repeat the animation infinitely */
    animation-delay: 2s; /* Delay between shakes */
}

/* Default for larger screens (desktops) */
.notification-container {
    width: 80%; /* Covers 80% of the screen */
}

/* Tablets in portrait mode */
@media (max-width: 1024px) {
    .notification-container {
        width: 90%; /* Adjusts to 90% of the screen */
    }
}

/* Tablets in landscape mode */
@media (max-width: 768px) {
    .notification-container {
        width: 90%; /* Adjusts to 90% of the screen */
    }
}

/* Large smartphones */
@media (max-width: 600px) {
    .notification-container {
        width: 95%; /* Adjusts to full width */
    }
}

/* Small smartphones */
@media (max-width: 480px) {
    .notification-container {
        width: 95%; /* Adjusts to full width */
    }
}
