:root {
    --bg-color: #f4f7f6;
    --panel-bg: #ffffff;
    --primary-blue: #2563eb;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
}

/* --- CHANGE #1: Remove overflow-y from body --- */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    /* We want the WHOLE window to scroll now, not just panels */
    /* REMOVE or COMMENT OUT: overflow-y: hidden; (if present) */
    box-sizing: border-box;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; /* Changed from '1fr auto' to accommodate scrolling */
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    /* Container height will now grow with content */
    height: auto; 
    padding-bottom: 80px; /* Space for the floating button bar */
}

.single-container
{
	display: flex;               /* Enable Flexbox */
	justify-content: center;     /* Horizontal centering */
	align-items: center;        /* Vertical centering */
	min-height: 100vh;           /* Take up full viewport height */
	margin: 0;
}

/* Basic Panel Styling */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.single-panel
{
	
}

h2 {
    margin-top: 0;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 10px;
}

/* Input Styling (unchanged) */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: -10px;
}

input[type="text"], input[type="date"], input[type="password"], input[type="file"], select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.phase-section {
    border-top: 4px dashed var(--border-color);
    padding-top: 15px;
}

/* XML Preview Box (unchanged) */
.xml-display {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    white-space: pre;
    max-height: 60vh; 
    overflow-y: auto;
    max-width: 60vw; 
    overflow-x: auto;
    min-height: 300px; 
}

/* Optional: Subtle styling for the scrollbar inside the black frame (Chrome/Safari/Edge) */
.xml-display::-webkit-scrollbar {
    width: 8px;
    height: 8px; /* For the horizontal bar */
}

.xml-display::-webkit-scrollbar-track {
    background: #1e1e1e; /* Match the frame bg */
}

.xml-display::-webkit-scrollbar-thumb {
    background: #444; /* A dark gray thumb */
    border-radius: 4px;
}

.xml-display::-webkit-scrollbar-thumb:hover {
    background: #666; /* Slightly lighter on hover */
}

.placeholder {
}

.output-panel {
    align-self: start; 
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* --- CHANGE #3: Fix the Action Bar at the Bottom --- */
.action-bar {
    /* Instead of being part of the grid flow, we fix it */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1d4ed8; /* Give it a background so content doesn't bleed through */
    border-top: 1px solid var(--border-color);
    padding: 15px 40px; /* Extra padding looks better fixed */
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    z-index: 100; /* Stays on top of everything */
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
	border: solid 1px #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-color);
}

.tag
{
	color: #b75501;
}
.attribute
{
	color: #0061a6;
}
.value
{
	color: #54790d;
}
.table-container
{
	display: table;
}
.table-header 
{
	font-weight: bold
}
.row-container, .table-header
{
	display: table-row;
}
.cell-container
{
	display: table-cell;
	padding: 2px 10px;
}
.hidden
{
	display: none;
}
.input-group A
{
	float: right;
}
.warning
{
	font-weight: bold;
	color: #fe0101;
	letter-spacing: 0.07rem;
}
