/* =====================================================
   ADMIN GLOBAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "DM Sans", sans-serif;
    color: #1f2933;
    background: #f5f6f8;
}


a {
    text-decoration: none;
}


/* =====================================================
   LOGIN PAGE
===================================================== */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.70),
            rgba(0, 0, 0, 0.70)
        ),
        url("../assets/GEDUNG.jpeg");

    background-size: cover;
    background-position: center;

    padding: 30px;
}


/* =====================================================
   LOGIN CONTAINER
===================================================== */

.login-container {
    width: 100%;
    max-width: 440px;
}


.login-card {
    background: #ffffff;

    padding: 45px 42px;

    border-radius: 8px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25);
}


/* =====================================================
   LOGO
===================================================== */

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}


.login-logo img {
    width: 190px;
    max-width: 100%;
    height: auto;
}


/* =====================================================
   HEADING
===================================================== */

.login-heading {
    text-align: center;
    margin-bottom: 28px;
}


.login-heading span {
    display: block;

    margin-bottom: 8px;

    color: #888;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}


.login-heading h1 {
    margin-bottom: 8px;

    color: #111827;

    font-size: 30px;
    font-weight: 600;

    line-height: 1.2;
}


.login-heading p {
    color: #8a929d;

    font-size: 13px;

    line-height: 1.6;
}


/* =====================================================
   ERROR
===================================================== */

.login-error {
    margin-bottom: 20px;

    padding: 12px 14px;

    border: 1px solid #f0caca;
    border-radius: 5px;

    background: #fff5f5;

    color: #c0392b;

    font-size: 12px;
}


/* =====================================================
   FORM
===================================================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.form-group label {
    color: #333;

    font-size: 12px;
    font-weight: 600;
}


.form-group input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #e1e4e8;
    border-radius: 4px;

    outline: none;

    background: #fff;

    color: #222;

    font-family: inherit;
    font-size: 13px;

    transition: 0.25s ease;
}


.form-group input:focus {
    border-color: #111;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.05);
}


.form-group input::placeholder {
    color: #aaa;
}


/* =====================================================
   LOGIN BUTTON
===================================================== */

.login-button {
    width: 100%;
    height: 48px;

    margin-top: 5px;

    border: none;
    border-radius: 4px;

    background: #111;
    color: #fff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}


.login-button:hover {
    background: #333;
}


/* =====================================================
   BACK HOME
===================================================== */

.back-home {
    display: block;

    margin-top: 25px;

    color: #777;

    text-align: center;

    font-size: 12px;

    transition: 0.25s ease;
}


.back-home:hover {
    color: #111;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 500px) {

    .login-page {
        padding: 20px;
    }

    .login-card {
        padding: 35px 25px;
    }

    .login-heading h1 {
        font-size: 26px;
    }

}

/* =====================================================
   ADMIN DASHBOARD
===================================================== */

body.admin-page {
    min-height: 100vh;
    background: #f5f6f8;
}


/* =====================================================
   SIDEBAR
===================================================== */

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 250px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-right: 1px solid #e8eaed;

    z-index: 100;
}


/* =====================================================
   ADMIN BRAND
===================================================== */

.admin-brand {
    height: 100px;

    display: flex;
    align-items: center;

    padding: 0 55px;

    border-bottom: 1px solid #f0f1f3;
}


.admin-brand img {
    width: 125px;
    height: auto;
}


/* =====================================================
   MENU
===================================================== */

.admin-menu {
    padding: 28px 15px;
}


.menu-title {
    padding: 0 15px;
    margin-bottom: 10px;

    color: #a0a5ac;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
}


.menu-title-space {
    margin-top: 30px;
}


.admin-menu-item {
    position: relative;

    height: 46px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 15px;

    margin-bottom: 4px;

    border-radius: 5px;

    color: #737981;

    font-size: 12px;
    font-weight: 500;

    transition: 0.25s ease;
}


.admin-menu-item:hover {
    background: #f5f5f5;
    color: #111;
}


.admin-menu-item.active {
    background: #111;
    color: #ffffff;
}


.menu-icon {
    width: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
}


/* =====================================================
   SIDEBAR BOTTOM
===================================================== */

.sidebar-bottom {
    margin-top: auto;

    padding: 20px 15px;

    border-top: 1px solid #f0f1f3;
}


.sidebar-website,
.sidebar-logout {
    height: 42px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 15px;

    color: #777;

    font-size: 12px;

    border-radius: 5px;

    transition: 0.25s ease;
}


.sidebar-website:hover {
    background: #f5f5f5;
    color: #111;
}


.sidebar-logout:hover {
    background: #fff3f3;
    color: #c0392b;
}


/* =====================================================
   MAIN AREA
===================================================== */

.admin-main {
    min-height: 100vh;

    margin-left: 250px;
}


/* =====================================================
   TOPBAR
===================================================== */

.admin-topbar {
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    background: #ffffff;

    border-bottom: 1px solid #e8eaed;
}


.topbar-page-title {
    color: #111827;

    font-size: 25px;
    font-weight: 600;
}


.topbar-right {
    display: flex;
    align-items: center;

    gap: 25px;
}


.topbar-notification {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5e7eb;
    border-radius: 50%;

    font-size: 13px;
}


.admin-profile {
    display: flex;
    align-items: center;

    gap: 10px;
}


.admin-avatar {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #111;
    color: #fff;

    font-size: 12px;
    font-weight: 600;
}


.admin-profile-info {
    display: flex;
    flex-direction: column;

    line-height: 1.3;
}


.admin-profile-info strong {
    color: #333;

    font-size: 15px;
    font-weight: 600;
}


.admin-profile-info span {
    margin-top: 2px;

    color: #999;

    font-size: 10px;
}


/* =====================================================
   CONTENT
===================================================== */

.admin-content {
    width: min(1400px, 94%);

    margin: 0 auto;

    padding: 40px 0 60px;
}


/* =====================================================
   WELCOME
===================================================== */

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 35px;
}


.dashboard-label,
.section-label-admin {
    display: block;

    margin-bottom: 8px;

    color: #999;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.8px;
}


.dashboard-welcome h1 {
    margin-bottom: 8px;

    color: #111827;

    font-size: 30px;
    font-weight: 600;

    letter-spacing: -0.8px;
}


