/* Print styles */
@media print { 
    .hide-on-print {
        display: none !important;
    }
	textarea {
    /* remove the textarea box completely for print */
    border: none !important;   /* hide the border */
    outline: none !important;  /* hide the focus ring (some browsers) */
    resize: none;              /* prevent the little resize handle from printing */
  }
}

body {
    min-width: 350px;
    font-size: 1rem; /* using relative units */
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border: 1px solid black;
    padding: 0.4em;
}

th {
    background-color: lightgray;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr[draggable="true"] {
    cursor: grab;
}

tr[draggable="true"]:hover {
    background-color: lightblue;
}

ul {
    margin-block-start: 0.1em;
}

h3 {
    margin: 0.1em;
}

.svg-container {
    width: 100vw;  /* Viewport width */
    height: 100vh; /* Viewport height */
    min-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-container svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.fieldIcon {
    width: 1em;
    height: 1em;
    margin-left: 1em;
    cursor: pointer;
}

/* Style the input text box to fill the cell */
.table-input {
    box-sizing: border-box;
    width: 100%;
    padding: 4px;
}

.info-icon {
    /* Match the font size */
    height: 1em;
    vertical-align: top;
    cursor: help;
}

.big-button {
    font-size: 1.5em;
    font-weight: bold;
}

.seed-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
    margin: .75rem 0;
}

.seed-controls input {
    min-width: 12rem;
}

.seed-controls small {
    flex-basis: 100%;
}

@media (max-width: 700px) {
    body { min-width: 0; }
    .split-container { flex-direction: column; }
    #tableContainer, .table-container { overflow-x: auto; max-width: 100%; }
    .seed-controls input { flex: 1 1 12rem; }
}

.table-container {
    position: relative;
}

.hidden {
    display: none;
}

.editButton {
    position: absolute;
    top: 0;
    left: 0;
    margin: 10px;
}

.editable-header {
    border: 2px solid #ddd;
    padding: 15px;
    margin: 20px 0;
    background-color: #f9f9f9;
    cursor: text;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.commentsBox {
	display: none;
	width: 100%;
	min-height: 6rem;
	overflow-y: hidden;   /* so the scrollbar never shows */
	resize: vertical;     /* still lets the user drag‑resize if they want */
}

.custom-file-upload {
    cursor: pointer;
    padding: 0.2em 1.5em;
    margin: 0 0.5em;
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    display: inline-block;
}

.custom-file-upload:hover {
    background-color: #0056b3;
}

#fieldingTable th.column-dragging {
    opacity: 0.5;
}

.gradient-text {
    background: linear-gradient(to bottom, blue, green, blue);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
    display: inline-block;
    /* Ensures the blink animation affects the whole word */
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.blinking {
    animation: blink 1s infinite;
}

.split-container {
    position: relative;
    display: grid;
    grid-template-areas:
        "options notes notes notes"
        "saveload notes notes notes"; /* Defines the layout areas */
    gap: 20px; /* Space between the columns */
}

#options {
    min-width: 350px;
    grid-area: options; 
}

#notes {
    grid-area: notes; 
}

#saveload {
    grid-area: saveload; /* Assigns the footer section to the 'saveload' grid area */
    height: 60px; 
}

.split-section {
    
}

/* Media query for small screens */
@media (max-width: 800px) {
    .split-container {
        grid-template-columns: 1fr; /* Single column layout on small screens */
        grid-template-rows: auto auto auto; /* Three rows: options, notes, and saveload */
        grid-template-areas:
            "notes"
            "options"
            "saveload"; /* Stacks sections vertically with footer at the bottom */
    }
}

