
/* News Ticker Main Container */
.news-ticker-container {
    display: flex;
    align-items: center;
    background-color: var(--nt-background-color);
    border: 1px solid var(--nt-border-color);
    border-radius: var(--nt-border-radius);
    overflow: hidden;
    width: 100%;
    margin: 1em 0;
    padding: var(--nt-row-padding) 15px;
}

/* Ticker Content Area */
.nt-content-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.nt-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: nt-scroll-horizontal var(--nt-animation-duration) linear infinite;
}

.nt-content-wrap:hover .nt-content {
    animation-play-state: paused;
}

/* Individual News Item */
.nt-item {
    display: inline-flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically align label and text */
    padding: 0 15px;
    color: var(--nt-item-text-color);
    line-height: 1.5;
}

.nt-item a, .nt-item > span:not(.nt-label):not(.nt-separator) {
    text-decoration: none;
    transition: color 0.2s ease;
    padding-left: 8px; /* Space between label and link */
}

.nt-item a {
    color: var(--nt-link-text-color);
}
.nt-item a:hover {
    color: var(--nt-link-hover-color);
}

/* Backup Item Styling */
.nt-item.nt-backup-item, .nt-item.nt-backup-item a {
    color: var(--nt-backup-item-text-color);
}

/* Label Styling */
.nt-label {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--nt-label-font-size);
    font-weight: bold;
    margin-right: 8px;
    white-space: nowrap;
}

.nt-separator {
    margin: 0 10px;
    color: #ccc;
    font-weight: bold;
}

/* Highlight Styling */
.nt-item a.nt-highlighted, .nt-item span.nt-highlighted {
    background-color: var(--nt-highlight-bg-color);
    color: var(--nt-highlight-text-color);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
}
.nt-item a.nt-highlighted {
    color: var(--nt-highlight-text-color);
}
.nt-item a.nt-highlighted:hover {
    color: var(--nt-highlight-text-color);
    opacity: 0.8;
}


/* Blinking Animation */
.nt-blinking {
    animation: nt-blink 1.5s infinite;
}
@keyframes nt-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Animation */
@keyframes nt-scroll-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Admin table preview */
span.nt-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5;
}
        