/* pdf-to-word.css – clean, modern, fully client-side */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: #f6f9fc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.container {
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    padding: 2rem 2rem 2.2rem;
}

h1 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #0b2b3b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-note {
    background: #e3f2fd;
    color: #055c8c;
    padding: 0.7rem 1.2rem;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 2rem;
    border-left: 4px solid #0288d1;
}

/* upload / drop zone */
.upload-section {
    background: #f3f8fc;
    border: 2px dashed #b8d6e6;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
    margin-bottom: 1.8rem;
    position: relative;
}

.upload-section.drag-over {
    background: #e1f0fa;
    border-color: #2a7faa;
}

.upload-prompt .icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.upload-prompt p {
    font-size: 1.1rem;
    color: #1e3d4c;
}

.file-label {
    background: #0e5c7f;
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
    margin-left: 6px;
}

.file-label:hover {
    background: #064663;
}

.file-name {
    margin-top: 1rem;
    font-weight: 500;
    color: #064e6b;
    word-break: break-word;
}

/* action buttons */
.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.btn {
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    border: 1px solid transparent;
}

.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.4);
}

.btn-primary {
    background: #0c6b8a;
    color: white;
}
.btn-primary:hover:enabled {
    background: #09506b;
    transform: scale(1.01);
}

.btn-success {
    background: #1e7e4c;
    color: white;
}
.btn-success:hover:enabled {
    background: #15633b;
}

.btn-secondary {
    background: #ebf0f3;
    color: #1a3a47;
    border: 1px solid #c2d4dc;
}
.btn-secondary:hover {
    background: #dbe4e9;
}

/* preview area */
.preview-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f455b;
    margin-bottom: 0.8rem;
}

.preview-box {
    background: #fafeff;
    border: 1px solid #dbe9f0;
    border-radius: 18px;
    padding: 1.6rem;
    min-height: 240px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', 'SF Mono', monospace;
    box-shadow: inset 0 1px 6px rgba(0,0,0,0.02);
    color: #13343e;
}

.preview-box .placeholder {
    color: #8099a3;
    font-style: italic;
}

/* status / error message */
.status-message {
    margin-top: 1.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    background: #fff8e5;
    color: #7a5800;
    font-weight: 500;
    display: none;
}

.status-message.show {
    display: block;
}

.status-message.error {
    background: #ffebee;
    color: #a51d2c;
}

.status-message.success {
    background: #e1f3e1;
    color: #1d6b2e;
}

/* small responsives */
@media (max-width: 550px) {
    .container { padding: 1.5rem; }
    .action-bar { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}