/* =========================================================
   ADMIN POSITION EDIT
   ========================================================= */

.position-edit-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
 
    box-sizing: border-box;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.position-edit-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 22px;

    color: #1769e0;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: all .2s ease;
}

.position-edit-back:hover {
    color: #0b4fb3;
    transform: translateX(-2px);
}


/* =========================================================
   HERO
   ========================================================= */

.position-edit-hero {
    position: relative;
    overflow: hidden;

    min-height: 190px;

    display: flex;
    align-items: center;

    padding: 38px 42px;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(38, 125, 255, .25),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #050914 0%,
            #071329 48%,
            #082c68 100%
        );

    box-shadow:
        0 18px 45px rgba(3, 20, 50, .18);

    box-sizing: border-box;
}

.position-edit-hero::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -90px;
    bottom: -150px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.08);
}

.position-edit-hero-content {
    position: relative;
    z-index: 2;
}


.position-edit-eyebrow {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;

    margin-bottom: 14px;

    border: 1px solid rgba(42, 137, 255, .5);
    border-radius: 8px;

    background: rgba(16, 98, 219, .14);

    color: #35a1ff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;
}


.position-edit-hero h1 {
    margin: 0 0 9px;

    color: #ffffff;

    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -.7px;
}


.position-edit-hero p {
    margin: 0;

    max-width: 700px;

    color: #b9cae5;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   ALERT
   ========================================================= */

.position-edit-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;

    margin: 20px 0;

    padding: 16px 19px;

    border-radius: 14px;

    font-size: 14px;
    line-height: 1.5;

    box-sizing: border-box;
}

.position-edit-alert p {
    margin: 0;
}

.position-edit-alert strong {
    font-weight: 750;
}


.position-edit-alert.error {
    border: 1px solid #fecaca;

    background: #fff5f5;

    color: #b42318;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.position-edit-card {
    margin-top: 24px;

    overflow: hidden;

    border: 1px solid #dce7f5;
    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    box-shadow:
        0 12px 35px rgba(15, 45, 85, .08);
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.position-edit-card-header {
    position: relative;

    padding: 29px 34px 26px;

    border-bottom: 1px solid #e4ecf7;

    background:
        linear-gradient(
            135deg,
            #f8fbff 0%,
            #edf5ff 100%
        );
}

.position-edit-card-header::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: linear-gradient(
        180deg,
        #1685ff,
        #0757c9
    );
}


.position-edit-section-label {
    display: block;

    margin-bottom: 8px;

    color: #3989df;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.6px;
}


.position-edit-card-header h2 {
    margin: 0 0 7px;

    color: #102a56;

    font-size: 23px;
    line-height: 1.25;

    font-weight: 800;
}


