/* =========================================================
   EDIT CATEGORY PAGE
========================================================= */

.edit-category-page {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
}



/* =========================================================
   CATEGORY HEADER
========================================================= */

.edit-category-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 24px;
    margin-bottom: 20px;

    background: #ffffff;

    border: 1px solid #e4eadf;
    border-radius: 14px;

    box-shadow: 0 4px 18px rgba(36, 59, 42, 0.04);
}


.edit-category-hero-content {
    display: flex;
    align-items: center;

    gap: 15px;

    min-width: 0;
}


.edit-category-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf4e9;

    border-radius: 12px;

    color: #54764b;

    font-size: 19px;
}


.edit-category-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #6c8963;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.1px;

    text-transform: uppercase;
}


.edit-category-hero h2 {
    margin: 0;

    color: #243b2a;

    font-size: 22px;
    font-weight: 700;
}


.edit-category-hero p {
    margin: 4px 0 0;

    color: #899187;

    font-size: 11px;
}


.category-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 7px 11px;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}


.category-status.active {
    background: #eaf4e7;

    color: #47723d;
}


.category-status.active i {
    color: #5b984f;

    font-size: 7px;
}


.category-status.inactive {
    background: #f2f3f1;

    color: #777d74;
}


.category-status.inactive i {
    color: #9b9f98;

    font-size: 7px;
}



/* =========================================================
   MAIN CARD
========================================================= */

.edit-category-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4eadf;
    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(36, 59, 42, 0.035);
}


.edit-category-card-header {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 19px 22px;

    border-bottom: 1px solid #edf0eb;
}


.edit-category-card-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf4e9;

    border-radius: 9px;

    color: #54764b;

    font-size: 14px;
}


.edit-category-card-header h3 {
    margin: 0 0 3px;

    color: #293d2c;

    font-size: 15px;
    font-weight: 700;
}


.edit-category-card-header p {
    margin: 0;

    color: #899087;

    font-size: 11px;
}


.edit-category-card-body {
    padding: 24px;
}



/* =========================================================
   FORM
========================================================= */

.category-form-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(250px, .8fr);

    gap: 20px;
}


.category-form-group {
    margin-bottom: 20px;
}


.category-form-label {
    display: block;

    margin-bottom: 7px;

    color: #3d493a;

    font-size: 11px;
    font-weight: 700;
}


.category-form-input {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid #dfe6db;
    border-radius: 8px;

    background: #ffffff;

    color: #2d382c;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.category-form-input:focus {
    border-color: #7d9d73;

    box-shadow:
        0 0 0 3px rgba(101, 134, 91, .10);
}


.category-form-input::placeholder {
    color: #adb5aa;
}


.category-form-help {
    margin-top: 6px;

    color: #929a8e;

    font-size: 10px;

    line-height: 1.5;
}



/* =========================================================
   STATUS CONTROL
========================================================= */

.category-status-box {
    display: flex;
    align-items: center;

    gap: 13px;

    min-height: 70px;

    padding: 13px 14px;

    background: #f7f9f5;

    border: 1px solid #e7ece3;
    border-radius: 9px;

    cursor: pointer;
}


.category-status-checkbox {
    position: relative;

    width: 21px;
    height: 21px;

    flex-shrink: 0;
}


.category-status-checkbox input {
    position: absolute;

    width: 21px;
    height: 21px;

    opacity: 0;

    cursor: pointer;
}


.category-custom-checkbox {
    width: 21px;
    height: 21px;

    display: block;

    background: #ffffff;

    border: 1px solid #cbd5c6;
    border-radius: 5px;
}


.category-status-checkbox input:checked
+ .category-custom-checkbox {
    background: #4f7547;

    border-color: #4f7547;
}


.category-status-checkbox input:checked
+ .category-custom-checkbox::after {
    content: "\f00c";

    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;

    color: #ffffff;

    font-family: "Font Awesome 6 Free";

    font-size: 10px;
    font-weight: 900;
}


.category-status-content strong {
    display: block;

    color: #344431;

    font-size: 12px;
}


.category-status-content span {
    display: block;

    margin-top: 3px;

    color: #8b9388;

    font-size: 10px;

    line-height: 1.4;
}



/* =========================================================
   INFORMATION NOTE
========================================================= */

.category-info-note {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin-top: 5px;

    padding: 12px 13px;

    background: #f4f8f1;

    border-radius: 8px;

    color: #687362;

    font-size: 10px;

    line-height: 1.5;
}


.category-info-note i {
    margin-top: 2px;

    color: #77966c;
}



/* =========================================================
   ACTION BAR
========================================================= */

.category-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid #edf0eb;
}


.category-actions-info {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #81897d;

    font-size: 10px;
}


.category-actions-info i {
    color: #78946f;
}


.category-actions-buttons {
    display: flex;
    align-items: center;

    gap: 9px;
}


.category-cancel-button,
.category-save-button {
    height: 39px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 16px;

    border-radius: 7px;

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}


.category-cancel-button {
    background: #ffffff;

    border: 1px solid #dfe4dc;

    color: #667061;
}


.category-cancel-button:hover {
    background: #f7f8f6;
}


.category-save-button {
    background: #355b36;

    border: 1px solid #355b36;

    color: #ffffff;

    box-shadow: 0 3px 8px rgba(53, 91, 54, .18);

    transition: all .2s ease;
}


.category-save-button:hover {
    background: #2c4d2e;

    border-color: #2c4d2e;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {

    .edit-category-page {
        padding: 0 5px 30px;
    }


    .edit-category-hero {
        align-items: flex-start;

        flex-direction: column;

        padding: 18px;
    }


    .edit-category-hero-content {
        width: 100%;
    }


    .category-status {
        margin-left: 67px;
    }


    .category-form-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .edit-category-card-header {
        padding: 16px;
    }


    .edit-category-card-body {
        padding: 18px;
    }


    .category-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .category-actions-info {
        justify-content: center;
    }


    .category-actions-buttons {
        width: 100%;
    }


    .category-cancel-button,
    .category-save-button {
        flex: 1;
    }

}


@media (max-width: 480px) {

    .edit-category-hero h2 {
        font-size: 19px;
    }


    .edit-category-icon {
        width: 46px;
        height: 46px;
    }


    .category-status {
        margin-left: 0;
    }

}
