/* Message Banner Styles */
.message-banner {
    /* background: linear-gradient(90deg, #2c5aa0, #1e3a8a); */
    color: white;
    padding: 0;
    overflow: hidden;
    position: relative;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.message-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Messages Wrapper */
.messages-wrapper {
    width: 100%;
    max-width: 600px;
    min-height: 40px;
    display: grid;
    align-items: center;
    position: relative;
}

.message-item {
    position: relative;
    display: flex;
    grid-area: 1 / 1;
    align-items: center;
    justify-content: center;
    padding: 5px 5px;
    padding-top: 5px;
    font-weight: 600;
    font-size: 14px;
    white-space: normal;
    line-height: 1.4;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    text-align: center;
}

.message-item.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 767px) {
    .messages-wrapper {
        /* height: 50px; */
        padding: 0 10px;
    }
    
    .message-item {
        font-size: 13px;
        padding: 5px 5px;
        /* border-radius: 8px; */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .messages-wrapper {
        /* height: 55px; */
        max-width: 500px;
    }
    
    .message-item {
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .messages-wrapper {
        /* height: 40px; */
        max-width: 600px;
    }
    
    .message-item {
        font-size: 16px;
    }
}

/* Flip Animation */
.flipper {
    transition: transform 0.8s ease-in-out;
}

.flipper.flipping {
    transform: rotateX(180deg);
}

/* Hover effects */
.message-item:hover {
    /* background: rgba(255, 255, 255, 0.2); */
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Loading state */
.message-banner.loading .message-item {
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Pause on hover */
.message-banner:hover .flipper {
    animation-play-state: paused;
}
