.bench-cell {
    text-align: center;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
}

.label-btn-cell {
    min-width: 120px;
    text-align: center;
}

.label-input {
    border: 2px solid #0d6efd !important;
}

.table td, .table th {
    padding: 0.6rem 1rem;
    border-right: 1px solid #dee2e6;
    vertical-align: middle;
}

.table td:last-child, .table th:last-child {
    border-right: none;
}

#use-dist-container {
    display: flex;
    justify-content: flex-end;
}

#submit-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#submit-page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#textareas-container {
    display: flex;
    height: 250px;
    min-height: 150px;
    resize: vertical;
    overflow: hidden;
}

#textarea-divider {
    box-sizing: border-box;
    width: 16px;
    padding: 0 4px;
    flex-shrink: 0;
    cursor: col-resize;
    user-select: none;
    position: relative;
}

#textarea-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    right: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    transition: background 0.15s;
}

#textarea-divider:hover::before {
    background: #bdbdbd;
}

.textarea-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.textarea-label-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.upload-btn {
    padding: 0.05rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    line-height: 1.4;
}

textarea {
    width: 100%;
    flex: 1;
    font-family: monospace;
    font-size: 0.85rem;
    padding: 0.5rem;
    box-sizing: border-box;
    resize: none;
}

textarea.drag-over {
    border: 2px solid #0d6efd !important;
}

#submit-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
}

#output-area {
    margin-top: 1.5rem;
}

#output {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 4px;
    min-height: 80px;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.85rem;
}

.submit-code-button {
    align-self: flex-start;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.submit-code-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.custom-navbar {
    background-color: #2c2c2c !important;
    padding: 0.8rem !important;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.nav-title {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: bold;
    text-decoration: none;
    margin-right: 1rem;
    transition: opacity 0.2s ease;
}

.nav-title:hover {
    opacity: 0.7;
    color: #ffffff !important;
}

.nav-link-custom {
    color: #d4d4d4;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding: 4px 0;
    padding-top: 8px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link-custom:hover {
    color: #ffffff !important;
}

.nav-link-custom:hover::after {
    transform: scaleX(1);
}


/* prevent CSS display rules from overriding the hidden attribute */
[hidden] { display: none !important; }

body {
    font-family: sans-serif;
    color: #222;
    margin: 8px;
}

h1 {
    margin-bottom: 1rem;
}

button {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.05s ease;
}

button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
}

.error-header-container {
    text-align: center;
    padding-top: 50px;
}

