/* Announcements Styling */
.announcements-container {
    scrollbar-width: thin;
    scrollbar-color: #6c757d #2d353d;
}

.announcements-container::-webkit-scrollbar {
    width: 6px;
}

.announcements-container::-webkit-scrollbar-track {
    background: #2d353d;
}

.announcements-container::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 3px;
}

.announcements-container::-webkit-scrollbar-thumb:hover {
    background: #5a6268;
}

.announcement-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.announcement-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.announcement-item h6 {
    color: #f8f9fa;
}

.announcement-content {
    color: #e9ecef;
    line-height: 1.6;
}

.announcement-content h1,
.announcement-content h2,
.announcement-content h3,
.announcement-content h4,
.announcement-content h5,
.announcement-content h6 {
    color: #f8f9fa;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.announcement-content h1:first-child,
.announcement-content h2:first-child,
.announcement-content h3:first-child,
.announcement-content h4:first-child,
.announcement-content h5:first-child,
.announcement-content h6:first-child {
    margin-top: 0;
}

.announcement-content ul,
.announcement-content ol {
    padding-left: 1.5rem;
}

.announcement-content li {
    margin-bottom: 0.25rem;
}

.announcement-content a {
    color: #6fb8ff;
    text-decoration: none;
}

.announcement-content a:hover {
    color: #8ac5ff;
    text-decoration: underline;
}

.announcement-content code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffc107;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.announcement-content pre {
    background-color: rgba(0, 0, 0, 0.3);
    color: #e9ecef;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.announcement-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.announcement-content blockquote {
    border-left: 4px solid #6c757d;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #adb5bd;
    font-style: italic;
}

.announcement-content strong {
    color: #f8f9fa;
    font-weight: 600;
}

/* Priority badges styling */
.badge.bg-warning {
    color: #000 !important;
}

.badge.bg-danger {
    color: #fff !important;
}

/* Empty state styling */
.announcements-container .text-center i.fa-info-circle {
    opacity: 0.5;
}

/* Management button styling */
.btn-outline-primary {
    border-color: #6fb8ff;
    color: #6fb8ff;
}

.btn-outline-primary:hover {
    background-color: #6fb8ff;
    border-color: #6fb8ff;
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .announcements-container {
        max-height: 300px;
    }
    
    .announcement-item {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .announcement-item .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .announcement-item .d-flex .d-flex {
        margin-top: 0.5rem;
        flex-direction: row;
        align-items: center;
    }
} 