/* @import "common.css"; */

/* Word2PDF Specific Styles */

/* Settings Panel */
.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-700);
    display: flex;
    justify-content: space-between;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--ink-900);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(43, 111, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Preview Container - Matching PDFMerge style */
.preview-container {
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: auto;
    flex: 1; /* Fill available space */
    min-height: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Docx Preview Specifics */
.docx-wrapper {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 40px !important;
    margin-bottom: 20px;
    max-width: 100%;
}

/* Empty State Override */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ink-500);
    gap: 12px;
    padding: 40px;
    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;
    color: var(--blue-200);
}

/* --- Added from word2md/popup.css to match style --- */

/* Pill Outline (missing in common.css) */
.pill-outline {
    background: #ffffff;
    border: 1px solid var(--blue-200);
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--blue-200);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    background: var(--blue-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.dropzone:hover {
    border-color: var(--blue-500);
    background: #eef6ff;
}

.dropzone.is-dragover {
    border-color: var(--blue-600);
    background: #e9f2ff;
    box-shadow: 0 0 0 4px rgba(43, 111, 255, 0.15);
}

.dropzone-icon {
    color: var(--blue-600);
    background: #e8f1ff;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.dropzone-text strong {
    font-size: 1rem;
    display: block;
}

.dropzone-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.dropzone-action {
    background: #ffffff;
    border: 1px solid var(--blue-200);
    color: var(--blue-700);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.dropzone-action:hover {
    background: var(--blue-50);
}

/* List */
.list-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-text {
    font-size: 0.8rem;
    color: var(--ink-500);
}

.file-list {
    flex: 1;
    list-style: none;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fafcff;
}

.file-list-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    gap: 10px;
}

.file-list-item:last-child {
    border-bottom: none;
}

.file-info {
    min-width: 0;
}

.file-path {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink-700);
}

.file-meta {
    font-size: 0.75rem;
    color: var(--ink-500);
}

.file-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.status-pending { background: var(--blue-50); color: var(--blue-600); }
.status-processing { background: #fff8e6; color: var(--warning); }
.status-success { background: #ecfdf3; color: var(--success); }
.status-error { background: #fef3f2; color: var(--error); }

/* Progress */
.progress-area {
    margin-bottom: 4px;
}

.progress-bar-bg {
    height: 6px;
    background: var(--blue-100);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3c7dff, #2b6fff);
    width: 0%;
    transition: width 0.2s ease;
}

.progress-info {
    font-size: 0.75rem;
    color: var(--ink-500);
    text-align: right;
    display: flex;
    justify-content: space-between;
}

/* Button Icon */
.btn-icon {
    background: var(--blue-50);
    color: var(--blue-600);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--blue-100);
    color: var(--blue-700);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
