/*
 * Global Styles
 */
* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
    font-size: 0.9rem;
}

section {
    min-height: 85vh;
}

/*
 * Colors
 */
.color-1 {
    color: #f65413;
}

.h5 {
    font-size: large !important;
    font-weight: bold !important;
    letter-spacing: 0.6px;
}

.bg-1 {
    background-color: #f65413;
    color: rgb(249, 249, 249);
}

.bg-2 {
    background-color: rgb(249, 249, 249);
}

.bg-3 {
    background-color: rgb(255, 255, 255);
}

/*
 * Height Modifiers
 */
.three-quarter-height {
    min-height: 75vh;
}

.half-height {
    min-height: 50vh;
}

.quarter-height {
    min-height: 30vh;
}

/*
 * Borders and Shadows
 */
.card-border,
.card-border-2 {
    position: relative;
    border: solid 1px #00000020;
}

.brand-card-border {
    position: relative;
    border: solid 1px #00000040;
    overflow: hidden;
}

.brand-card-border:hover {
    box-shadow: 0px 0px 4px #00000030;
}

.category-card-border a {
    color: rgb(20, 20, 20);
}

.category-card-border:hover a {
    text-decoration: none;
    color: rgb(20, 20, 20);
}

.category-card-border:hover {
    box-shadow: 0px 0px 4px #00000030;
}

.card-border:hover {
    box-shadow: 0px 0px 4px #00000030;
}

.card-border.disabled:hover {
    box-shadow: none;
}

.card-image {
    background-color: rgb(249, 249, 249);
    text-align: center;
    position: relative;
}

.card-image img {
    display: inline;
    object-fit: contain;
    object-position: center;
    height: 100%;
    width: 100%;
    aspect-ratio: 1;
}

.brand-card-image img {
    display: inline;
    object-fit: cover;
    object-position: center;
    height: 100%;
    width: 100%;
    aspect-ratio: 5/4;
}

.category-card-image img {
    display: inline;
    object-fit: cover;
    object-position: center;
    height: 100%;
    width: 100%;
    aspect-ratio: 1;
}

.card-border-2 img {
    height: 100%;
}

.rounded {
    border-radius: 20px;
    overflow: hidden;
}

.rounded-2 {
    border-radius: 15px;
    overflow: hidden;
}

.box-shadow {
    box-shadow: 0px 0px 3px #00000030;
}

/*
 * Search Bar
 */
.search-bar {
    width: 100%;
    padding: 5px 10px;
    border: solid 2px gray;
    border-radius: 3px;
}

.search-button {
    background-color: #f65413;
    border: solid 2px gray;
}

/*
 * Footer
 */
footer {
    position: relative;
    width: 100%;
    bottom: 0;
    min-height: 40vh;
}

.white-line {
    background-color: rgb(249, 249, 249);
    margin: 10px 0;
    height: 1px;
    width: 100%;
}

.line-height {
    line-height: 100%;
}

/*
 * Carousel
 */
.carousel-item img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: auto;
    aspect-ratio: 4/1;
    background-color: lightgray;
}

.banner-advertising {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: auto;
    aspect-ratio: 6/1;
    background-color: lightgray;
}

.banner-preview {
    object-fit: cover;
    object-position: center;
    width: 60%;
    height: auto;
    aspect-ratio: 4/1;
    background-color: lightgray;
}

.advertising-banner-preview {
    object-fit: cover;
    object-position: center;
    width: 60%;
    height: auto;
    aspect-ratio: 6/1;
    background-color: lightgray;
}

/*
 * Item Card
 */
.product-name {
    height: 40px;
    overflow: hidden;
}

.price {
    color: #f65413;
    font-weight: 500;
}

.price-discounted {
    color: #f65413;
    text-decoration: line-through;
    font-weight: bold;
    font-size: 0.8rem;
}

a.product-item {
    color: rgb(20, 20, 20);
}