.dashboard-welcome p {
    color: #8b929b;

    font-size: 13px;
}


.dashboard-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 20px;

    border-radius: 4px;

    background: #111;
    color: #fff;

    font-size: 11px;
    font-weight: 600;

    transition: 0.25s ease;
}


.dashboard-primary-button:hover {
    background: #333;
}


/* =====================================================
   STATISTICS
===================================================== */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 42px;
}


.stat-card {
    min-height: 185px;

    padding: 23px;

    background: #ffffff;

    border: 1px solid #e7e9ec;
    border-radius: 6px;

    transition: 0.25s ease;
}


.stat-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05);
}


.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}


.stat-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: #f1f2f4;

    color: #222;

    font-size: 17px;
}


.stat-status {
    color: #aaa;

    font-size: 9px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.stat-number {
    color: #111827;

    font-size: 32px;
    font-weight: 600;

    line-height: 1;
}


.stat-title {
    margin-top: 8px;

    color: #4b5563;

    font-size: 12px;
    font-weight: 600;
}


.stat-description {
    margin-top: 5px;

    color: #a0a6ad;

    font-size: 10px;
}


/* =====================================================
   DASHBOARD SECTION
===================================================== */

.dashboard-section {
    margin-bottom: 35px;
}


.dashboard-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 20px;
}


.dashboard-section-header h2 {
    color: #111827;

    font-size: 22px;
    font-weight: 600;

    line-height: 1.2;
}


.view-catalogue-link {
    color: #555;

    font-size: 11px;
    font-weight: 600;

    transition: 0.25s ease;
}


.view-catalogue-link:hover {
    color: #111;
}


/* =====================================================
   RECENT PRODUCTS
===================================================== */

.recent-products-card {
    background: #ffffff;

    border: 1px solid #e7e9ec;
    border-radius: 6px;

    overflow: hidden;
}


.table-wrapper {
    width: 100%;
    overflow-x: auto;
}


.admin-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 750px;
}


.admin-table th {
    height: 48px;

    padding: 0 20px;

    border-bottom: 1px solid #e8eaed;

    color: #999;

    text-align: left;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.8px;
}


.admin-table td {
    height: 70px;

    padding: 0 20px;

    border-bottom: 1px solid #f0f1f3;

    color: #707780;

    font-size: 11px;
}


.admin-table tbody tr:last-child td {
    border-bottom: none;
}


.admin-table tbody tr:hover {
    background: #fafafa;
}


/* =====================================================
   TABLE PRODUCT
===================================================== */

.table-product {
    display: flex;
    align-items: center;

    gap: 12px;
}


.table-product-image {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 4px;

    background: #f0f1f3;

    color: #777;

    font-size: 12px;
    font-weight: 600;
}


.table-product > div:last-child {
    display: flex;
    flex-direction: column;
}


.table-product strong {
    max-width: 230px;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    color: #333;

    font-size: 11px;
    font-weight: 600;
}


.table-product span {
    margin-top: 3px;

    color: #aaa;

    font-size: 9px;
}


/* =====================================================
   STATUS
===================================================== */

.status-badge {
    display: inline-flex;
    align-items: center;

    min-height: 23px;

    padding: 0 10px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 600;
}


.status-badge.active {
    background: #edf8f1;
    color: #2e7d4f;
}


.status-badge.inactive {
    background: #f5f5f5;
    color: #888;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.admin-empty {
    padding: 70px 30px;

    text-align: center;
}


.admin-empty-icon {
    margin-bottom: 15px;

    font-size: 35px;
}


.admin-empty h3 {
    margin-bottom: 5px;

    color: #333;

    font-size: 16px;
}


.admin-empty p {
    margin-bottom: 20px;

    color: #999;

    font-size: 12px;
}


/* =====================================================
   QUICK ACTIONS
===================================================== */

.quick-actions {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


.quick-action-card {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 23px;

    background: #ffffff;

    border: 1px solid #e7e9ec;
    border-radius: 6px;
}


.quick-action-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 5px;

    background: #f1f2f4;

    color: #222;

    font-size: 20px;
}


.quick-action-card > div:nth-child(2) {
    flex: 1;
}


.quick-action-card h3 {
    margin-bottom: 3px;

    color: #333;

    font-size: 12px;
    font-weight: 600;
}


.quick-action-card p {
    color: #999;

    font-size: 10px;
    line-height: 1.5;
}


.quick-action-button {
    color: #333;

    font-size: 10px;
    font-weight: 600;

    white-space: nowrap;

    transition: 0.25s ease;
}


.quick-action-button:hover {
    color: #000;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .admin-sidebar {
        width: 220px;
    }

    .admin-main {
        margin-left: 220px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 800px) {

    .admin-sidebar {
        position: static;

        width: 100%;
        height: auto;
    }


    .admin-brand {
        height: 75px;

        justify-content: center;
    }


    .admin-menu {
        display: flex;

        padding: 10px;

        overflow-x: auto;
    }


    .menu-title,
    .menu-title-space {
        display: none;
    }


    .admin-menu-item {
        flex-shrink: 0;

        margin: 0 3px;
    }


    .sidebar-bottom {
        display: flex;

        padding: 10px;

        border-top: 1px solid #eee;
    }


    .sidebar-website,
    .sidebar-logout {
        flex: 1;
    }


    .admin-main {
        margin-left: 0;
    }


    .admin-topbar {
        padding: 0 20px;
    }


    .admin-content {
        width: 92%;
    }


    .dashboard-welcome {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }


    .quick-actions {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 550px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }


    .admin-profile-info {
        display: none;
    }


    .dashboard-welcome h1 {
        font-size: 25px;
    }


    .admin-topbar {
        height: 65px;
    }


    .admin-content {
        padding-top: 30px;
    }

}

/* =====================================================
   CATALOGUE MANAGEMENT
===================================================== */

.catalogue-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 30px;
}


.catalogue-page-header h1 {
    margin-bottom: 7px;

    color: #111827;

    font-size: 30px;
    font-weight: 600;

    letter-spacing: -0.8px;
}


.catalogue-page-header p {
    color: #8b929b;

    font-size: 13px;
}


/* =====================================================
   ALERT
===================================================== */

.admin-alert {
    margin-bottom: 20px;

    padding: 13px 16px;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 500;
}


