/* Shared styles for the mcx-drawing v2 demo pages */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 900px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.container.wide {
    max-width: 1400px;
}

.demo-map {
    height: 500px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
}

.hint {
    font-size: 13px;
    color: #5f6368;
    margin: 0 0 16px;
}

.modeline {
    font-size: 13px;
    color: #3c4043;
    margin: 0 0 16px;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 2px 8px;
    border-radius: 10px;
}

.badge.mode-advanced {
    color: #188038;
    background: #e6f4ea;
}

/* Properties panel */
.props {
    display: none;
    border: 1px solid #d2d5d9;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #fafbfc;
}

    .props h3 {
        margin: 0 0 12px;
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .field label {
        font-size: 12px;
        color: #5f6368;
    }

    .field input[type="number"] {
        width: 130px;
        padding: 7px 9px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .field input:focus {
        outline: none;
        border-color: #1a73e8;
        box-shadow: 0 0 0 2px rgba(26,115,232,0.15);
    }

.readouts {
    margin-top: 12px;
    font-size: 13px;
    color: #3c4043;
    line-height: 1.6;
}

    .readouts code {
        color: #1a73e8;
    }

.btn {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
}

    .btn:hover {
        background: #f5f5f5;
    }

.btn-danger {
    color: #c5221f;
    border-color: #f1c4c2;
}

    .btn-danger:hover {
        background: #fce8e6;
    }

textarea.output {
    width: 100%;
    height: 150px;
    font-family: monospace;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f1f3f4;
    resize: vertical;
}

/* Two-column layout for the combined demo (stacks on narrow screens) */
.demo-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
}

    .demo-columns .container {
        flex: 1 1 560px;
        margin-bottom: 0;
    }
