:root {
    --ant-primary-color: linear-gradient(135deg, #d35400, #e67e22);
    --ant-primary-color-hover: linear-gradient(135deg, #e67e22, #f39c12);
    --ant-primary-color-active: linear-gradient(135deg, #853500, #c97327);
    --ant-primary-color-outline: rgba(24, 144, 255, 0.2);
    --ant-success-color: #52c41a;
    --ant-warning-color: #faad14;
    --ant-error-color: #ff4d4f;
    --ant-font-size-base: 14px;
    --ant-heading-color: rgba(0, 0, 0, 0.85);
    --ant-text-color: rgba(0, 0, 0, 0.65);
    --ant-text-color-secondary: rgba(0, 0, 0, 0.45);
    --ant-disabled-color: rgba(0, 0, 0, 0.25);
    --ant-border-radius-base: 2px;
    --ant-border-color-base: #d9d9d9;
    --ant-primary-background-color: linear-gradient(#fec058, #f9cc80bf, #ffe9c5bf)
}

.d-none {
    display: none;
}

.d-flex {
    display: flex !important;
}

.d-flex-column {
    display: flex !important;
    flex-direction: column;
}

.w-full {
    width: 100% !important;
}

.ant-input[disabled], .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector {
    color: rgb(0 0 0 / 64%) !important;
}

.justify-content-end {
    justify-content: end;
}

.justify-content-start {
    justify-content: start;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-space-between {
    justify-content: space-between;
}


.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: start;
}

.align-items-end {
    align-items: end;
}


/* Custom Scrollbar - App Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ant-primary-background-color);
    border-radius: 0px;
}

::-webkit-scrollbar-thumb {
    background: var(--ant-primary-color);
    border-radius: 6px;
    border: 1px solid #e67e22;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--ant-primary-color-hover);
    }

    ::-webkit-scrollbar-thumb:active {
        background: var(--ant-primary-color)
    }

.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
    display: none !important;
}

.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::after {
    display: inline-block;
    margin-right: 4px;
    color: #ff4d4f;
    font-size: 14px;
    font-family: SimSun, sans-serif;
    line-height: 1;
    content: '*';
}

.ant-form-item-required, .ant-form-item-label, .ant-form-item-label label {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--secondary-text-color) !important;
}

.ant-spin-nested-loading > div > .ant-spin {
    max-height: 100%;
}
/* App Title */
.app-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.app-title-hhg {
    color: #d35400;
    margin-right: 8px;
}

.app-title-packing {
    color: #2c3e50;
}

.page-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

    .page-card.ant-card .ant-card-head {
        background: var(--ant-primary-color);
        color: white;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .page-card.ant-card .ant-card-head-title {
        color: white;
        display: flex;
        align-items: center;
    }

        .page-card.ant-card .ant-card-head-title .anticon {
            color: white;
            font-size: 24px;
        }

        .page-card.ant-card .ant-card-head-title h3 {
            color: white;
            margin: 0;
        }

.ant-form-item {
    margin-bottom: 16px;
}

.ant-checkbox-input:checked + .ant-checkbox-inner {
    background: var(--ant-primary-color);
    border: var(--ant-primary-color);
}

.page-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    min-height: calc(100% - 40px);
}

/* Text Selection - App Theme */
::selection {
    background-color: #fec058;
    color: #2c3e50;
}

::-moz-selection {
    background-color: #fec058;
    color: #2c3e50;
}

.ant-spin-dot-item {
    background: var(--ant-primary-color);
}

.page-card.ant-card .ant-card-body {
    min-height: 300px;
}

.ant-modal-max-btn {
    display: none;
}

@media(max-width: 992px) {
    .page-container .page-card.ant-card {
        border-radius: 0px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .page-card.ant-card .ant-card-head {
        background: linear-gradient(180deg, #fec058, #f9cc80bf);
        color: black;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        flex: 0 0 auto;
    }

    .page-card.ant-card .ant-card-body {
        flex: auto;
        height: 100%;
        overflow: auto;
    }

    .page-container {
        padding: 0;
        margin-bottom: 0px !important;
        height: 100%;
    }

    .page-card.ant-card .ant-card-head-title {
        color: black;
        padding: 10px 0px;
    }

        .page-card.ant-card .ant-card-head-title .anticon {
            color: black;
            font-size: 20px;
        }

        .page-card.ant-card .ant-card-head-title h3 {
            color: black;
            font-size: 18px;
        }

    .page-card.ant-card .ant-card-head {
        min-height: 40px;
    }

    ::-webkit-scrollbar-track {
        background: white;
        border-radius: 0px;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--ant-primary-background-color);
        border-radius: 6px;
        border: none;
    }

        ::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active {
            background: var(--ant-primary-color-hover);
        }
}
