/*
* Styles
******************************************************************************/
@media (max-width: 600px) {
    .swal2-popup {
        width: 90% !important;
        padding: 20px 15px !important;
    }

    .swal2-icon .swal2-icon-content {
        font-size: 45px !important;
    }

    .swal2-title {
        font-size: 18px !important;
        margin: 0 !important;
        padding: 15px 0 !important;
    }

    .swal2-html-container {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin: 0 !important;
    }

    .swal2-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 25px !important;
    }

    .swal2-confirm,
    .swal2-cancel,
    .swal2-deny {
        width: 100% !important;
        margin: 6px 0 !important;
        padding: 9px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }
}
.menu .app-brand.demo {
    height: 64px;
}

.app-brand-logo.demo svg {
    width: 34px;
    height: 24px;
}

.app-brand-text.demo {
    font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}
.layout-navbar-fixed
    .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu)
    .layout-page {
    padding-top: 72px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
    display: block !important;
}

.demo-inline-spacing > * {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
    margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
    #dropdown-variation-demo .btn-group .text-truncate {
        width: 254px;
        position: relative;
    }
    #dropdown-variation-demo .btn-group .text-truncate::after {
        position: absolute;
        top: 45%;
        right: 0.65rem;
    }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}
.layout-demo-placeholder img {
    width: 900px;
}
.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    border-top: 1px solid #eee;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05);
    z-index: 999;
}

/* Nav item style */
.mobile-nav-item {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition:
        color 0.3s ease,
        transform 0.2s ease;
    padding-top: 6px;
    position: relative;
    overflow: hidden;
}

/* Icon */
.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

/* Active and hover */
.mobile-nav-item.active {
    color: #4655c9;
    transform: scale(1.05);
}

/* Active underline */
.mobile-nav-item.active::after {
    content: '';
    width: 20px;
    height: 3px;
    background-color: #4655c9;
    border-radius: 2px;
    display: block;
    animation: indicatorSlide 0.3s ease;
}

.mobile-nav-label {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #888;
}

/* Deposit special styling (center circle) */
.mobile-nav-item.deposit {
    position: relative;
    top: -19px;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}
.deposit-btn.active {
    perspective: 400px;
}
.deposit-btn.active i {
    color: #fff !important;
    transform: scale(1.5);
    animation: spin 5s linear infinite;
    display: inline-block;
    transform-style: preserve-3d;
    position: relative;
    z-index: 1;
}

@keyframes spin {
    from {
        transform: scale(1.5) rotateY(0deg);
    }
    to {
        transform: scale(1.5) rotateY(360deg);
    }
}

.deposit-btn {
    background: linear-gradient(145deg, #588ee0, #4754ca);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: white 5px solid;
    color: white;
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Deposit text below button */
.mobile-nav-item.deposit span {
    margin-top: -2px;
    font-size: 0.7rem;
    color: #888;
}

/* Hover and click effect */
.mobile-nav-item:active:not(.deposit) {
    transform: scale(1.1);
    border-radius: 50%;
}

/* Ripple animation (excluded for .deposit-btn) */
.ripple {
    position: absolute;
    background: rgba(70, 85, 201, 0.3);
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
    z-index: 0;
}

/* Bottom indicator animation */
@keyframes indicatorSlide {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 20px;
        opacity: 1;
    }
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Hide on larger screens */
@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}
@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
.image-promo {
    width: 141px;
    height: 155px;
    overflow: hidden;
}

.image-promo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.selection-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8f9fa; /* Light background */
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 75px;
    margin-top: -22px;
    margin-bottom: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1070;
}

.back-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    margin-right: 12px;
    padding: 0;
    line-height: 1;
}

.page-selection-title {
    font-size: 13px;
    flex-grow: 1;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.card-order {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 16px;
    font-size: 12px;
    color: #151515 !important;
}
.card-order-title {
    display: none;
}
/* Responsive: tampilkan hanya di mobile */
@media (min-width: 768px) {
    .selection-header {
        display: none;
    }
    .container-order {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .card-order-title {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
        color: #333;
    }
}
.header-container-desk {
    border-bottom: 1px solid #eee;
    background-color: #fcfcfc;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05);
}

.header-title-desk {
    font-size: 1rem;
    color: #333;
    font-family: 'Saira', sans-serif;
}

.back-button-desk {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #555;
    text-decoration: none;
}

.back-button-desk:hover {
    color: #000;
}
.text-saira {
    font-family: 'Saira', sans-serif !important;
}
.text-saira-bold {
    font-family: 'Saira', sans-serif !important;
    font-weight: 700;
}
.text-saira-regular {
    font-family: 'Saira', sans-serif !important;
    font-weight: 400;
}

.text-saira-reguler-italic {
    font-family: 'Saira', sans-serif !important;
    font-style: italic;
    font-weight: 400;
}
.text-saira-bold-italic {
    font-family: 'Saira', sans-serif !important;
    font-weight: 700;
    font-style: italic;
}

.text-jakarta {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.text-caveat {
    font-family: 'Caveat', sans-serif !important;
}

.text-fredoka {
    font-family: 'Fredoka', sans-serif !important;
}
/* Shimmer Loading Effect */
.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f6f7f8 25%, #edeef1 50%, #f6f7f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.settings-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0.14);
    padding: 0;
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background-color: #f9f9f9;
}

.settings-item i {
    margin-right: 15px;
    font-size: 18px;
    min-width: 24px;
    text-align: center;
}

.settings-label {
    flex: 1;
    font-size: 16px;
}

.settings-arrow {
    color: #aaa;
    font-size: 16px;
}
