@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&display=swap'); /* Added Inter font for message */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;1,400&display=swap'); /* Added Lato */

.notification-container {
    font-family: 'Lato', sans-serif;
    color: #333; /* Dark gray for better readability */
    font-weight: 400;
    font-style: italic;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    position: fixed;
    top: 220px;
    right: 0px;
    z-index: 9999;
    border-radius: 12px;
    animation: notification-pop 0.5s ease-in-out, fade-away 10s forwards;
}

@keyframes notification-pop {
    0% {
        transform: translateY(20px) scale(0.9);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes fade-away {
    0% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.notification-container .chat {
    position: relative;
    display: inline-block;
    width: 40vw;
    min-width: 300px;
    max-width: 80%;
}

/* --- MODIFIED PROFILE SECTION --- */
.notification-container .profile {
    display: inline-block;
    width: 12vmin; /* Adjusted size slightly, tweak as needed */
    height: 12vmin; /* Adjusted size slightly, tweak as needed */
    /* border-radius: 50%; */ /* REMOVED: No longer circular */
    /* overflow: hidden; */    /* REMOVED: May not be needed */
    position: absolute;
    left: -10vmin; /* Keep position relative to message */
    top: -1vmin;   /* Keep position relative to message */
    border: none; /* REMOVED: Border might interfere with icon look, add back if desired */
    /* background-color: #f0f0f0; */ /* Optional: Add a subtle background if icon is transparent */


    background-size: contain; /* Or 'cover', ensures icon fits */
    background-repeat: no-repeat;
    background-position: center center;
}
/* --- END MODIFIED PROFILE SECTION --- */


/* REMOVED: This rule is no longer needed as there is no <img> tag */
/*
.notification-container img {
    width: 100%;
    height: 100%;
}
*/

.notification-container .message {
    background: rgba(255, 255, 255, 0.75); /* Soft glassmorphism effect */
    padding: 2vmin 5vmin 2vmin 3vmin; /* Adjusted left padding slightly */
    border-radius: 0px 50px 50px 0px;
    font-size: 3vmin;
    text-align: left;
    font-family: "Inter", sans-serif; /* Changed font */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    border-left: 4px solid #5A67D8; /* Accent color */
    margin-left: 3vmin; /* Added margin to make space for the icon area */
}

/* Close button with softer hover effect */
.notification-container .close-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 2.5vmin;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 3.5vmin;
    height: 3.5vmin;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.notification-container .close-btn:hover {
    background-color: #FF6B6B; /* Soft coral red */
    border-color: #FF6B6B;
    transform: scale(1.1);
}

.notification-container .close-btn::before {
    content: '×';
    font-size: 2.5vmin;
    color: #fff;
}