.admin-alert.success {
    background: #edf8f1;

    border: 1px solid #d6eddf;

    color: #2e7d4f;
}


/* =====================================================
   TOOLBAR
===================================================== */

.catalogue-toolbar {
    margin-bottom: 20px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e7e9ec;
    border-radius: 6px;
}


.catalogue-filter-form {
    display: flex;
    align-items: center;

    gap: 10px;
}


/* SEARCH */

.catalogue-search {
    height: 42px;

    flex: 1;

    min-width: 220px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 13px;

    border: 1px solid #e2e5e8;
    border-radius: 4px;

    background: #fafafa;
}


.catalogue-search span {
    color: #999;

    font-size: 17px;
}


.catalogue-search input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: #333;

    font-family: inherit;
    font-size: 12px;
}


.catalogue-search input::placeholder {
    color: #aaa;
}


/* SELECT */

.catalogue-select {
    height: 42px;

    width: 170px;

    border: 1px solid #e2e5e8;
    border-radius: 4px;

    background: #fafafa;

    overflow: hidden;
}


.catalogue-select select {
    width: 100%;
    height: 100%;

    padding: 0 12px;

    border: none;
    outline: none;

    background: transparent;

    color: #666;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;
}


/* FILTER BUTTON */

.filter-button {
    height: 42px;

    padding: 0 19px;

    border: none;
    border-radius: 4px;

    background: #111;
    color: #fff;

    font-family: inherit;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}


.filter-button:hover {
    background: #333;
}


/* RESET */

.reset-filter {
    color: #888;

    font-size: 11px;
    font-weight: 500;

    white-space: nowrap;

    transition: 0.25s ease;
}


.reset-filter:hover {
    color: #111;
}


/* =====================================================
   TABLE CARD
===================================================== */

.catalogue-table-card {
    background: #ffffff;

    border: 1px solid #e7e9ec;
    border-radius: 6px;

    overflow: hidden;
}


.catalogue-table-header {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    border-bottom: 1px solid #e8eaed;
}


.catalogue-table-header h2 {
    margin-bottom: 3px;

    color: #222;

    font-size: 16px;
    font-weight: 600;
}


.catalogue-table-header span {
    color: #999;

    font-size: 10px;
}


/* =====================================================
   CATALOGUE TABLE
===================================================== */

.catalogue-table th {
    height: 48px;
}


.catalogue-table td {
    height: 76px;
}


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.catalogue-table .table-product-image {
    overflow: hidden;

    background: #f1f2f4;
}


.catalogue-table .table-product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =====================================================
   PRICE
===================================================== */

.price-contact {
    color: #999;

    font-size: 10px;
}


/* =====================================================
   ACTION BUTTONS
===================================================== */

.table-actions {
    display: flex;
    align-items: center;

    gap: 6px;
}


.action-button {
    height: 29px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 10px;

    border-radius: 3px;

    font-family: inherit;

    font-size: 9px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}


.action-button.edit {
    border: 1px solid #e0e2e5;

    background: #fff;

    color: #444;
}


.action-button.edit:hover {
    background: #111;

    border-color: #111;

    color: #fff;
}


.action-button.delete {
    border: 1px solid #f0d4d4;

    background: #fff7f7;

    color: #c0392b;
}


.action-button.delete:hover {
    background: #c0392b;

    border-color: #c0392b;

    color: #fff;
}

.action-button.sub-products {
    background: #f5f5f7;
    color: #191970;
    border: 1px solid #e1e1e5;
}

.action-button.sub-products:hover {
    background: #191970;
    color: #fff;
    border-color: #191970;
}

.delete-form {
    margin: 0;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 950px) {

    .catalogue-filter-form {
        flex-wrap: wrap;
    }


    .catalogue-search {
        flex-basis: 100%;
    }


    .catalogue-select {
        flex: 1;
    }

}


@media (max-width: 650px) {

    .catalogue-page-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }


    .catalogue-filter-form {
        flex-direction: column;

        align-items: stretch;
    }


    .catalogue-search,
    .catalogue-select,
    .filter-button {
        width: 100%;

        flex-basis: auto;
    }


    .reset-filter {
        text-align: center;
    }

}

/* =====================================================
   PRODUCT FORM
===================================================== */

.product-form-card {
    background: #ffffff;
    border: 1px solid #e7e9ec;
    border-radius: 6px;
    overflow: hidden;
}


.product-form {
    width: 100%;
}


/* =====================================================
   FORM SECTION
===================================================== */

.form-section {
    padding: 28px 30px;

    border-bottom: 1px solid #e8eaed;
}


.form-section-heading {
    margin-bottom: 25px;
}


.form-section-heading h2 {
    margin-bottom: 5px;

    color: #222;

    font-size: 16px;
    font-weight: 600;
}


.form-section-heading p {
    color: #999;

    font-size: 11px;
}


/* =====================================================
   FORM GRID
===================================================== */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.full-width {
    grid-column: 1 / -1;
}


/* =====================================================
   FORM GROUP
===================================================== */

.form-group {
    display: flex;
    flex-direction: column;
}


.form-group label {
    margin-bottom: 8px;

    color: #333;

    font-size: 11px;
    font-weight: 600;
}


.form-group label span {
    color: #c0392b;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #e0e3e6;
    border-radius: 4px;

    background: #fff;

    color: #333;

    font-family: inherit;
    font-size: 12px;

    outline: none;

    transition: 0.25s ease;
}


.form-group input,
.form-group select {
    height: 44px;

    padding: 0 13px;
}


.form-group textarea {
    padding: 12px 13px;

    resize: vertical;

    line-height: 1.6;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #999;

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.03);
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b1b5ba;
}


.form-group small {
    margin-top: 7px;

    color: #a0a4a9;

    font-size: 9px;
    line-height: 1.5;
}


/* =====================================================
   PRICE INPUT
===================================================== */

.price-input {
    display: flex;

    height: 44px;

    border: 1px solid #e0e3e6;
    border-radius: 4px;

    overflow: hidden;

    background: #fff;
}


.price-input span {
    width: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-right: 1px solid #e5e7e9;

    background: #f8f9fa;

    color: #777;

    font-size: 11px;
    font-weight: 600;
}


.price-input input {
    height: 100%;

    flex: 1;

    border: none !important;

    box-shadow: none !important;

    padding: 0 13px;
}


