.pdf-downloads-wrapper {
    background: var(--pdf-bg, #ffffff);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    font-family: inherit;
    color: var(--pdf-text, #333333);
}

.pdf-category-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: inherit;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--pdf-border, #f0f0f0);
}

.pdf-search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.pdf-search-box input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--pdf-border, #e0e0e0);
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: inherit;
}

.pdf-search-box input:focus {
    outline: none;
    border-color: var(--pdf-primary, #dc3545);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    background: #ffffff;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.pdf-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdf-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--pdf-bg, #ffffff);
    border: 1px solid var(--pdf-border, #f0f0f0);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.pdf-list-item:hover {
    border-color: var(--pdf-primary, #dc3545);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.08);
    transform: translateY(-1px);
}

.pdf-item-number {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.pdf-item-thumbnail {
    min-width: 40px;
    width: 40px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.pdf-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdf-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 56px;
    background: #fff5f5;
    border-radius: 6px;
}

.pdf-icon-placeholder svg {
    fill: var(--pdf-primary, #dc3545);
}

.pdf-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pdf-item-name {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

.pdf-item-description {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.pdf-item-size {
    font-size: 12px;
    color: #666;
    min-width: 60px;
    text-align: center;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.pdf-item-action {
    flex-shrink: 0;
}

.pdf-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: var(--pdf-primary, #dc3545);
    color: white !important;
    text-decoration: none !important;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 2px solid var(--pdf-primary, #dc3545);
    white-space: nowrap;
    font-family: inherit;
}

.pdf-download-button:hover {
    background: var(--pdf-hover, #c82333);
    border-color: var(--pdf-hover, #c82333);
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.pdf-error {
    background: #fff3f3;
    color: #dc3545;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.pdf-no-files, .pdf-no-results {
    text-align: center;
    color: #666;
    padding: 24px;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdf-downloads-wrapper {
        padding: 16px;
        border-radius: 8px;
    }
    
    .pdf-search-box {
        max-width: 100%;
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--pdf-bg, white);
        padding: 10px 0;
        margin-bottom: 10px;
    }
    
    .pdf-list-item {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .pdf-item-info {
        flex: 1 1 calc(100% - 80px);
    }
    
    .pdf-item-name {
        font-size: 13px;
        white-space: normal;
        line-height: 1.3;
    }
    
    .pdf-item-action {
        width: 100%;
        text-align: left;
    }
    
    .pdf-download-button {
        width: 100%;
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pdf-list-item {
        padding: 8px;
        gap: 6px;
    }
    
    .pdf-item-thumbnail {
        min-width: 28px;
        width: 28px;
        height: 38px;
        border-radius: 4px;
    }
    
    .pdf-item-name {
        font-size: 12px;
    }
    
    .pdf-item-description {
        font-size: 11px;
    }
    
    .pdf-download-button {
        padding: 6px 12px;
        font-size: 11px;
    }
}