.pdf-tools { display: flex; flex-direction: column; gap: 16px; }

.pdf-tabs {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 6px; border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}
.pdf-tab {
    flex: 1 1 auto; min-width: 140px;
    padding: 12px 18px; border-radius: 8px;
    background: transparent; border: 1px solid transparent;
    color: var(--text-muted, #999); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit;
}
.pdf-tab:hover { color: var(--text, #e8e8ea); background: rgba(255,255,255,0.04); }
.pdf-tab--active {
    background: var(--primary, #D97706); color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(217,119,6,0.25);
}

.pdf-panel { display: none; padding: 24px; border-radius: 16px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); }
.pdf-panel--active { display: block; }

.pdf-dropzone {
    padding: 48px 24px; text-align: center;
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 12px; cursor: pointer;
    transition: all .2s;
}
.pdf-dropzone:hover, .pdf-dropzone.is-drag {
    border-color: var(--primary, #D97706);
    background: rgba(217,119,6,0.04);
}
.pdf-dropzone i { font-size: 42px; color: var(--primary, #D97706); margin-bottom: 14px; display: block; }
.pdf-dropzone h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.pdf-dropzone p { font-size: 13.5px; color: var(--text-muted, #999); margin-bottom: 16px; }

.pdf-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 10px;
    background: rgba(255,255,255,0.06); color: var(--text, #e8e8ea);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all .15s; font-family: inherit;
}
.pdf-btn:hover:not(:disabled) { background: rgba(255,255,255,0.1); }
.pdf-btn:disabled { opacity: .45; cursor: not-allowed; }
.pdf-btn--primary {
    background: var(--primary, #D97706); color: #fff !important;
    border-color: transparent;
}
.pdf-btn--primary:hover:not(:disabled) {
    background: var(--primary-light, #EA580C);
    box-shadow: 0 8px 24px rgba(217,119,6,0.35);
}

.pdf-list {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 16px;
}
.pdf-list:empty { display: none; }
.pdf-list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 14px;
}
.pdf-list-item i { color: var(--primary, #D97706); }
.pdf-list-item .name { flex: 1; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-list-item .size { color: var(--text-muted, #999); font-size: 12px; }
.pdf-list-item .remove {
    background: transparent; border: none; cursor: pointer;
    color: #f87171; padding: 4px 8px; border-radius: 6px; font-size: 14px;
}
.pdf-list-item .remove:hover { background: rgba(248,113,113,0.1); }

.pdf-file-info {
    margin-top: 16px; padding: 14px 18px;
    background: rgba(217,119,6,0.06);
    border: 1px solid rgba(217,119,6,0.2);
    border-radius: 10px; font-size: 14px;
    display: flex; align-items: center; gap: 10px;
}
.pdf-file-info i { color: var(--primary, #D97706); }

.pdf-range { margin-top: 16px; }
.pdf-range label { display: block; font-size: 13px; color: var(--text-muted, #999); }
.pdf-range input {
    margin-top: 8px; width: 100%; padding: 11px 14px;
    border-radius: 10px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text, #e8e8ea); font-size: 14px; font-family: inherit;
}
.pdf-range input:focus {
    outline: none;
    border-color: var(--primary, #D97706);
    box-shadow: 0 0 0 3px rgba(217,119,6,0.15);
}

.pdf-rotate-buttons {
    display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}

.pdf-actions {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
    margin-top: 20px;
}
.pdf-status { font-size: 13.5px; color: var(--text-muted, #999); }
.pdf-progress { flex-basis: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 6px; }
.pdf-progress-fill { height: 100%; background: linear-gradient(90deg, #D97706, #EA580C); transition: width .25s; width: 0; }

.pdf-info {
    display: flex; gap: 16px; padding: 20px 22px;
    background: rgba(74,222,128,0.05);
    border: 1px solid rgba(74,222,128,0.2);
    border-radius: 14px;
    margin-top: 16px;
}
.pdf-info-icon {
    flex-shrink: 0; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: rgba(74,222,128,0.15);
    color: #4ADE80; font-size: 18px;
}
.pdf-info h4 { font-size: 16px; margin: 0 0 6px; color: #fff; }
.pdf-info p { font-size: 13.5px; color: var(--text-muted, #999); line-height: 1.55; margin: 0; }

@media (max-width: 640px) {
    .pdf-panel { padding: 16px; }
    .pdf-dropzone { padding: 32px 16px; }
    .pdf-tab { min-width: 100%; }
    .pdf-actions { flex-direction: column; align-items: stretch; }
    .pdf-actions .pdf-btn { width: 100%; justify-content: center; }
    .pdf-info { flex-direction: column; gap: 10px; }
}