.pdf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pdf-tools {
    margin-top: 20px;
}

.tool-tabs {
    display: flex;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tool-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #666;
    font-weight: 500;
}

.tool-tab:hover {
    background: #e9ecef;
    color: #333;
}

.tool-tab.active {
    background: #007bff;
    color: white;
}

.tool-content {
    background: white;
    padding: 30px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 400px;
}

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-area.dragover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: #999;
}

.selected-files {
    margin: 20px 0;
}

.file-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    width: 24px;
    height: 24px;
    background: #007bff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.remove-file:hover {
    background: #c82333;
}

.progress-container {
    margin: 20px 0;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.result-container {
    margin-top: 20px;
    display: none;
}

.result-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.result-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.result-description {
    color: #666;
    margin-bottom: 20px;
}

.download-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

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

.btn:disabled:hover {
    background: #6c757d;
}

/* Split specific styles */
.split-options {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.split-option {
    margin-bottom: 10px;
}

.split-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.split-option input[type="radio"] {
    margin: 0;
}

.page-range {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.page-range input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-tabs {
        flex-direction: column;
    }
    
    .tool-tab {
        border-radius: 0;
    }
    
    .tool-content {
        padding: 20px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .page-range {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-range input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pdf-container {
        padding: 15px;
    }
    
    .tool-content {
        padding: 15px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
}