/* =====================================================
   IMAGE UPLOAD
===================================================== */

.image-upload-area {
    min-height: 190px;

    display: flex;
    align-items: center;

    gap: 25px;

    padding: 22px;

    border: 1px dashed #d5d8dc;
    border-radius: 5px;

    background: #fafbfc;
}


.current-product-image {
    width: 190px;
    height: 140px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 5px;

    background: #eee;
}


.current-product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.image-upload-content {
    flex: 1;

    text-align: center;
}


.upload-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    border-radius: 50%;

    background: #f0f1f3;

    color: #555;

    font-size: 17px;
}


.image-upload-content h3 {
    margin-bottom: 5px;

    color: #333;

    font-size: 12px;
    font-weight: 600;
}


.image-upload-content p {
    margin-bottom: 14px;

    color: #999;

    font-size: 10px;
}


.upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 0 15px;

    border-radius: 4px;

    background: #111;
    color: #fff;

    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}


.upload-button:hover {
    background: #333;
}


.selected-file {
    margin-top: 9px;

    color: #666;

    font-size: 10px;
}


/* =====================================================
   FORM ACTIONS
===================================================== */

.product-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding: 20px 30px;

    background: #fafbfc;
}


.form-cancel-button,
.form-save-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border-radius: 4px;

    font-family: inherit;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}


.form-cancel-button {
    border: 1px solid #dfe2e5;

    background: #fff;

    color: #555;
}


.form-cancel-button:hover {
    background: #f2f3f4;
}


.form-save-button {
    border: 1px solid #111;

    background: #111;

    color: #fff;
}


.form-save-button:hover {
    background: #333;

    border-color: #333;
}


/* =====================================================
   ERROR ALERT
===================================================== */

.admin-alert.error {
    background: #fff5f5;

    border: 1px solid #f0d4d4;

    color: #b5362c;
}


/* =====================================================
   RESPONSIVE PRODUCT FORM
===================================================== */

@media (max-width: 750px) {

    .form-grid {
        grid-template-columns: 1fr;
    }


    .full-width {
        grid-column: auto;
    }


    .image-upload-area {
        flex-direction: column;

        text-align: center;
    }


    .current-product-image {
        width: 100%;
        max-width: 300px;
        height: 180px;
    }


    .product-form-actions {
        padding: 18px 20px;
    }

}


@media (max-width: 500px) {

    .form-section {
        padding: 22px 18px;
    }


    .product-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }


    .form-cancel-button,
    .form-save-button {
        width: 100%;
    }

}

/* =====================================================
   CATEGORY MANAGEMENT
===================================================== */

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.admin-stat-card {
    min-height: 100px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 20px;

    background: #fff;

    border: 1px solid #e7e9ec;
    border-radius: 6px;
}

.stat-card-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    background: #f2f3f4;

    color: #333;

    font-size: 18px;
}

.admin-stat-card span {
    display: block;

    margin-bottom: 4px;

    color: #999;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: .8px;
}

.admin-stat-card strong {
    color: #222;

    font-size: 22px;
    font-weight: 600;
}


/* =====================================================
   CATEGORY NAME
===================================================== */

.category-name {
    display: flex;
    align-items: center;

    gap: 10px;
}

.category-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 4px;

    background: #f2f3f4;

    color: #555;

    font-size: 13px;
}

.category-name strong {
    color: #333;

    font-size: 12px;
    font-weight: 600;
}

.category-description {
    display: block;

    max-width: 280px;

    color: #888;

    font-size: 10px;
    line-height: 1.5;
}

.product-count {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 3px;

    background: #f3f4f5;

    color: #555;

    font-size: 9px;
    font-weight: 600;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 700px) {

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   LOCATION FORM
===================================================== */

.product-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 28px;
}


/* =====================================================
   FORM SECTION
===================================================== */

.product-form-card .form-section {
    padding: 30px;
}


.product-form-card .form-section-header {
    margin-bottom: 28px;
}


.product-form-card .form-section-header > div {
    max-width: 760px;
}


/* Small section label */

.product-form-card .section-label-admin {
    display: block;
    margin-bottom: 9px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: #8a99ad;
}


/* Section title */

.product-form-card .form-section-header h2 {
    margin: 0 0 8px;

    font-size: 24px;
    line-height: 1.25;

    font-weight: 600;

    color: #111827;
}


/* Section description */

.product-form-card .form-section-header p {
    margin: 0;

    font-size: 13px;
    line-height: 1.6;

    color: #7c8da3;
}


/* =====================================================
   FORM GRID
===================================================== */

.product-form-card .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}


/* =====================================================
   FORM GROUP
===================================================== */

.product-form-card .form-group {
    display: flex;
    flex-direction: column;
}


.product-form-card .form-group label {
    display: block;

    margin-bottom: 9px;

    font-size: 13px;
    font-weight: 600;

    color: #172033;
}


.product-form-card .form-group .required {
    color: #111827;
    margin-left: 2px;
}


/* =====================================================
   INPUT
===================================================== */

.product-form-card .form-group input,
.product-form-card .form-group textarea,
.product-form-card .form-group select {
    width: 100%;
    box-sizing: border-box;

    min-height: 46px;

    padding: 0 14px;

    border: 1px solid #dfe4ea;
    border-radius: 4px;

    background: #ffffff;

    font-family: "DM Sans", sans-serif;
    font-size: 13px;

    color: #1f2937;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.product-form-card .form-group input:focus,
.product-form-card .form-group textarea:focus,
.product-form-card .form-group select:focus {
    border-color: #111827;

    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.06);
}


.product-form-card .form-group input::placeholder,
.product-form-card .form-group textarea::placeholder {
    color: #a5afbd;
}


/* =====================================================
   FORM HELP TEXT
===================================================== */

.product-form-card .form-group small {
    display: block;

    margin-top: 8px;

    font-size: 11px;
    line-height: 1.5;

    color: #9aa6b5;
}


/* =====================================================
   FORM ACTIONS
===================================================== */

.product-form-card .product-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    padding: 20px 30px;

    border-top: 1px solid #e8ebef;

    background: #fafbfc;
}


/* Cancel */