.position-edit-card-header p {
    margin: 0;

    color: #7185a3;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   FORM
   ========================================================= */

.position-edit-form {
    padding: 34px;
}


/* =========================================================
   FIELD
   ========================================================= */

.position-edit-field {
    margin-bottom: 25px;
}


.position-edit-field label {
    display: block;

    margin-bottom: 9px;

    color: #18355f;

    font-size: 14px;
    font-weight: 750;
}


.position-edit-field input,
.position-edit-field textarea,
.position-edit-field select {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #d4e0ef;
    border-radius: 12px;

    background: #ffffff;

    color: #172b4d;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.position-edit-field input,
.position-edit-field select {
    min-height: 48px;

    padding: 0 15px;
}


.position-edit-field textarea {
    min-height: 145px;

    padding: 14px 15px;

    resize: vertical;

    line-height: 1.6;
}


.position-edit-field input::placeholder,
.position-edit-field textarea::placeholder {
    color: #9aabc1;
}


.position-edit-field input:hover,
.position-edit-field textarea:hover,
.position-edit-field select:hover {
    border-color: #b6cbe4;
}


.position-edit-field input:focus,
.position-edit-field textarea:focus,
.position-edit-field select:focus {
    border-color: #2584e8;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(37, 132, 232, .10);
}


.position-edit-field small {
    display: block;

    margin-top: 8px;

    color: #8294ad;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   SELECT
   ========================================================= */

.position-edit-field select {
    cursor: pointer;

    appearance: auto;
}


/* =========================================================
   ACTION
   ========================================================= */

.position-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    margin-top: 34px;
    padding-top: 25px;

    border-top: 1px solid #e3ebf5;
}


/* =========================================================
   CANCEL
   ========================================================= */

.position-edit-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 21px;

    box-sizing: border-box;

    border: 1px solid #d5e0ed;
    border-radius: 11px;

    background: #ffffff;

    color: #526985;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: all .2s ease;
}


.position-edit-cancel:hover {
    border-color: #b7c9dd;

    background: #f5f8fc;

    color: #17365f;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.position-edit-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 23px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #1685ff 0%,
            #075bd1 100%
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;
    font-weight: 750;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(15, 101, 215, .22);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


.position-edit-submit:hover {
    transform: translateY(-1px);

    filter: brightness(1.05);

    box-shadow:
        0 11px 23px rgba(15, 101, 215, .28);
}


.position-edit-submit:active {
    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .position-edit-page {
        padding: 20px 16px 40px;
    }


    .position-edit-hero {
        min-height: auto;

        padding: 30px 25px;

        border-radius: 18px;
    }


    .position-edit-hero h1 {
        font-size: 29px;
    }


    .position-edit-hero p {
        font-size: 13px;
    }


    .position-edit-card {
        border-radius: 17px;
    }


    .position-edit-card-header {
        padding: 24px 22px;
    }


    .position-edit-form {
        padding: 24px 20px;
    }


    .position-edit-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }


    .position-edit-cancel,
    .position-edit-submit {
        width: 100%;
    }

}


/* =========================================================
   DARK MODE OVERRIDES - EDIT POSISI
   ========================================================= */

html.theme-dark .position-edit-page {
    color: #cbd5e1;
}

html.theme-dark .position-edit-back {
    color: #60a5fa !important;
}

html.theme-dark .position-edit-back:hover {
    color: #93c5fd !important;
}

html.theme-dark .position-edit-hero {
    background: linear-gradient(135deg, #070d19 0%, #0d1b38 52%, #13234e 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .position-edit-hero h1 {
    color: #ffffff !important;
}

html.theme-dark .position-edit-hero p {
    color: #94a3b8 !important;
}

html.theme-dark .position-edit-eyebrow {
    background: rgba(37, 99, 235, 0.25) !important;
    border: 1px solid rgba(96, 165, 250, 0.35) !important;
    color: #60a5fa !important;
    display: inline-flex !important;
    width: fit-content !important;
}

/* Form Card Container */
html.theme-dark .position-edit-card {
    background: #0d172e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3) !important;
}

html.theme-dark .position-edit-card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .position-edit-section-label {
    color: #60a5fa !important;
}

html.theme-dark .position-edit-card-header h2 {
    color: #f8fafc !important;
}

html.theme-dark .position-edit-card-header p {
    color: #94a3b8 !important;
}

/* Fields & Inputs */
html.theme-dark .position-edit-field label {
    color: #cbd5e1 !important;
}

html.theme-dark .position-edit-field input,
html.theme-dark .position-edit-field textarea,
html.theme-dark .position-edit-field select {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

html.theme-dark .position-edit-field input:focus,
html.theme-dark .position-edit-field textarea:focus,
html.theme-dark .position-edit-field select:focus {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

html.theme-dark .position-edit-field select option {
    background: #1e293b !important;
    color: #f8fafc !important;
}

html.theme-dark .position-edit-field small {
    color: #64748b !important;
}

/* Actions */
html.theme-dark .position-edit-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.theme-dark .position-edit-cancel {
    background: #172033 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
}

html.theme-dark .position-edit-cancel:hover {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

html.theme-dark .position-edit-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

html.theme-dark .position-edit-submit:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
    color: #ffffff !important;
}