/* Notice Board Styling */
.notice-wrapper {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: rgba(26, 11, 46, 0.95);
    border-left: 3px solid #60049a;
    border-top: 3px solid #60049a;
    border-bottom: 3px solid #60049a;
    border-radius: 15px 0 0 15px;
    padding: 20px;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.notice-wrapper.collapsed {
    transform: translate(260px, -50%);
}

.notice-toggle {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    background: #60049a;
    color: white;
    width: 40px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
}

.notice-toggle span {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-weight: bold;
    letter-spacing: 2px;
}

.notice-header {
    text-align: center;
    border-bottom: 2px solid #60049a;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.notice-header h3 {
    color: #dfb0ff;
    margin: 0;
    font-family: 'Laila', sans-serif;
}

.notice-content {
    overflow: hidden;
    /* Hide scrollbar */
    position: relative;
    height: 300px;
    /* Fixed height for scrolling area */
}

.notice-scroll {
    animation: scrollUp 15s linear infinite;
    position: absolute;
    width: 100%;
}

.notice-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        top: 100%;
        transform: translateY(0%);
    }

    100% {
        top: 0%;
        transform: translateY(-100%);
    }
}

.notice-content::-webkit-scrollbar {
    width: 6px;
}

.notice-content::-webkit-scrollbar-thumb {
    background-color: #60049a;
    border-radius: 3px;
}

.notice-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 5px;
    border-left: 3px solid #00bcd4;
}

.notice-date {
    font-size: 0.75rem;
    color: #00bcd4;
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
}

.notice-text {
    font-size: 0.9rem;
    color: #eee;
    line-height: 1.3;
}

.new-badge {
    background: #ff0055;
    color: white;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .notice-wrapper {
        width: 220px;
        right: 0;
        top: 90px;
        transform: translateY(0);
        max-height: 60vh;
        padding: 15px;
    }

    .notice-wrapper.collapsed {
        transform: translateX(180px);
    }

    .notice-toggle {
        left: -35px;
        width: 35px;
        height: 80px;
    }

    .notice-content {
        height: 200px;
    }

    .notice-item {
        padding: 8px;
        margin-bottom: 8px;
    }

    .notice-text {
        font-size: 0.8rem;
    }
}