/**
 * FileBox.css - Dosya kategorisi için stil dosyası
 */

.file-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.file-item {
    background: #f1f1f1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #e9e9e9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.file-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.file-meta {
    display: flex;
    align-items: center;
}

.file-date {
    font-size: 14px;
    font-weight: 700;
    color: #337ab7;
    /* Bootstrap primary blue-ish */
}

.file-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.file-download-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-download-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Red PDF Icon Styling if needed, or rely on the image provided by backend */
/* If the image is transparent, we might want a background, but the user image shows a colored icon. */

/* Responsive */
@media screen and (max-width: 768px) {
    .file-link {
        padding: 12px 15px;
    }

    .file-name {
        font-size: 15px;
    }

    .file-date {
        font-size: 13px;
    }
}

/* Pagination Styles */
.categoryPaginationContent {
    display: flex;
    justify-content: center;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
    border-top: var(--border-style) var(--border-width) var(--border-color);
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: var(--border-radius-base);
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    position: relative;
    display: block;
    padding: 10px 18px;
    color: var(--text-primary-color);
    background-color: var(--content-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-base);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: var(--font-size-small);
}

.page-link:hover {
    z-index: 2;
    color: var(--primary-color);
    background-color: var(--background-light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-sm);
}

.page-item.active .page-link {
    z-index: 3;
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-md);
}

.page-item.disabled .page-link {
    color: var(--text-muted-color);
    pointer-events: none;
    background-color: var(--background-light-color);
    border-color: var(--border-color);
    opacity: 0.6;
}

@media screen and (max-width: 768px) {
    .page-link {
        padding: 8px 14px;
    }

    .pagination {
        gap: 5px;
    }
}
