/* tools.css */
.tool-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tool-header .subtitle {
    color: #718096;
    font-size: 1rem;
}

.upload-area {
    margin-bottom: 2rem;
}

.upload-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.upload-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.upload-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.add-more-btn {
    width: 42px;
    height: 42px;
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s;
}

.add-more-btn:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.3s ease-out;
}

.file-icon {
    font-size: 1.5rem;
    color: #e53e3e;
}

.file-info {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.file-size {
    font-size: 0.85rem;
    color: #718096;
}

.remove-btn {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 0.5rem;
    border-radius: 4px;
}

.remove-btn:hover {
    color: #e53e3e;
    background: #fed7d7;
}

.action-area {
    text-align: center;
    margin: 2rem 0;
}

.tool-btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none !important;
}

.tool-btn:not(:disabled):hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(67, 56, 202, 0.3);
}

.result-area {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.result-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.result-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.result-card h3 {
    color: #166534;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.result-filename {
    color: #3f3f46;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.download-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.download-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .tool-container {
        padding: 1.5rem;
    }
    
    .upload-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-name {
        max-width: 150px;
    }
}