/* News & Notices Attachment Styles */

/* Attachment Box Styles */
.news-attachment, .notice-attachment {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.attachment-box {
    text-align: center;
}

.attachment-box h5, .attachment-box h4 {
    color: #007bff;
    margin-bottom: 15px;
    font-weight: 600;
}

.attachment-box h5 i, .attachment-box h4 i {
    margin-right: 8px;
    color: #6c757d;
}

/* File Download Section */
.file-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-top: 10px;
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-info i {
    font-size: 24px;
    color: #6c757d;
    margin-right: 12px;
}

.filename {
    font-weight: 500;
    color: #495057;
    word-break: break-all;
}

.download-btn {
    background: #28a745;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #218838;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-btn i {
    margin-right: 6px;
}

/* Attachment Indicators in Listings */
.news-meta .attachment, .notice-meta .attachment {
    color: #28a745;
    font-weight: 500;
    margin-left: 10px;
}

.news-meta .attachment i, .notice-meta .attachment i {
    margin-right: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-download {
        flex-direction: column;
        gap: 10px;
    }
    
    .file-info {
        justify-content: center;
        text-align: center;
    }
    
    .download-btn {
        width: 100%;
        text-align: center;
    }
}

/* Priority-based styling for notices */
.notice-attachment.priority-urgent {
    border-left-color: #dc3545;
}

.notice-attachment.priority-high {
    border-left-color: #ffc107;
}

.notice-attachment.priority-medium {
    border-left-color: #17a2b8;
}

.notice-attachment.priority-low {
    border-left-color: #6c757d;
}

/* Animation for download button */
@keyframes downloadPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.download-btn:active {
    animation: downloadPulse 0.3s ease;
}

/* File type icons */
.file-info i.fa-file-pdf-o { color: #dc3545; }
.file-info i.fa-file-word-o { color: #007bff; }
.file-info i.fa-file-excel-o { color: #28a745; }
.file-info i.fa-file-powerpoint-o { color: #fd7e14; }
.file-info i.fa-file-image-o { color: #6f42c1; }
.file-info i.fa-file-text-o { color: #6c757d; }