:root {
    --x2j-bg-main: #0b0f19;
    --x2j-panel-bg: #131b2e;
    --x2j-border-color: #24314b;
    --x2j-gradient-accent: linear-gradient(135deg, #06b6d4, #6366f1);
    --x2j-text-light: #f8fafc;
    --x2j-text-muted: #64748b;
    --x2j-editor-bg: #060a12;
    --x2j-success: #10b981;
    --x2j-danger: #f43f5e;
}

.x2j-wrapper {
    background-color: var(--x2j-bg-main);
    color: var(--x2j-text-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.6);
    max-width: 1200px;
    margin: 20px auto;
}

.x2j-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--x2j-border-color);
    padding-bottom: 20px;
}

.x2j-header h2 {
    font-size: 2.3rem;
    margin: 0 0 10px 0;
    background: var(--x2j-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.x2j-header p {
    color: var(--x2j-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.x2j-dashboard {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.x2j-panel {
    background: var(--x2j-panel-bg);
    border: 1px solid var(--x2j-border-color);
    border-radius: 10px;
    padding: 25px;
    animation: x2jSlideFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes x2jSlideFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.x2j-panel-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.x2j-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Drag and Drop File Handlers Configurations Layout Visual Elements styling */
.x2j-dropzone {
    border: 2px dashed #06b6d4;
    background: rgba(6, 182, 212, 0.02);
    border-radius: 8px;
    padding: 35px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.x2j-dropzone.dragover {
    background: rgba(6, 182, 212, 0.08);
    border-color: #22d3ee;
}

.x2j-icon-main {
    font-size: 2.6rem;
    margin-bottom: 12px;
    color: #22d3ee;
}

.x2j-dz-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 6px 0; }
.x2j-dz-subtitle { font-size: 0.85rem; color: var(--x2j-text-muted); margin: 0; }

/* Textareas Editors Visualization Workspace Frames styling sheets */
.x2j-textarea-wrapper {
    margin-top: 10px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--x2j-border-color);
}

.x2j-textarea-editor {
    width: 100%;
    height: 200px;
    background-color: var(--x2j-editor-bg);
    color: #e2e8f0;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.9rem;
    padding: 15px;
    border: none;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    display: block;
    line-height: 1.5;
}

.json-output-theme {
    color: #a7f3d0;
    height: 260px;
}

/* Core Interface Actions Buttons Elements Blueprint Specifications definitions */
.x2j-btn {
    background: var(--x2j-gradient-accent);
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
}

.x2j-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.x2j-btn-sm {
    background: #1e293b;
    border: 1px solid var(--x2j-border-color);
    color: #f1f5f9;
    padding: 7px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

.x2j-btn-sm:hover { background: #24314b; }
.x2j-btn-danger { background: linear-gradient(135deg, #f43f5e, #be123c); }

.x2j-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.x2j-error-msg {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid var(--x2j-danger);
    color: #fca5a5;
    padding: 14px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Dynamic Statistical Cards Blueprint Presentation Matrices */
.x2j-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.x2j-stat-card {
    background: #070b12;
    border: 1px solid var(--x2j-border-color);
    border-radius: 6px;
    padding: 18px 15px;
    text-align: center;
}

.x2j-stat-lbl { display: block; font-size: 0.75rem; color: var(--x2j-text-muted); text-transform: uppercase; margin-bottom: 8px; font-weight: 700; letter-spacing: 0.5px; }
.x2j-stat-val { font-size: 1.45rem; font-weight: 800; color: #fff; }

/* Code Visualization Adjusters Ribbon Rows Styling Elements Parameters */
.x2j-format-controls { display: flex; gap: 4px; background: #060a12; padding: 4px; border-radius: 6px; border: 1px solid var(--x2j-border-color); }
.x2j-btn-control { background: transparent; border: none; color: var(--x2j-text-muted); padding: 6px 14px; font-size: 0.8rem; font-weight: 600; cursor: pointer; border-radius: 4px; }
.x2j-btn-control.active { background: #1e293b; color: #22d3ee; }

.x2j-export-ribbon {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Multi-language developer documentation snippet modules headers sheets tab */
.x2j-developer-frameworks-box {
    margin-top: 30px;
    border-top: 1px solid var(--x2j-border-color);
    padding-top: 20px;
}

.x2j-developer-frameworks-box h3 { font-size: 1.1rem; margin: 0 0 15px 0; color: #fff; }

.x2j-tabs-header { display: flex; border-bottom: 1px solid var(--x2j-border-color); overflow-x: auto; gap: 5px; }
.x2j-tab-trigger { background: transparent; border: none; color: var(--x2j-text-muted); padding: 10px 16px; cursor: pointer; font-size: 0.85rem; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.x2j-tab-trigger.active { color: #22d3ee; border-bottom-color: #22d3ee; }

.x2j-snippet-display-panel {
    background: #04070d;
    color: #34d399;
    padding: 15px;
    border-radius: 0 0 6px 6px;
    margin: 0;
    font-family: "Consolas", monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    line-height: 1.45;
    max-height: 220px;
}

/* Structural Adaptations Viewports Fluid Framework Layout adjustments */
@media (max-width: 768px) {
    .x2j-wrapper { padding: 15px; }
    .x2j-actions-row { flex-direction: column; }
    .x2j-btn { width: 100%; justify-content: center; }
    .x2j-panel-title-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .x2j-format-controls { width: 100%; justify-content: space-between; }
}

@media print {
    body { background: #fff; color: #000; }
    .x2j-wrapper { box-shadow: none; padding: 0; margin: 0; }
    .x2j-input-section, .x2j-export-ribbon, .x2j-developer-frameworks-box { display: none !important; }
    .x2j-panel { background: #fff; border: 1px solid #000; color: #000; }
    .x2j-stat-card { border-color: #000 !important; }
    .x2j-textarea-editor { color: #000 !important; background: #fff !important; border: 1px solid #000 !important; }
}