/* ===================================
   Notice Ticker / Marquee Banner
   =================================== */

.notice-ticker-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
    overflow: hidden;
    height: auto;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.notice-ticker-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    min-width: 100%;
}

.notice-ticker-content:hover {
    animation-play-state: paused;
    cursor: pointer;
}

.notice-ticker-icon {
    font-size: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-ticker-text {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-ticker-type {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.notice-ticker-title {
    font-weight: 600;
    color: #fff;
}

.notice-ticker-time {
    font-size: 12px;
    opacity: 0.85;
    flex-shrink: 0;
}

/* Marquee scrolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Separator dots for continuous scrolling effect */
.notice-ticker-separator {
    display: inline-block;
    margin: 0 10px;
    font-size: 8px;
    opacity: 0.5;
}

/* Empty state */
.notice-ticker-empty {
    padding: 12px 20px;
    font-size: 14px;
    font-style: italic;
    opacity: 0.9;
    width: 100%;
    text-align: center;
    animation: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notice-ticker-container {
        min-height: 45px;
    }

    .notice-ticker-content {
        padding: 10px 15px;
        gap: 15px;
    }

    .notice-ticker-text {
        font-size: 13px;
        gap: 10px;
    }

    .notice-ticker-type {
        padding: 3px 8px;
        font-size: 11px;
    }

    .notice-ticker-time {
        display: none;
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(120%);
        }
        100% {
            transform: translateX(-120%);
        }
    }
}

@media (max-width: 480px) {
    .notice-ticker-content {
        padding: 10px;
        gap: 10px;
    }

    .notice-ticker-text {
        font-size: 12px;
        gap: 8px;
    }

    .notice-ticker-icon {
        font-size: 16px;
        gap: 5px;
    }
}

/* Styles for Notices Page Header */
.notices-page {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease-out;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    color: #666;
    font-weight: 300;
}

/* No notices state */
.no-notices,
.error {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
}

.error {
    color: #d9534f;
    background: #f2dede;
    border-radius: 4px;
    border: 1px solid #ebccd1;
    padding: 20px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page content padding */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
