
/* Container Context Bounding Wrapper */
.container {
    position: relative;
    box-sizing: border-box;
}

.ui-panel {
    /* Sits beside the editor in normal flow (see the flex row wrapping #left-panel and
       #center-area) rather than floating fixed over the page. */
    background: rgba(255, 255, 255, 0.98);
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

#left-panel {
    width: 320px;
    flex-shrink: 0;
}

/* FIXED: Prevent variable margins or padding expansion parameters from skewing vector tracks */
#designer-svg {
    min-height: auto;
    margin-top: 0;
}

#designer-container {
    box-sizing: border-box;
}

h2 {
    margin: 0 0 15px 0;
    font-size: 20px !important;
    color: #1e293b;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 0.75rem;
    color: #475569;
    margin-bottom: 6px;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: #0ea5e9;
}

/* Per-pin constraint note shown below a pin position slider when its range
   is capped by row-length or adjacent-pin constraints */
.pin-constraint-note {
    display: block;
    margin-top: 5px;
    padding: 6px 8px;
    border-radius: 5px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #92400e;
    font-size: 0.67rem;
    line-height: 1.55;
    animation: sliderWarnFadeIn 0.2s ease both;
}
.pin-constraint-note .swf-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    color: #c2410c;
    margin-bottom: 4px;
}
.pin-constraint-note .swf-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    padding: 1px 0;
    border-bottom: 1px dashed #fcd9a0;
}
.pin-constraint-note .swf-row:last-child { border-bottom: none; }
.pin-constraint-note .swf-label   { color: #78350f; font-weight: 600; flex: 1; }
.pin-constraint-note .swf-formula { font-family: monospace; color: #92400e; white-space: nowrap; }
.pin-constraint-note .swf-result  { font-family: monospace; font-weight: 800; color: #c2410c; white-space: nowrap; }

@keyframes sliderWarnFadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

.val {
    font-weight: 800;
    color: #0ea5e9;
    float: right;
    font-family: monospace;
}

.dist-info {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 4px;
    background: #f8fafc;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-family: monospace;
}

.badge {
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    display: inline-block;
    margin-top: 8px;
}

.small-k {
    background: #e0f2fe;
    color: #0284c7;
}

.large-k {
    background: #ffedd5;
    color: #c2410c;
}

.footer-note {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 15px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    text-align: center;
    line-height: 1.4;
}

/* Save Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

    .modal-overlay.open {
        display: flex;
    }

.modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

    .modal-box h3 {
        margin: 0 0 18px;
        font-size: 1rem;
        color: #1e293b;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .modal-box input[type="text"] {
        width: 100%;
        padding: 9px 12px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 0.9rem;
        margin-bottom: 14px;
        outline: none;
    }

        .modal-box input[type="text"]:focus {
            border-color: #0ea5e9;
        }

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
}

.btn-primary {
    background: #0ea5e9;
    color: #fff;
}

    .btn-primary:hover {
        background: #0284c7;
    }

.btn-success {
    background: #10b981;
    color: #fff;
}

    .btn-success:hover {
        background: #059669;
    }

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

    .btn-secondary:hover {
        background: #cbd5e1;
    }

/* Active state for Auto Wire / Manual / Reset toggle */
.btn-wire-active {
    background: #0ea5e9 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px #0284c7;
}

    .btn-wire-active:hover {
        background: #0284c7 !important;
    }

.save-status {
    font-size: 16px;
    margin-top: 10px;
    min-height: 18px;
    color: #059669;
    margin-bottom:10px
}

.error 
{
    color:red !important;
}

.svg-dist-input::-webkit-inner-spin-button,
.svg-dist-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.svg-dist-input {
    margin: 0 !important;
    -moz-appearance: textfield;
}

/* Pitch label hit-area: highlight on hover to signal it's editable */
.pitch-hit-area {
    cursor: text;
    fill: transparent;
    rx: 4px;
    transition: fill 0.15s ease;
}

    .pitch-hit-area:hover {
        fill: rgba(59, 130, 246, 0.12); /* soft blue pill */
        rx: 4px;
    }

/*LOGIN / FORPASSWORD STYLES*/
/* Form row layout */
#loginForm {
    max-width: 450px;
    margin: 60px auto; /* centers horizontally */
    padding: 20px;
    text-align: left;
}

#loginForm .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Label styling */
#loginForm label {
    width: 30%;
    text-align: right;
    font-weight: 600;
    color: #333;
    padding-right: 10px;
    font-size: 14px;
}

/* Input container */
#loginForm .col-sm-9 {
    width: 70%;
    position: relative;
}

/* Input field style */
#loginForm input[type="email"],
#loginForm input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 2px solid #aaa;
    outline: none;
    background-color: transparent;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

    /* Focus effect */
    #loginForm input[type="email"]:focus,
    #loginForm input[type="password"]:focus {
        border-bottom-color: #0078d7; /* blue highlight */
    }

/* Password eye icon */
#loginForm .passwordtoggle {
    position: absolute;
    z-index: 2;
    right: 10px;
    top: 8px;
    cursor: pointer;
    color: #777;
    font-size: 16px;
}

/* Center alignment for error messages */
#loginForm .text-danger {
    text-align: center;
    font-size: 13px;
    color: #d9534f;
}

/* Buttons */
#loginForm .button {
    min-width: 100px;
    margin: 0 5px;
    cursor: pointer;
}

/* Forgot Password link */
#forgotPasswordLink {
    font-size: 14px;
    color: #0078d7;
    text-decoration: none;
}

#forgotPasswordLink:hover {
    text-decoration: underline;
}

#forgotPasswordForm {
    max-width: 500px;
    padding: 0 25px;
    text-align: left;
}

    /* Info alert styling */
    #forgotPasswordForm .alert {
        background-color: #e9f4ff;
        border: 1px solid #bcdffb;
        color: #004085;
        padding: 12px 15px;
        border-radius: 6px;
        font-size: 14px;
        line-height: 1.5;
    }

    /* Flex layout for email field row */
    #forgotPasswordForm .form-group {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        margin-top: 28px;
    }

    /* Label styling */
    #forgotPasswordForm label {
        font-weight: 600;
        font-size: 14px;
        color: #333;
        margin-right: 10px;
        white-space: nowrap;
        text-align: right;
        margin-bottom: 1px !important;
    }


    /* Validation message */
    #forgotPasswordForm .text-danger {
        text-align: center;
        font-size: 13px;
        color: #d9534f;
        margin-top: 8px;
    }

    /* Buttons */
    #forgotPasswordForm .button,
    #forgotPasswordForm .ok-btn {
        min-width: 100px;
        margin: 0 6px;
        cursor: pointer;
    }

    /* "SEND" button style to match Igloo dark theme */
    #forgotPasswordForm .ok-btn {
        background-color: #333;
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

        #forgotPasswordForm .ok-btn:hover {
            background-color: #000;
        }

/* Optional wrapper to vertically center the form */
.forgot-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}


.input-underline {
    border: none !important;
    border-bottom: 2px solid #000 !important;
    border-radius: 0 !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 15px;
    padding: 5px !important;
    width: 100%;
}