.product-form-card .form-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 18px;

    border: 1px solid #dfe3e8;
    border-radius: 4px;

    background: #ffffff;

    color: #374151;

    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 500;

    text-decoration: none;

    transition: all 0.2s ease;
}


.product-form-card .form-cancel-button:hover {
    background: #f5f6f8;
    border-color: #cfd5dc;
}


/* Save / Update */

.product-form-card .dashboard-primary-button {
    min-height: 40px;

    padding: 0 20px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 600;
}


/* =====================================================
   ERROR MESSAGE
===================================================== */

.admin-alert.error {
    margin-top: 20px;
    margin-bottom: 0;

    padding: 13px 16px;

    border: 1px solid #ead8d8;
    border-radius: 5px;

    background: #faf5f5;

    color: #8b3a3a;

    font-size: 13px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .product-form-card .form-section {
        padding: 22px;
    }


    .product-form-card .product-form-actions {
        padding: 16px 22px;
    }


    .product-form-card .form-section-header h2 {
        font-size: 21px;
    }


    .product-form-card .product-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }


    .product-form-card .form-cancel-button,
    .product-form-card .dashboard-primary-button {
        width: 100%;
    }

}

/* =====================================================
   NEWS MANAGEMENT
===================================================== */

.news-management {
    margin-bottom: 35px;
}


/* =====================================================
   NEWS HEADER
===================================================== */

.news-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 30px;
}


.news-page-header h1 {
    margin-bottom: 7px;

    color: #111827;

    font-size: 30px;
    font-weight: 600;

    letter-spacing: -0.8px;
}


.news-page-header p {
    color: #8b929b;

    font-size: 13px;
}


/* =====================================================
   NEWS TOOLBAR
===================================================== */

.news-toolbar {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e7e9ec;
    border-radius: 6px;
}


.news-search {
    height: 42px;

    flex: 1;

    display: flex;
    align-items: center;

    padding: 0 13px;

    border: 1px solid #e2e5e8;
    border-radius: 4px;

    background: #fafafa;
}


.news-search input {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: #333;

    font-family: inherit;
    font-size: 12px;
}


.news-search input::placeholder {
    color: #aaa;
}


/* =====================================================
   NEWS TABLE CARD
===================================================== */

.news-table-card {
    background: #ffffff;

    border: 1px solid #e7e9ec;
    border-radius: 6px;

    overflow: hidden;
}


.news-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 850px;
}


.news-table th {
    height: 48px;

    padding: 0 20px;

    border-bottom: 1px solid #e8eaed;

    color: #999;

    text-align: left;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.8px;
}


.news-table td {
    height: 76px;

    padding: 0 20px;

    border-bottom: 1px solid #f0f1f3;

    color: #707780;

    font-size: 11px;
}


.news-table tbody tr:last-child td {
    border-bottom: none;
}


.news-table tbody tr:hover {
    background: #fafafa;
}


/* =====================================================
   NEWS IMAGE
===================================================== */

.news-table-image {
    width: 50px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 4px;

    background: #f0f1f3;

    color: #999;

    font-size: 11px;
}


.news-table-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =====================================================
   NEWS TITLE
===================================================== */

.news-title {
    display: flex;
    flex-direction: column;
}


.news-title strong {
    max-width: 300px;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    color: #333;

    font-size: 11px;
    font-weight: 600;
}


.news-title span {
    margin-top: 4px;

    max-width: 300px;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    color: #aaa;

    font-size: 9px;
}


/* =====================================================
   NEWS CATEGORY
===================================================== */

.news-category {
    display: inline-flex;
    align-items: center;

    min-height: 23px;

    padding: 0 10px;

    border-radius: 20px;

    background: #f1f2f4;

    color: #666;

    font-size: 9px;
    font-weight: 600;
}


/* =====================================================
   NEWS DATE
===================================================== */

.news-date {
    color: #777;

    font-size: 10px;
}


/* =====================================================
   NEWS ACTION
===================================================== */

.news-actions {
    display: flex;
    align-items: center;

    gap: 6px;
}


/* =====================================================
   EMPTY NEWS
===================================================== */

.news-empty {
    padding: 70px 30px;

    text-align: center;
}


.news-empty h3 {
    margin-bottom: 5px;

    color: #333;

    font-size: 16px;
    font-weight: 600;
}


.news-empty p {
    margin-bottom: 18px;

    color: #999;

    font-size: 11px;
}


/* =====================================================
   NEWS RESPONSIVE
===================================================== */

@media (max-width: 700px) {

    .news-page-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }


    .news-toolbar {
        flex-direction: column;

        align-items: stretch;
    }


    .news-search {
        width: 100%;
    }

}

/* =====================================================
   NEWS FORM - MATCH PRODUCT FORM DESIGN
===================================================== */


/* =====================================================
   SIDEBAR
===================================================== */

.news-form-page .admin-sidebar {
    width: 250px;
    background: #ffffff;
    border-right: 1px solid #e8eaed;
}


/* Logo mengikuti halaman Add Product */

.news-form-page .sidebar-logo {
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-bottom: 1px solid #f0f1f3;
}


.news-form-page .sidebar-logo img {
    width: 125px !important;
    height: auto !important;

    object-fit: contain;
}


.news-form-page .sidebar-logo div {
    display: none;
}


/* =====================================================
   SIDEBAR MENU
===================================================== */

.news-form-page .sidebar-menu {
    padding: 28px 15px;
    gap: 0;
}


.news-form-page .sidebar-menu a {
    position: relative;

    height: 46px;
    min-height: 46px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    margin-bottom: 4px;

    border-radius: 5px;

    color: #737981;

    font-size: 12px;
    font-weight: 500;

    transition: 0.25s ease;
}


.news-form-page .sidebar-menu a:hover {
    background: #f5f5f5;
    color: #111;
}


.news-form-page .sidebar-menu a.active {
    background: #111;
    color: #ffffff;
}


/* =====================================================
   SIDEBAR BOTTOM
===================================================== */

.news-form-page .sidebar-bottom {
    margin-top: auto;

    padding: 20px 15px;

    border-top: 1px solid #f0f1f3;

    display: flex;
    flex-direction: column;
    gap: 0;
}


.news-form-page .sidebar-bottom a {
    height: 42px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    color: #777;

    font-size: 12px;

    border-radius: 5px;

    transition: 0.25s ease;
}