a.product-item:hover {
    color: rgb(20, 20, 20);
    text-decoration: none;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    color: rgb(249, 249, 249);
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay p {
    color: rgb(249, 249, 249);
}

/*
 * List Styles
 */
ul {
    padding-left: 10px;
}

ul.navbar li {
    display: inline;
    padding-right: 20px;
}

li.category {
    list-style: none;
}

li.category a {
    text-decoration: none;
    color: rgb(20, 20, 20);
}

/*
 * Product Detail
 */

.large-img-container {
    background-color: lightgray;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    overflow: hidden;
}

.large-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.small-img-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.small-img {
    width: 100%;
    height: auto;
    cursor: pointer;
    object-position: center;
    object-fit: cover;
    aspect-ratio: 1;
    border: 1px solid lightgray;
}

/*
 * Anchor Styles
 */
a.color-white {
    color: rgb(249, 249, 249);
}

a.buttonTextProduct:hover,
a.nav-link:hover {
    text-decoration: none;
    color: lightgray;
}

a.nav-link {
    text-decoration: none;
    color: rgb(249, 249, 249);
    padding: 0px;
    display: inline;
}

a.buttonTextInverse:hover,
a.buttonTextInverse {
    color: #f65413;
    text-decoration: none;
}

a.history-transaction,
a.brand-item {
    color: rgb(20, 20, 20);
}

a.brand-item:hover {
    color: rgb(20, 20, 20);
    text-decoration: none;
}

a.textAnchor {
    color: #f65413;
}

a.textAnchor:hover {
    color: #f65413;
    text-decoration: none;
}

a.text-muted:hover {
    color: lightgray;
    text-decoration: none;
}

/*
 * Input Styles
 */

input[type="text"].search-text {
    width: 100%;
    font-size: 1.1rem;
    border: 0px;
}

input[type="submit"].button-submit {
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
    background-color: #f65413;
    color: rgb(249, 249, 249);
    border: solid 2px rgb(249, 249, 249);
    border-radius: 4px;
}

input:focus {
    outline: 0px;
}

/*
 * Button Styles
 */
.button-checkout {
    border: 0px;
    background-color: #f65413;
    color: rgb(249, 249, 249);
    border: solid 2px rgb(249, 249, 249);
    border-radius: 6px;
}

.buttonProduct {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 3px;
    height: 28px;
    background-color: #f65413;
    padding: 0px 8px;
    margin: 0px 4px;
    cursor: pointer;
}

.buttonTextProduct {
    color: rgb(249, 249, 249);
}

.buttonTextProduct:focus {
    outline: 0px;
}

.buttonProductInverse {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f65413;
    border-radius: 3px;
    height: 28px;
    background-color: transparent;
    padding: 0px 8px;
    margin: 0px 4px;
    cursor: pointer;
}

/*
 * Input Container
 */
.input-container {
    position: relative;
    width: 100px;
    margin: 0px 12px;
}

input[type="number"].prodQty {
    width: 100%;
    height: 28px;
    text-align: center;
    font-size: 1rem;
    border: 1px solid #f65413;
    border-radius: 2px;
    background-color: transparent;
}

#minus,
#plus {
    background: #f65413;
    color: rgb(249, 249, 249);
    font-weight: bold;
    padding: 8px;
    position: absolute;
    display: flex;
    align-items: center;
    height: 28px;
    cursor: pointer;
    border-radius: 2px;
    font-size: 1.3em;
}

.prodQty {
    -moz-appearance: textfield; /* Firefox */
}

.prodQty::-webkit-outer-spin-button,
.prodQty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; /* Optional */
}

#minus {
    content: "-";
    left: 0;
    top: 0;
}

#plus {
    content: "+";
    right: 0;
    top: 0;
}

.image-input {
    width: 100%;
    border: 1px solid;
    border-radius: 4px;
}

.image-input::file-selector-button {
    border: 0px;
    border-right: 1px solid black;
    padding: 6px 12px 6px 12px;
    margin-right: 12px;
    color: #f65413;
    cursor: pointer;
}

/*
 * Miscelaneous
 */

.cartBadge {
    position: absolute;
    top: 0.4vw;
    left: 2.8vw;
    transform: translate(50%, -50%);
    background-color: #f65413;
    color: rgb(249, 249, 249);
    border-radius: 50%;
    padding: 0.2em 0.6em;
    font-size: 0.7em;
}

/* 
 * Pagination
 */

.color-pagination .page-link {
    color: #f65413;
    width: 32px;
}

.color-pagination .page-link:hover {
    color: #f65413;
}

.color-pagination .page-link:hover {
    color: rgb(249, 249, 249);
    background-color: #f65413;
    outline: none;
    box-shadow: none;
}

.color-pagination .page-item.active .page-link {
    color: rgb(249, 249, 249);
    background-color: #f65413;
    border-color: #f65413;
    outline: none;
    box-shadow: none;
}

.color-pagination .page-link {
    border-radius: 4px;
}

