/* Base styles - inheriting from your existing styles */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --success-color: #4bb543;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

h1{
    font-size: 2.8rem;
}

/* Tool Selection */
.tool-selection {
    margin-bottom: 40px;
}

.tool-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tool-tab {
    flex: 1 1 150px;
    padding: 15px;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    color: var(--dark-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tool-tab i {
    margin-right: 8px;
    color: var(--primary-color);
}

.tool-tab:hover {
    background: #f5f7ff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
}

.tool-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tool-tab.active i {
    color: white;
}

/* File List */
.file-list {
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background: white;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: #f9faff;
}

.file-icon {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-size {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.file-actions {
    margin-left: 15px;
}

.file-remove {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.file-remove:hover {
    transform: scale(1.1);
}

.file-reorder {
    margin-right: 10px;
    cursor: move;
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* File Preview */
.file-preview {
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background: white;
    padding: 20px;
    text-align: center;
}

.pdf-preview {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background: #f8f9fa;
    margin-bottom: 15px;
}

.pdf-page-info {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.pdf-page-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.pdf-page-nav button {
    padding: 8px 15px;
    background: var(--light-color);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.pdf-page-nav button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pdf-page-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdf-page-nav span {
    padding: 8px 15px;
    font-weight: 500;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

/* Hint Text */
.hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* Format Badges */
.format-badge.merge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.format-badge.split {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.format-badge.compress {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.format-badge.extract {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.format-badge.convert {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tool-tabs {
        flex-direction: column;
    }
    
    .tool-tab {
        flex: 1 1 auto;
    }
}

@media (max-width: 576px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-icon {
        margin-bottom: 10px;
    }
    
    .file-actions {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-end;
    }
}