:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --word-color: #2b579a;
    --pdf-color: #e11d48;
    --bg-gray: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --border-radius: 16px;
}

.tool-wrapper {
    padding: 60px 20px;
    background: var(--bg-gray);
    min-height: 70vh;
    font-family: 'Inter', system-ui, sans-serif;
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.upload-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: var(--card-shadow);
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

.drop-zone.dragover {
    background: #eff6ff;
    border-color: var(--primary);
}

.icon-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 3rem;
}

.pdf-icon { color: var(--pdf-color); }
.word-icon { color: var(--word-color); }
.transition-icon { font-size: 1.5rem; color: #94a3b8; }

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.process-card, .status-card {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.btn-convert {
    width: 100%;
    background: var(--word-color);
    color: white;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.progress-bar-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.hidden { display: none !important; }