.news-form-page .sidebar-bottom a:hover {
    background: #f5f5f5;
    color: #111;
}


/* =====================================================
   MAIN AREA
===================================================== */

.news-form-page .admin-main {
    margin-left: 250px;

    min-height: 100vh;

    background: #f5f6f8;
}


/* =====================================================
   TOPBAR
===================================================== */

.news-form-page .admin-topbar {
    height: 100px;
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    background: #ffffff;

    border-bottom: 1px solid #e8eaed;
}


.news-form-page .topbar-label {
    display: block;

    margin-bottom: 8px;

    color: #999;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.8px;
}


.news-form-page .admin-topbar h1 {
    margin: 0;

    color: #111827;

    font-size: 25px;
    font-weight: 600;

    line-height: 1.2;
}


.news-form-page .topbar-user {
    color: #333;

    font-size: 15px;
    font-weight: 600;
}


/* =====================================================
   CONTENT
===================================================== */

.news-form-page .admin-content {
    width: min(1400px, 94%);

    margin: 0 auto;

    padding: 40px 0 60px;
}


/* =====================================================
   ERROR
===================================================== */

.news-form-page .admin-alert {
    margin-bottom: 20px;

    padding: 13px 16px;

    border-radius: 5px;

    font-size: 11px;
}


/* =====================================================
   FORM CARD
===================================================== */

.news-form-page .product-form-card {
    width: 100%;

    margin-top: 28px;

    background: #ffffff;

    border: 1px solid #e7e9ec;

    border-radius: 6px;

    overflow: hidden;
}


/* =====================================================
   FORM SECTION
===================================================== */

.news-form-page .form-section {
    padding: 30px;

    border-bottom: 1px solid #e8eaed;
}


.news-form-page .form-section:last-of-type {
    border-bottom: none;
}


/* =====================================================
   SECTION HEADER
===================================================== */

.news-form-page .form-section-header {
    margin-bottom: 28px;
}


.news-form-page .form-section-header > div {
    max-width: 760px;
}


.news-form-page .form-section-header .topbar-label {
    margin-bottom: 8px;

    color: #999;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.8px;
}


.news-form-page .form-section-header h2 {
    margin: 0 0 7px;

    color: #111827;

    font-size: 22px;
    font-weight: 600;

    line-height: 1.25;
}


.news-form-page .form-section-header p {
    margin: 0;

    color: #8b929b;

    font-size: 11px;

    line-height: 1.6;
}


/* =====================================================
   FORM GRID
===================================================== */

.news-form-page .form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.news-form-page .form-group.full {
    grid-column: 1 / -1;
}


/* =====================================================
   FORM GROUP
===================================================== */

.news-form-page .form-group {
    display: flex;
    flex-direction: column;
}


.news-form-page .form-group label {
    margin-bottom: 8px;

    color: #333;

    font-size: 11px;
    font-weight: 600;
}


/* =====================================================
   INPUT / SELECT / TEXTAREA
===================================================== */

.news-form-page .form-group input,
.news-form-page .form-group select,
.news-form-page .form-group textarea {
    width: 100%;

    border: 1px solid #e0e3e6;

    border-radius: 4px;

    background: #ffffff;

    color: #333;

    font-family: inherit;

    font-size: 12px;

    outline: none;

    transition: 0.25s ease;
}


.news-form-page .form-group input,
.news-form-page .form-group select {
    height: 44px;

    padding: 0 13px;
}


.news-form-page .form-group textarea {
    min-height: 110px;

    padding: 12px 13px;

    resize: vertical;

    line-height: 1.6;
}


.news-form-page .form-group textarea[name="content"] {
    min-height: 220px;
}


.news-form-page .form-group input:focus,
.news-form-page .form-group select:focus,
.news-form-page .form-group textarea:focus {
    border-color: #999;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.03);
}


.news-form-page .form-group input::placeholder,
.news-form-page .form-group textarea::placeholder {
    color: #b1b5ba;
}


/* =====================================================
   HELP TEXT
===================================================== */

.news-form-page .form-group small {
    margin-top: 7px;

    color: #a0a4a9;

    font-size: 9px;

    line-height: 1.5;
}


/* =====================================================
   FEATURED IMAGE
===================================================== */

.news-form-page .image-upload-area {
    min-height: 190px;

    display: flex;
    align-items: center;

    gap: 25px;

    padding: 22px;

    border: 1px dashed #d5d8dc;

    border-radius: 5px;

    background: #fafbfc;
}


/* INI BAGIAN PENTING
   Agar gambar tidak membesar memenuhi halaman */

.news-form-page .current-image {
    width: 190px;
    height: 140px;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 5px;

    background: #eeeeee;
}


.news-form-page .current-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* File input */

.news-form-page .image-upload-area input[type="file"] {
    flex: 1;

    max-width: 100%;

    padding: 10px;

    border: 1px solid #e0e3e6;

    border-radius: 4px;

    background: #ffffff;

    color: #666;

    font-family: inherit;

    font-size: 11px;
}


/* Help text image */

.news-form-page .image-upload-area small {
    color: #999;

    font-size: 9px;

    line-height: 1.5;
}


/* =====================================================
   FORM ACTIONS
===================================================== */

.news-form-page .form-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    padding: 20px 30px;

    background: #fafbfc;

    border-top: 1px solid #e8eaed;
}


/* =====================================================
   BUTTON
===================================================== */

.news-form-page .admin-btn {
    min-height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border-radius: 4px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}


.news-form-page .admin-btn.secondary {
    border: 1px solid #dfe2e5;

    background: #ffffff;

    color: #555;
}


.news-form-page .admin-btn.secondary:hover {
    background: #f2f3f4;

    color: #111;
}


.news-form-page .admin-btn.primary {
    border: 1px solid #111;

    background: #111;

    color: #ffffff;
}


.news-form-page .admin-btn.primary:hover {
    background: #333;

    border-color: #333;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 750px) {

    .news-form-page .form-grid {
        grid-template-columns: 1fr;
    }


    .news-form-page .form-group.full {
        grid-column: auto;
    }


    .news-form-page .image-upload-area {
        flex-direction: column;

        align-items: stretch;

        text-align: center;
    }


    .news-form-page .current-image {
        width: 100%;
        max-width: 300px;

        height: 180px;

        margin: 0 auto;
    }


    .news-form-page .form-actions {
        padding: 18px 20px;
    }

}