.color-pagination .page-link {
    margin: 0 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.color-pagination .page-item.disabled .page-link {
    color: #ccc;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

/* 
 * Alert
 */

.alert {
    margin-top: 20px;
    z-index: 9999;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.alert.show {
    opacity: 1;
}

.alert.fade {
    opacity: 0;
}

/* 
 * Badge status transaction color
 */

.badge-waiting_for_payment {
    background-color: gray;
    color: #212529;
}

.badge-waiting_for_shipment {
    background-color: gray;
    color: #212529;
}

.badge-validating_payment {
    background-color: #ffc107;
    color: #212529 !important  ;
}

.badge-payment_failed {
    background-color: #dc3545;
    color: #fff;
}

.badge-payment_confirmed {
    background-color: #ff9800;
    color: #fff;
}

.badge-cod {
    background-color: #ff9800;
    color: #fff;
}

.badge-shipped {
    background-color: #007bff;
    color: #fff;
}

.badge-cancelled {
    background-color: #6c757d;
    color: #fff;
}

.badge-completed {
    background-color: #28a745;
    color: #fff;
}

/* 
 * End Badge status transaction 
 */

/* 
 * Indicator status transaction 
 */
.custom-tab {
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
}

.custom-tab.active-tab {
    color: #f65413;
    border-bottom: 2px solid #f65413;
}

.card-header .custom-tab:hover {
    color: #f65413;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-cod {
    background-color: #ff9800;
}

.status-menunggu-pembayaran {
    background-color: gray;
}

.status-validasi-pembayaran {
    background-color: #ff9800;
}

.status-pembayaran-gagal {
    background-color: #dc3545;
}

.status-pembayaran-dikonfirmasi {
    background-color: #ff9800;
}

.status-menunggu-pengiriman {
    background-color: #ff9800;
}

.status-dikirim {
    background-color: #007bff;
}

.status-selesai {
    background-color: #28a745;
}

.status-dibatalkan {
    background-color: gray;
}

/* 
 * End Indicator status transaction 
 */

.status-checking {
    background-color: gray;
}

.status-confirmed {
    background-color: #4caf50;
}

.status-failed {
    background-color: #dc3545;
}

.status-insufficient {
    background-color: #ff9800;
}

.custom-tab {
    transition: color 0.3s ease;
    color: inherit;
}

.custom-tab:hover {
    color: #f65413 !important;
    text-decoration: none;
}

.active-tab {
    color: #f65413;
    border-bottom: 2px solid #f65413;
}

/* 
 * End indicator status transaction 
 */
* Logo */ .logo-preview {
    width: 100px;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.icon-preview {
    width: 50px;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.icon-footer {
    height: 40px;
    width: 40px;
    object-fit: contain;
    background-color: white;
    border-radius: 4px;
}

/* 
 * buttonDropdwonCSV
 */

.dropdownExportCSV .btn {
    background-color: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 6px;
}

.dropdownExportCSV .btn:hover {
    background-color: #f0f0f0;
}

.dropdownExportCSV .btn i {
    font-size: 1.2rem;
    color: #333;
}

.dropdownExportCSV .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.2s ease-in-out;
}

.dropdownExportCSV .dropdown-item {
    transition: background-color 0.2s, color 0.2s;
}

.dropdownExportCSV .dropdown-item:hover {
    background-color: #696cff;
    color: #fff;
}
/* 
 * End buttonDropdwonCSV
 */

/*Dashboard*/
.dashboard-container {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 20px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    margin: 0 10px;
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.stat-card-totalProducts {
    background-color: #6b5de7;
}

.stat-card-lowStockProducts {
    background-color: orange;
}

.stat-card-outOfStockProducts {
    background-color: red;
}
.stat-card-totalProducts:hover {
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.stat-card-lowStockProducts:hover {
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.stat-card-outOfStockProducts:hover {
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.stat-card__text {
    margin: 5px 0;
    font-size: 16px;
    font-weight: normal;
}

.chart-box {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-box__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-box__title {
    margin: 0;
    font-size: 18px;
}
/* End Dashboard */

/* 
 * Notification Low Stock Product
 */
.notification-wrapper {
    position: relative;
}

.notification-box {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 250px;
    z-index: 1000;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.notification-box.show {
    display: block;
}

.notification-content h6 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #333;
}

.notification-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-content ul li {
    padding: 5px 0;
    font-size: 12px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.notification-content ul li:last-child {
    border-bottom: none;
}
/* 
 * End Notification Low Stock Product
 */

/* Resi Shipping Label */
#shippingLabelContainer {
    width: 10.5cm;
    min-height: 15cm; /* Changed from height to min-height */
    border: 2px solid #000;
    padding: 15px;
    background-color: #fff;
    font-family: Arial, sans-serif;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    margin: auto;
}

#headerSection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#headerSection img {
    height: 30px;
}

#barcodeStrip {
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        #000 0,
        #000 2px,
        #fff 2px,
        #fff 4px
    );
    margin: 10px 0;
}

.infoSection {
    margin: 8px 0;
    font-size: 12px;
    line-height: 1.4;
}

.titleHighlight {
    font-weight: bold;
    color: #d32f2f;
}

#itemList {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#itemList td {
    border: 1px solid #000;
    padding: 5px;
    font-size: 10px;
    text-align: center;
}

#itemList td:first-child {
    font-weight: bold;
    background-color: #f5f5f5;
}
/* End Resi Shipping Label */

/* 
 * WhatsApp CS icon 
 */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}
/* End WhatsApp CS icon */
