/* Message Ticker Styling */
.important-messages-section {
    background-color: #f8f9fa;
    padding: 12px 0;
    margin-top: 18px;
    margin-bottom: 18px;
}

.message-ticker-container {
    display: flex;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    min-height: 46px;
}

.ticker-header {
    background-color: #007bff;
    color: white;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 180px;
    font-size: 14px;
}

.ticker-header i {
    margin-right: 6px;
}

.ticker-header .btn {
    font-size: 11px;
    padding: 3px 8px;
    line-height: 1.2;
}

.message-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 46px;
}

.ticker-wrapper {
    position: absolute;
    top: 0;
    animation: ticker-move 22s linear infinite;
    white-space: nowrap;
    width: fit-content;
}

.ticker-item {
    display: inline-block;
    padding: 12px 14px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.3;
}

@keyframes ticker-move {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* For smaller screens */
@media (max-width: 768px) {
    .important-messages-section {
        padding: 8px 0;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .message-ticker-container {
        flex-direction: column;
        min-height: auto;
    }

    .ticker-header {
        min-width: 100%;
        padding: 8px 10px;
        font-size: 13px;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .ticker-header .btn {
        font-size: 10px;
        padding: 2px 7px;
    }

    .message-ticker {
        min-height: 40px;
    }

    .ticker-item {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ticker-header {
        font-size: 12px;
        padding: 7px 8px;
    }

    .ticker-item {
        padding: 9px 10px;
        font-size: 11px;
    }
}