/* App Title */
.app-title {
    text-align: center;
    color: #152352;
    font-size: 30px;
    margin-top: 0; /* Resets the default browser spacing */
    margin-bottom: 20px;
    letter-spacing: 2px; /* Optional: adds a nice breathing room between the all-caps letters */
    font-family: Arial, sans-serif;
}

/* General Setup */
body {
    margin: 0;
    padding: 0;
    height: 100vh; 
    display: flex;
    flex-direction: column; /* Stacks Header, Main, Footer */
    background-color: #f5f5f5;
    overflow: hidden; 
}

footer {
        font-family: Arial, sans-serif !important;
        font-size: 14px !important;
    }

.version-tag {
    position: absolute;        /* Pins it relative to the footer box */
    right: 20px;               /* Pushes it to the far right edge */
    font-size: 11px;
    opacity: 0.5;
    font-family: monospace;
    color: white;              /* Matches footer text */
}

.site-footer {
    flex-shrink: 0;    /* Prevents the footer from squishing */
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    padding: 15px;
    background-color: #2c3e50;
    color: white;
    position: relative; /* Keeps .version-tag relative to THIS box */
    width: 100%;
    box-sizing: border-box;
}

/* Header & Horizontal Buttons */
header {
    padding: 20px;
    flex-shrink: 0; /* Prevents the header from shrinking when space gets tight */
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.button-container {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.buttons {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #007BFF;
    border-radius: 8px;
    background-color: white;
    color: #007BFF;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px; 
    text-align: center;
}

.buttons:hover, .back-btn:hover {
    background-color: #007BFF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Side-by-Side Workspace */
.main-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1;           /* Takes up all available vertical space */
    min-height: 0;     /* Critical for nested scrolling */
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
}

/* Sections */
.input-section,
.output-section {
    flex: 1; /* Both take up exactly 50% of the horizontal space */
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents unbroken strings of text from breaking the 50/50 split */
}

.output-section {
    background: #e4e6e9;
    border-radius: 12px;
    overflow: hidden; /* Keeps the rounded corners clean when the scrollbar appears */
}

/* The Editable Area and Output View */
.inputarea,
#output-view {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto; /* Puts the scrollbar strictly inside these boxes */
}

/* Specific Input Area Styles */
.inputarea {
    background: white;
    border: 3px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    outline: none;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inputarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.15);
}

/* Specific Output Area Styles */
#output-view {
    padding: 20px;
    font-size: 1.1rem; /* Match the input area font size */
}
.back-btn {
	    position: fixed;
    top: 20px;
    left: 20px;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #007BFF;
    border-radius: 8px;
    background-color: white;
    color: #007BFF;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 160px;             
    display: inline-block;
    text-align: center;
    white-space: nowrap; 
    box-sizing: border-box;
}