@media (max-width: 650px) {

    .news-form-page .admin-sidebar {
        position: relative;

        width: 100%;
        height: auto;
    }


    .news-form-page .admin-main {
        margin-left: 0;
    }


    .news-form-page .sidebar-menu {
        flex-direction: row;

        overflow-x: auto;
    }


    .news-form-page .admin-topbar {
        height: 75px;
        min-height: 75px;

        padding: 20px;
    }


    .news-form-page .admin-content {
        width: 92%;

        padding: 30px 0;
    }


    .news-form-page .form-section {
        padding: 22px 18px;
    }


    .news-form-page .form-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }


    .news-form-page .form-actions .admin-btn {
        width: 100%;
    }

}

/* =====================================================
   NEWS FORM — MATCH ADMIN PRODUCT DESIGN
   ===================================================== */

/* =====================================================
   BODY
===================================================== */

body {
    margin: 0;
    min-height: 100vh;

    background: #f5f6f8;

    font-family: 'DM Sans', sans-serif;

    color: #111827;
}


/* =====================================================
   SIDEBAR
===================================================== */

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;

    width: 250px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-right: 1px solid #e8eaed;

    z-index: 1000;
}


/* =====================================================
   SIDEBAR LOGO
===================================================== */

.sidebar-logo {
    height: 100px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-bottom: 1px solid #f0f1f3;

    box-sizing: border-box;
}


/*
   News sidebar sebenarnya memiliki
   logo + tulisan Pangestu Group.
   Supaya sama dengan screenshot Add Product,
   tulisan brand disembunyikan.
*/

.sidebar-logo div {
    display: none;
}


.sidebar-logo img {
    width: 125px;
    height: auto;

    display: block;
}


/* =====================================================
   SIDEBAR MENU
===================================================== */

.sidebar-menu {
    padding: 28px 15px;

    display: flex;
    flex-direction: column;

    gap: 0;
}


/* Semua link */

.sidebar-menu a {
    position: relative;

    height: 46px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    margin-bottom: 4px;

    box-sizing: border-box;

    border-radius: 5px;

    color: #737981;

    text-decoration: none;

    font-size: 12px;
    font-weight: 500;

    transition: all 0.25s ease;
}


/* Hover */

.sidebar-menu a:hover {
    background: #f5f5f5;

    color: #111;
}


/* Active */

.sidebar-menu a.active {
    background: #111;

    color: #ffffff;

    font-weight: 600;
}


/* =====================================================
   SIDEBAR MENU ICON
   Dibuat menggunakan pseudo element supaya
   tampil lebih dekat dengan sidebar Product
===================================================== */

.sidebar-menu a::before {
    width: 20px;

    margin-right: 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;

    color: currentColor;

    flex-shrink: 0;
}


/* Dashboard */

.sidebar-menu a[href="index.php"]::before {
    content: "▦";
}


/* Products */

.sidebar-menu a[href="products.php"]::before {
    content: "▤";
}


/* Categories */

.sidebar-menu a[href="categories.php"]::before {
    content: "◇";
}


/* Locations */

.sidebar-menu a[href="locations.php"]::before {
    content: "◉";
}


/* News */

.sidebar-menu a[href="news.php"]::before {
    content: "▣";
}


/* =====================================================
   SIDEBAR BOTTOM
===================================================== */

.sidebar-bottom {
    margin-top: auto;

    padding: 20px 15px;

    border-top: 1px solid #f0f1f3;

    box-sizing: border-box;
}


/* Bottom links */

.sidebar-bottom a {
    height: 42px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    gap: 12px;

    border-radius: 5px;

    color: #777;

    text-decoration: none;

    font-size: 12px;
    font-weight: 400;

    transition: all 0.25s ease;
}


/* View Website */

.sidebar-bottom a:first-child::before {
    content: "↗";

    width: 12px;

    display: inline-flex;
    justify-content: center;

    font-size: 13px;
}


/* Sign Out */

.sidebar-bottom a:last-child::before {
    content: "↪";

    width: 12px;

    display: inline-flex;
    justify-content: center;

    font-size: 13px;
}


/* Hover View Website */

.sidebar-bottom a:first-child:hover {
    background: #f5f5f5;

    color: #111;
}


/* Hover Sign Out */

.sidebar-bottom a:last-child:hover {
    background: #fff3f3;

    color: #c0392b;
}


/* =====================================================
   MAIN AREA
===================================================== */

.admin-main {
    min-height: 100vh;

    margin-left: 250px;

    background: #f5f6f8;
}


/* =====================================================
   TOPBAR
===================================================== */

.admin-topbar {
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    box-sizing: border-box;

    background: #ffffff;

    border-bottom: 1px solid #e8eaed;
}


/* =====================================================
   TOPBAR LEFT
===================================================== */

.admin-topbar > div:first-child {
    display: flex;
    flex-direction: column;
}


.admin-topbar .topbar-label {
    display: block;

    margin-bottom: 5px;

    color: #999;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.8px;
}


.admin-topbar h1 {
    margin: 0;

    color: #111827;

    font-size: 25px;
    font-weight: 600;

    line-height: 1.2;

    letter-spacing: -0.5px;
}


/* =====================================================
   ADMINISTRATOR
===================================================== */

.topbar-user {
    display: flex;
    align-items: center;

    color: #111827;

    font-size: 14px;
    font-weight: 500;
}


/* =====================================================
   CONTENT
===================================================== */

.admin-content {
    width: min(1400px, 94%);

    margin: 0 auto;

    padding: 40px 0 60px;

    box-sizing: border-box;
}


/* =====================================================
   FORM CARD
===================================================== */

.product-form-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e2e5e9;

    border-radius: 5px;

    box-sizing: border-box;
}


/* =====================================================
   FORM SECTION
===================================================== */

.form-section {
    padding: 30px;

    border-bottom: 1px solid #edf0f2;
}


.form-section:last-of-type {
    border-bottom: none;
}


/* =====================================================
   FORM SECTION HEADER
===================================================== */

.form-section-header {
    margin-bottom: 28px;
}


.form-section-header .topbar-label {
    display: block;

    margin-bottom: 5px;

    color: #999;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.8px;
}


