.omni-generatory-wspolrzedne {
    --primary-color: #4f883d;
    --primary-hover: #3e702e;
    --accent-color: #673ab7;
    --text-color: #333;
    --bg-color: #f7f9fc;
    --panel-bg: #ffffff;
    --border-color: #ddd;
    --font-family: 'Inter', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

.omni-generatory-wspolrzedne *,
.omni-generatory-wspolrzedne *::before,
.omni-generatory-wspolrzedne *::after {
    box-sizing: border-box;
}

.omni-generatory-wspolrzedne {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Radio Group Styling */
.omni-generatory-wspolrzedne .coord-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.omni-generatory-wspolrzedne .coord-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.omni-generatory-wspolrzedne .coord-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    appearance: auto;
    accent-color: var(--primary-color);
}

/* Checkbox Group Styling */
.omni-generatory-wspolrzedne .coord-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.omni-generatory-wspolrzedne .coord-checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.omni-generatory-wspolrzedne .coord-checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    appearance: auto;
    accent-color: var(--primary-color);
}

.omni-generatory-wspolrzedne .coord-inline-option,
.omni-generatory-wspolrzedne .coord-color-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.omni-generatory-wspolrzedne .coord-color-option input[type="color"] {
    width: 46px;
    height: 34px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
}

.omni-generatory-wspolrzedne .coord-app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar Settings */
.omni-generatory-wspolrzedne .coord-settings-panel {
    background-color: var(--panel-bg);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.omni-generatory-wspolrzedne .coord-settings-panel h1 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.omni-generatory-wspolrzedne .coord-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.omni-generatory-wspolrzedne label {
    font-size: 0.9rem;
    font-weight: 500;
}

.omni-generatory-wspolrzedne input[type="text"],
.omni-generatory-wspolrzedne input[type="number"] {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

.omni-generatory-wspolrzedne input[type="text"]:focus,
.omni-generatory-wspolrzedne input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 136, 61, 0.1);
}

.omni-generatory-wspolrzedne fieldset {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin: 0;
}

.omni-generatory-wspolrzedne fieldset legend {
    padding: 0 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
}

.omni-generatory-wspolrzedne .coord-row {
    display: flex;
    gap: 12px;
}

.omni-generatory-wspolrzedne .coord-col {
    flex: 1;
}

.omni-generatory-wspolrzedne .coord-btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0;
}


.omni-generatory-wspolrzedne .coord-btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Preview Area */
.omni-generatory-wspolrzedne .coord-preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background-color: #ededed;
    overflow-y: auto;
}

.omni-generatory-wspolrzedne .coord-preview-toolbar {
    width: min(100%, 210mm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
}

.omni-generatory-wspolrzedne .coord-preview-toolbar h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
    color: #1f2937;
}

.omni-generatory-wspolrzedne .coord-preview-toolbar p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.omni-generatory-wspolrzedne .coord-preview-toolbar .coord-btn-primary {
    width: auto;
    min-width: 128px;
    padding: 11px 16px;
}

.omni-generatory-wspolrzedne .coord-paper-scale-wrapper {
    position: relative;
}

.omni-generatory-wspolrzedne .coord-paper {
    background: white;
    width: 100%;
    max-width: 210mm;
    min-height: 297mm;
    padding: 30px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.omni-generatory-wspolrzedne .coord-paper h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: #000;
}

.omni-generatory-wspolrzedne .coord-instruction-text {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.omni-generatory-wspolrzedne .coord-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    align-items: center;
}

.omni-generatory-wspolrzedne .coord-grid-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.omni-generatory-wspolrzedne .coord-grid-container svg {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.omni-generatory-wspolrzedne .coord-answers-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 16px;
}

.omni-generatory-wspolrzedne .coord-answer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-family: var(--font-mono);
}

.omni-generatory-wspolrzedne .coord-answer-item .coord-point-label {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 25px;
}

.omni-generatory-wspolrzedne .coord-answer-item .coord-coords {
    flex: 1;
    border-bottom: 1px dashed #999;
    min-height: 1.5em;
}

.omni-generatory-wspolrzedne .coord-paper-footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.omni-generatory-wspolrzedne .coord-preview-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive >= 920px */
@media (min-width: 920px) {
    .omni-generatory-wspolrzedne .coord-app-container {
        flex-direction: row;
    }

    .omni-generatory-wspolrzedne .coord-settings-panel {
        width: 340px;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        height: 100vh;
        overflow-y: auto;
        position: sticky;
        top: 0;
    }

    .omni-generatory-wspolrzedne .coord-preview-area {
        height: 100vh;
    }

    .omni-generatory-wspolrzedne .coord-paper {
        margin-top: 20px;
        margin-bottom: 20px;
        transform-origin: top center;
    }
}

@media (max-width: 680px) {
    .omni-generatory-wspolrzedne .coord-preview-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .omni-generatory-wspolrzedne .coord-preview-toolbar .coord-btn-primary {
        width: 100%;
    }
}
