﻿.pdf-compress-tool {
    max-width: 920px;
    margin: 0 auto;
}
.compress-intro {
    margin-bottom: 28px;
}
.tool-badge {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid rgba(129,120,255,.28);
    border-radius: 999px;
    background: rgba(99,91,255,.08);
    color: #aaa3ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}
.compress-intro h2,
.result-title h3 {
    margin: 10px 0 6px;
}
.compress-intro p,
.settings-title p {
    margin: 0;
    color: #9299ad;
}
.upload-zone {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px;
    border: 1px dashed rgba(129,120,255,.35);
    border-radius: 20px;
    background: radial-gradient(circle at 50% 0%, rgba(99,91,255,.12), transparent 55%), rgba(255,255,255,.015);
    cursor: pointer;
    transition: .2s ease;
}
.upload-zone:hover,
.upload-zone.dragging {
    border-color: rgba(129,120,255,.8);
    background: radial-gradient(circle at 50% 0%, rgba(99,91,255,.2), transparent 60%), rgba(255,255,255,.025);
    transform: translateY(-2px);
}
.upload-zone input {
    display: none;
}
.upload-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: rgba(99,91,255,.14);
    border: 1px solid rgba(129,120,255,.25);
    color: #aaa3ff;
    font-size: 27px;
}
.upload-zone h3 {
    margin: 0 0 7px;
    font-size: 20px;
}
.upload-zone p {
    margin: 0 0 10px;
    color: #969daf;
}
.upload-zone span {
    color: #70778a;
    font-size: 12px;
}
.workspace {
    display: none;
    margin-top: 20px;
}
.workspace.visible {
    display: block;
}
.file-card,
.settings-card,
.progress-card,
.result-card {
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
}
.file-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}
.file-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 12px;
    background: rgba(99,91,255,.13);
    border: 1px solid rgba(129,120,255,.22);
    color: #aaa3ff;
    font-size: 11px;
    font-weight: 900;
}
.file-info {
    min-width: 0;
    flex: 1;
}
.file-info strong,
.file-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-info strong {
    margin-bottom: 4px;
}
.file-info span {
    color: #858c9f;
    font-size: 12px;
}
.remove-btn,
.secondary-btn {
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    color: #c4c9d5;
    border-radius: 10px;
    padding: 9px 13px;
    cursor: pointer;
}
.settings-card {
    margin-top: 16px;
    padding: 22px;
}
.settings-title h3 {
    margin: 0 0 5px;
}
.compression-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.compression-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    cursor: pointer;
    background: rgba(255,255,255,.02);
    transition: .2s ease;
}
.compression-option:hover,
.compression-option.active {
    border-color: rgba(129,120,255,.5);
    background: rgba(99,91,255,.08);
}
.compression-option input {
    position: absolute;
    opacity: 0;
}
.option-content {
    flex: 1;
}
.option-content strong,
.option-content small {
    display: block;
}
.option-content small {
    margin-top: 3px;
    color: #858c9f;
    font-size: 11px;
}
.option-mark {
    width: 16px;
    height: 16px;
    border: 1px solid #656b7c;
    border-radius: 50%;
}
.compression-option.active .option-mark {
    border-color: #8178ff;
    box-shadow: inset 0 0 0 4px #121a2b;
    background: #8178ff;
}
.compress-btn {
    width: 100%;
    margin-top: 18px;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #635bff, #8178ff);
    color: white;
    font-weight: 800;
    cursor: pointer;
}
.compress-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.progress-card,
.result-card {
    display: none;
    margin-top: 16px;
    padding: 20px;
}
.progress-card.visible,
.result-card.visible {
    display: block;
}
.progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}
.progress-head strong {
    color: #aaa3ff;
}
.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
}
.progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #635bff, #9a93ff);
    transition: width .2s ease;
}
.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}
.result-stat {
    padding: 15px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}
.result-stat span,
.result-stat strong {
    display: block;
}
.result-stat span {
    margin-bottom: 6px;
    color: #858c9f;
    font-size: 11px;
    text-transform: uppercase;
}
.result-stat strong {
    font-size: 18px;
}
.result-stat.highlight strong {
    color: #aaa3ff;
}
.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.download-btn {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 11px;
    background: linear-gradient(135deg, #635bff, #8178ff);
    color: white;
    text-decoration: none;
    font-weight: 800;
}
.secondary-btn {
    min-width: 150px;
}
.result-note,
.status-box {
    margin: 13px 0 0;
    color: #858c9f;
    font-size: 12px;
    line-height: 1.6;
}
.status-box.success {
    color: #9ed9bd;
}
.status-box.error {
    color: #ff9a9a;
}
@media (max-width: 700px) {
    .compression-options,
    .result-stats {
        grid-template-columns: 1fr;
    }
    .result-actions {
        flex-direction: column;
    }
    .secondary-btn {
        width: 100%;
    }
    .upload-zone {
        min-height: 220px;
        padding: 25px 18px;
    }
}