.form-section-header h2 {
    margin: 0;

    color: #111827;

    font-size: 23px;
    font-weight: 600;

    letter-spacing: -0.4px;
}


/* =====================================================
   FORM GRID
===================================================== */

.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px 20px;
}


.form-group {
    min-width: 0;
}


.form-group.full {
    grid-column: 1 / -1;
}


/* =====================================================
   FORM LABEL
===================================================== */

.form-group label {
    display: block;

    margin-bottom: 9px;

    color: #111827;

    font-size: 12px;
    font-weight: 600;
}


/* =====================================================
   INPUT
===================================================== */

.form-group input[type="text"],
.form-group input[type="datetime-local"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dfe3e8;

    border-radius: 4px;

    background: #ffffff;

    color: #222;

    font-family: 'DM Sans', sans-serif;

    font-size: 12px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Text input */

.form-group input[type="text"],
.form-group input[type="datetime-local"],
.form-group select {
    height: 46px;

    padding: 0 14px;
}


/* Textarea */

.form-group textarea {
    min-height: 110px;

    padding: 13px 14px;

    resize: vertical;

    line-height: 1.6;
}


/* Focus */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #b9bec5;

    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.04);
}


/* Placeholder */

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aab0b7;
}


/* Small text */

.form-group small {
    display: block;

    margin-top: 7px;

    color: #9ba1a8;

    font-size: 10px;

    line-height: 1.5;
}


/* =====================================================
   IMAGE UPLOAD
===================================================== */

.image-upload-area {
    padding: 25px;

    border: 1px dashed #d9dde2;

    border-radius: 5px;

    background: #fafbfc;
}


.image-upload-area input[type="file"] {
    width: 100%;

    padding: 12px;

    border: 1px solid #dfe3e8;

    border-radius: 4px;

    background: #ffffff;

    font-family: 'DM Sans', sans-serif;

    font-size: 11px;
}


.image-upload-area small {
    display: block;

    margin-top: 8px;

    color: #999;

    font-size: 10px;
}


/* =====================================================
   CURRENT IMAGE
===================================================== */

.current-image {
    width: 180px;

    margin-bottom: 20px;

    overflow: hidden;

    border: 1px solid #e1e4e8;

    border-radius: 5px;

    background: #f5f6f8;
}


.current-image img {
    width: 100%;

    height: 120px;

    display: block;

    object-fit: cover;
}


/* =====================================================
   FORM ACTION
===================================================== */

.form-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding: 22px 30px;

    border-top: 1px solid #edf0f2;

    background: #ffffff;
}


/* =====================================================
   BUTTON
===================================================== */

.admin-btn {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border-radius: 4px;

    text-decoration: none;

    font-family: 'DM Sans', sans-serif;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.25s ease;

    box-sizing: border-box;
}


/* Secondary */

.admin-btn.secondary {
    background: #ffffff;

    border: 1px solid #dfe3e8;

    color: #555;
}


.admin-btn.secondary:hover {
    background: #f5f5f5;

    color: #111;
}


/* Primary */

.admin-btn.primary {
    background: #111;

    border: 1px solid #111;

    color: #ffffff;
}


.admin-btn.primary:hover {
    background: #333;

    border-color: #333;
}


/* =====================================================
   ALERT
===================================================== */

.admin-alert {
    margin-bottom: 20px;

    padding: 13px 16px;

    border-radius: 4px;

    font-size: 11px;
}


.admin-alert.error {
    background: #fff3f3;

    border: 1px solid #f2cccc;

    color: #b42318;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .admin-sidebar {
        width: 220px;
    }

    .admin-main {
        margin-left: 220px;
    }

    .admin-topbar {
        padding: 0 25px;
    }

    .admin-content {
        width: calc(100% - 40px);
    }

}


@media (max-width: 700px) {

    .admin-sidebar {
        position: relative;

        width: 100%;
        height: auto;

        min-height: auto;
    }

    .sidebar-logo {
        height: 90px;
    }

    .sidebar-menu {
        padding: 15px;
    }

    .sidebar-bottom {
        margin-top: 0;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar {
        height: 80px;

        padding: 0 20px;
    }

    .admin-topbar h1 {
        font-size: 21px;
    }

    .admin-content {
        width: calc(100% - 30px);

        padding: 25px 0 40px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .form-section {
        padding: 22px;
    }

    .form-actions {
        padding: 18px 22px;

        flex-direction: column-reverse;

        align-items: stretch;
    }

    .admin-btn {
        width: 100%;
    }

}

.best-seller-group {
    margin-bottom: 24px;
}

.best-seller-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.best-seller-option {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    color: #777;
}

.best-seller-option input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    accent-color: #191970;
}

.best-seller-option span {
    display: inline;
    margin: 0;
    padding: 0;
}

.catalogue-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #e1e3e6;
    border-radius: 4px;
    background: #fff;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.dashboard-secondary-button:hover {
    border-color: #191970;
    color: #191970;
}

.sub-product-parent-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.sub-product-parent-info span {
    color: #999;
    font-size: 10px;
}

.sub-product-parent-info strong {
    color: #333;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 700px) {

    .catalogue-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .catalogue-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .sub-product-parent-info {
        display: none;
    }

}

.form-help {
    margin-top: 7px;
    color: #999;
    font-size: 10px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.current-image {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.current-image img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.current-image span {
    color: #999;
    font-size: 10px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 25px;
    border-top: 1px solid #eeeeee;
}

.form-cancel-button,
.form-submit-button {
    min-height: 42px;
    padding: 0 20px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-cancel-button {
    border: 1px solid #e1e3e6;
    background: #fff;
    color: #666;
}

.form-cancel-button:hover {
    border-color: #191970;
    color: #191970;
}

.form-submit-button {
    border: 1px solid #191970;
    background: #191970;
    color: #fff;
}

.form-submit-button:hover {
    background: #11115c;
    border-color: #11115c;
}

.admin-form-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 30px;
}

.admin-form-header {
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eeeeee;
}

.admin-form-header h2 {
    margin-top: 7px;
    color: #222;
    font-size: 20px;
    font-weight: 600;
}

.form-group input[type="file"] {
    height: auto;
    padding: 11px 13px;
}

@media (max-width: 700px) {

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-form-card {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-cancel-button,
    .form-submit-button {
        width: 100%;
    }

}