/* Sticky News Ticker CSS */

#sticky-news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #e30613;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    z-index: 9999;
    display: flex;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    transition: height 0.3s ease-in-out;
}

/* Time display */
.ticker-time {
    min-width: 80px;
    text-align: center;
    font-weight: bold;
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Main ticker container */
.ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    white-space: nowrap;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.ticker-news {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 30s linear infinite;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-news:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
    position: relative;
}

.ticker-item:after {
    content: '•';
    position: absolute;
    right: 10px;
}

.ticker-item:last-child:after {
    content: '';
}

.ticker-item a {
    color: inherit;
    text-decoration: none;
}

.ticker-item a:hover {
    text-decoration: underline;
}

/* Ticker controls */
.ticker-controls {
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
}

.ticker-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.ticker-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.ticker-toggle:focus {
    outline: none;
}

/* Custom toggle icons */
.toggle-up-icon,
.toggle-down-icon {
    width: 32px;
    height: auto;
    display: block;
}

.toggle-down-icon {
    display: none;
}

/* Closed state */
.ticker-closed {
    height: 0 !important;
    overflow: hidden;
}

.ticker-closed .toggle-up-icon {
    display: none;
}

.ticker-closed .toggle-down-icon {
    display: block;
}

/* Animation for the scrolling ticker */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .ticker-time {
        min-width: 60px;
        font-size: 14px;
    }
    
    #sticky-news-ticker {
        font-size: 13px;
    }
    
    .toggle-up-icon,
    .toggle-down-icon {
        width: 24px;
    }
}

@media screen and (max-width: 480px) {
    .ticker-time {
        min-width: 50px;
        padding: 0 10px;
    }
    
    .ticker-item {
        padding: 0 20px;
    }
}

/* Admin styles */
.tab-content {
    margin-top: 20px;
}

.spinner {
    float: none;
    margin-left: 10px;
    vertical-align: middle;
}