.tool-section {
    min-height: 100vh;
    padding: 120px 20px 60px;
    position: relative;
}

.tool-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FF5E00, #00B2FF);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.tool-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.6;
    margin-bottom: 50px;
}

.upload-zone {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 94, 0, 0.3);
    border-radius: 15px;
    padding: 80px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.upload-zone:hover {
    border-color: #FF5E00;
    background: rgba(255, 94, 0, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 94, 0, 0.2);
}

.upload-zone.drag-over {
    border-color: #00B2FF;
    background: rgba(0, 178, 255, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: #FF5E00;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 20px rgba(255, 94, 0, 0.5));
}

.upload-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.upload-hint {
    font-size: 1rem;
    opacity: 0.6;
}

.files-container {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 94, 0, 0.2);
}

.files-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
}

.add-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #FF5E00;
    border-radius: 5px;
    color: #FF5E00;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.add-more-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.add-more-btn:hover {
    background: rgba(255, 94, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 94, 0, 0.3);
}

.unified-password {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 94, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.unified-password .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    font-weight: 500;
}

.unified-password input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FF5E00;
}

.unified-password .password-input {
    width: 100%;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.files-list::-webkit-scrollbar {
    width: 8px;
}

.files-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.files-list::-webkit-scrollbar-thumb {
    background: rgba(255, 94, 0, 0.3);
    border-radius: 4px;
}

.files-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 94, 0, 0.5);
}

.file-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 94, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: rgba(255, 94, 0, 0.4);
    transform: translateX(5px);
}

.file-item.unlocked {
    border-color: rgba(0, 178, 255, 0.5);
    background: rgba(0, 178, 255, 0.05);
}

.file-item.error {
    border-color: rgba(255, 0, 0, 0.5);
    background: rgba(255, 0, 0, 0.05);
}

.file-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.file-icon {
    width: 36px;
    height: 36px;
    color: #FF5E00;
    flex-shrink: 0;
}

.file-icon.unlocked {
    color: #00B2FF;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.05rem;
}

.file-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.file-status.locked {
    color: #FF5E00;
}

.file-status.unlocked {
    color: #00B2FF;
}

.file-status.error {
    color: #ff4444;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.remove-file-btn {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    background: transparent;
    color: #ff4444;
    border-radius: 5px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.remove-file-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff4444;
    transform: scale(1.1);
}

.file-password {
    display: flex;
    gap: 10px;
}

.password-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 94, 0, 0.3);
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: #FF5E00;
    box-shadow: 0 0 20px rgba(255, 94, 0, 0.2);
}

.password-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.unlock-single-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #FF5E00, #00B2FF);
    border: none;
    border-radius: 5px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.unlock-single-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 94, 0, 0.4);
}

.unlock-single-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.actions-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 94, 0, 0.2);
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.cta-button svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.cta-primary {
    background: linear-gradient(45deg, #FF5E00, #00B2FF);
    color: white;
    box-shadow: 0 0 30px rgba(255, 94, 0, 0.5);
}

.cta-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 5px 40px rgba(255, 94, 0, 0.6);
}

.cta-secondary {
    background: transparent;
    color: #FF5E00;
    border: 2px solid #FF5E00;
    box-shadow: inset 0 0 20px rgba(255, 94, 0, 0.1);
}

.cta-secondary:hover:not(:disabled) {
    background: rgba(255, 94, 0, 0.1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 94, 0, 0.4);
    border-color: #ffffff;
}

.cta-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

.download-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 94, 0, 0.2);
}

.mode-label,
.mode-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 94, 0, 0.2);
    transition: 0.4s;
    border-radius: 30px;
    border: 2px solid rgba(255, 94, 0, 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(45deg, #FF5E00, #00B2FF);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.5);
}

input:checked+.slider {
    background-color: rgba(0, 178, 255, 0.2);
    border-color: rgba(0, 178, 255, 0.5);
}

input:checked+.slider:before {
    transform: translateX(30px);
    box-shadow: 0 0 10px rgba(0, 178, 255, 0.5);
}

.privacy-notice {
    text-align: center;
    margin-top: 40px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 94, 0, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.pdf-preview {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preview-container {
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
}

.close-preview {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 0, 0, 0.5);
    background: transparent;
    color: #ff4444;
    border-radius: 5px;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-preview:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff4444;
    transform: scale(1.1);
}

#pdfCanvas {
    max-width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    margin: 0 auto;
    background: white;
    border-radius: 5px;
}

.preview-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.preview-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #FF5E00, #00B2FF);
    border: none;
    border-radius: 5px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.preview-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 94, 0, 0.5);
}

.preview-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#pageInfo {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
}

.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.progress-content {
    text-align: center;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255, 94, 0, 0.2);
    border-top-color: #FF5E00;
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.progress-detail {
    font-size: 1rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .tool-section {
        padding: 100px 15px 40px;
    }

    .upload-zone {
        padding: 50px 20px;
    }

    .upload-icon {
        width: 60px;
        height: 60px;
    }

    .files-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .add-more-btn {
        width: 100%;
        justify-content: center;
    }

    .file-header {
        flex-wrap: wrap;
    }

    .file-password {
        flex-direction: column;
    }

    .unlock-single-btn {
        width: 100%;
    }

    .actions-panel {
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 400px;
    }

    .download-mode {
        flex-wrap: wrap;
        width: 100%;
        max-width: 400px;
    }
}