.pdf-doc-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: inherit;
    padding: 16px;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdf-doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pdf-doc-thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444; /* PDF Red */
}

.pdf-doc-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pdf-doc-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 4px 0;
    color: #111827;
    line-height: 1.4;
}

.pdf-doc-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 0px;
}

.pdf-doc-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
    align-items: center;
}

.pdf-doc-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

/* Hover over View Button: Text color persists correctly with beautiful backgrounds */
.pdf-btn-view {
    background-color: #3b82f6;
    color: #ffffff !important;
}

.pdf-btn-view:hover {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* Hover over Download Button: Subtle visual shift while retaining excellent legibility */
.pdf-btn-download {
    background-color: #f3f4f6;
    color: #374151 !important;
    border: 1px solid #e5e7eb;
}

.pdf-btn-download:hover {
    background-color: #e5e7eb !important;
    color: #111827 !important;
    border-color: #d1d5db;
}

.pdf-btn-download svg {
    stroke: currentColor !important;
}

.pdf-doc-iframe {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 12px;
    display: block;
}

.pdf-doc-placeholder {
    padding: 40px;
    background: #f3f4f6;
    border-radius: 12px;
    text-align: center;
    color: #6b7280;
    font-family: inherit;
}

@media (max-width: 640px) {
    .pdf-doc-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .pdf-doc-actions {
        margin-left: 0;
        width: 100%;
        margin-top: 16px;
    }
    
    .pdf-doc-btn {
        flex: 1;
    }
}
