/*
    Yeramihi Volumetric Flow Calibration
    Author: Yeramihi
    Repository: https://github.com/Yeramihi/yeramihi-volumetric-flow-calibration
    License: MIT
*/

body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    margin: 0;
    min-height: 100vh;
    padding: 16px;
}

.container {
    background: #1e293b;
    padding: 32px;
    border-radius: 12px;
    width: 100%;
    max-width: 980px;
    margin: 32px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

h1 {
    text-align: center;
    margin-bottom: 24px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 32px;
}

.layout::before {
    content: "";
    grid-column: 2;
    grid-row: 1;
    background: #475569;
    width: 1px;
}

.input-panel {
    grid-column: 1;
}

.description-panel {
    grid-column: 3;
    font-size: 15px;
    line-height: 1.5;
    color: #cbd5e1;
}

.description-panel h2,
.description-panel h3 {
    color: #e5e7eb;
}

.description-panel ul {
    padding-left: 22px;
}

.warning-title {
    color: #ff4d4f !important;
}

.repo-note a {
    color: #38bdf8;
}

.input-panel label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 14px;
}

.input-panel input,
.input-panel select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #334155;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

button {
    margin-top: 18px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #22c55e;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #16a34a;
}

#clearButton {
    background: #64748b;
    color: #fff;
}

#clearButton:hover {
    background: #475569;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    cursor: pointer;
    font-size: 14px;
    color: #e5e7eb;
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
}

.gcode-output-wrapper {
    margin-top: 22px;
}

.gcode-output-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

#gcodeOutput {
    width: 100%;
    min-height: 260px;
    padding: 10px;
    border-radius: 6px;
    border: none;
    resize: vertical;
    background: #0f172a;
    color: #e5e7eb;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
}

.hidden-button,
.hidden {
    display: none;
}

.visible-button {
    display: block;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #020617;
    color: #e5e7eb;
    padding: 14px 16px;
    border: 1px solid #334155;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 9999;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-actions button {
    margin: 0;
    width: auto;
    padding: 8px 12px;
}

.cookie-actions #rejectCookies {
    background: #64748b;
    color: #fff;
}

.cookie-actions #rejectCookies:hover {
    background: #475569;
}

@media (max-width: 850px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .layout::before {
        display: none;
    }

    .input-panel,
    .description-panel {
        grid-column: 1;
    }

    .description-panel {
        border-top: 1px solid #475569;
        margin-top: 24px;
        padding-top: 24px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions button {
        flex: 1;
    }
}
