/* ============================================================
   Integral-Konverter (xml-convert) Styles
   ============================================================ */

.xc-container {
    max-width: 1200px;
    margin: 1.5rem auto 3rem;
    padding: 0 1rem;
}

.xc-card {
    background: var(--card-bg, #ffffff);
    border-radius: var(--radius, 12px);
    padding: 1.75rem 2rem;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.75rem;
}

.xc-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-color, #0f172a);
    margin: 0 0 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.xc-title i {
    color: #2563eb;
}

.xc-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.xc-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color, #0f172a);
    margin: 1.25rem 0 0.85rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #f1f5f9;
}

.xc-section-header i {
    color: #3b82f6;
    font-size: 1.05rem;
}

/* Form layout */
.xc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.xc-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.xc-form-group.full-width {
    grid-column: 1 / -1;
}

.xc-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.xc-label .required {
    color: #ef4444;
}

.xc-input,
.xc-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.xc-input:focus,
.xc-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Upload Dropzone */
.xc-dropzone {
    border: 2px dashed #94a3b8;
    border-radius: 10px;
    padding: 2.25rem 1.5rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
    position: relative;
}

.xc-dropzone:hover,
.xc-dropzone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.xc-dropzone-icon {
    font-size: 2.75rem;
    color: #10b981;
    margin-bottom: 0.75rem;
}

.xc-dropzone-text {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.xc-dropzone-hint {
    font-size: 0.85rem;
    color: #64748b;
}

.xc-file-input {
    display: none;
}

/* Status & info banner */
.xc-status {
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    display: none;
    align-items: center;
    gap: 0.6rem;
}

.xc-status.success {
    display: flex;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.xc-status.error {
    display: flex;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.xc-status.info {
    display: flex;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Action Buttons */
.xc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    align-items: center;
}

.xc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.xc-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.xc-btn-primary:hover {
    background: #1d4ed8;
}

.xc-btn-success {
    background: #059669;
    color: #ffffff;
}

.xc-btn-success:hover {
    background: #047857;
}

.xc-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.xc-btn-secondary:hover {
    background: #e2e8f0;
}

.xc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Preview Table */
.xc-table-wrapper {
    max-height: 380px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 1rem 0;
}

.xc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.xc-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 0.65rem 0.85rem;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.xc-table td {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    white-space: nowrap;
}

.xc-table tr:hover td {
    background: #f8fafc;
}

.xc-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.xc-badge-qlf { background: #dcfce7; color: #166534; }
.xc-badge-dns { background: #fef3c7; color: #92400e; }
.xc-badge-dnf { background: #fee2e2; color: #991b1b; }
.xc-badge-dsq { background: #f3e8ff; color: #6b21a8; }
.xc-badge-nps { background: #e2e8f0; color: #475569; }

/* XML Code Output Box */
.xc-xml-viewer {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 8px;
    padding: 1.25rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre;
    tab-size: 2;
    border: 1px solid #334155;
}

@media (max-width: 768px) {
    .xc-grid {
        grid-template-columns: 1fr;
    }
}
