*{
    margin: 0;
    padding: 0;
}

*{
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    user-select: none;
}

::-webkit-scrollbar-track {
    background: #2d2d2d; /* Track background */
}

/* This targets the scrollbar handle */
::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: white; /* Handle background */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Setting the width of the scrollbar */
::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

/* SWAL */

.swal2-popup {
    font-family: 'Outfit', sans-serif;
    background-color: #121317;
    color: #f5f6fa80;
    border: 1px solid #b29c884b !important;
}

.swal2-title {
    color: #ffffff;
}

.swal2-content {
    color: #f5f6fa80;
}

.swal2-container {
    background-color: rgba(123, 123, 123, 0.4);
}

.swal2-actions {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.swal2-styled.swal2-confirm {
    background-color: #d59347;
    border: 2px solid transparent;
    color: #f5f6fabc;
    border-radius: 4px;
    transition: 0.25s ease-in-out;
}

.swal2-styled.swal2-cancel {
    background-color: #88888838;
    color: white;
    border: 2px solid #e8a151;
    transition: 0.25s ease-in-out;
}

.swal2-styled.swal2-confirm:hover{
    background-color: #e8a151;
    color: white;
    border: 2px solid white;
}

.swal2-styled.swal2-cancel:hover {
    color: #e8a151;
    background-color: transparent;
}

.swal2-styled.swal2-confirm:focus,
.swal2-styled.swal2-cancel:focus {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
}

.swal2-styled.swal2-confirm:active{
    background-color: #e8a151;
    color: white;
    border: 2px solid white;
}

.swal2-styled.swal2-cancel:active {
    color: #e8a151;
    background-color: transparent;
}

body{
    background-color: #2d2d2d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-page{
    background-color: #121317;
    width: 560px;
    height: max-content;
    min-height: calc(100vh - 24px);
    padding: 24px 24px 0 24px;
}

.mobile-loading{
    background-color: #121317b9;
    backdrop-filter: blur(3px);
    width: 560px;
    height: max-content;
    min-height: calc(100vh - 24px);
    padding: 24px 24px 0 24px;
    position: fixed;
    top: 0;
    z-index: 9;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-loading.show{
    display: flex;
}

.mobile-loading .mini-logo{
    width: 100px;
}

.dot-ripple{
    margin: 32px 0;
    width: 24px;
    aspect-ratio: 1/1;
    background-color: white;
    animation: spinner 3s ease-in-out infinite;
}

@-webkit-keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @-moz-keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @-o-keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

.row{
    display: flex;
}

.justify-space-between{
    justify-content: space-between;
}

.align-flex-start{
    align-items: flex-start;
}

.btn-square{
    width: 46px;
    aspect-ratio: 1/1 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: 0;
    border-radius: 8px;
    box-shadow: 5px 6px #b0b0b036;
    transition: 0.25s ease-in-out;
}

.btn-square:hover{
    cursor: pointer;
    box-shadow: 5px 10px #8888887d;
}

.btn-muted{
    background-color: #c3c3c338;
    color: #767576;
}

.btn-info{
    background-color: #f5f6fabc;
    color: #202125;
}

.btn-info.active{
    background-color: #e8a151;
    color: white;
}

.welcome-title{
    font-size: 52px;
    letter-spacing: 1px;
    color: #ffffff;
}

.welcome-sub{
    font-size: 18px;
    letter-spacing: 1px;
    color: #f5f6fabc;
}

.dashboard-grid{
    display: flex;
    flex-direction: column;
}

.dashboard-title{
    font-size: 24px;
    letter-spacing: 1px;
    color: #ffffff;
}

.dashboard-sub{
    font-size: 18px;
    letter-spacing: 1px;
    color: #f5f6fabc;
}

.dashboard-package-group{
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #202125;
    border-radius: 8px;
    padding: 16px 16px;
    transition: 0.25s ease-in-out;
    border: 3px solid transparent;
    color: #f5f6fabc;
}

.active-package-group{
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #202125;
    border-radius: 8px;
    padding: 16px 16px;
    transition: 0.25s ease-in-out;
    border: 3px solid transparent;
    color: #f5f6fabc;
}

.dashboard-package-group:hover, .active-package-group:hover, .rules-card:hover, .history-card:hover, .qr-card:hover{
    cursor: pointer;
    background-color: #36373b;
    border: 3px solid #b29c88 !important;
    border-radius: 12px;
}

.dashboard-package-group:hover .package-icon,
.active-package-group:hover .package-icon{
    color: #ffffff;
    background-color: #e8a151;
}

.package-desc{
    color: #f5f6fabc;
}

.package-icon{
    aspect-ratio: 1/1 !important;
    height: fit-content;
    font-size: 32px;
    background-color: #d59347;
    padding: 16px;
    border-radius: 8px;
    color: #f5f6fabc;
    transition: 0.25s ease-in-out;
}

.package-detail{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-detail-title{
    font-size: 20px;
    color: white;
    font-weight: 600;
}

.package-detail-period{
    font-size: 18px;
    font-weight: 200;
}

.dashboard-package-more{
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 8px;
    background-color: #d59347;
    color: #f5f6fabc;
    transition: 0.25s ease-in-out;
}

.history-card:hover .dashboard-package-more{
    color: #ffffff;
    background-color: #e8a151;
}

.qr-card:hover .dashboard-package-more{
    color: #ffffff;
    background-color: #e8a151;
}

.hover-border:hover{
    border: 1px solid black;
}

.mt-10{
    margin-top: 10px;
}

.mt-20{
    margin-top: 20px;
}

.mt-30{
    margin-top: 30px;
}

.mt-40{
    margin-top: 40px;
}

.mt-50{
    margin-top: 50px;
}

.my-10{
    margin: 10px 0;
}

.my-20{
    margin: 20px 0;
}

.nav-bar{
    border: 1px solid #d5934727;
    width: calc(560px - 64px);
    height: 64px;
    position: fixed;
    bottom: 16px;
    background-color: #161719;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.nav-link{
    color: #f6f6f8;
    font-size: 24px;
    transition: 0.25s ease-in-out;
    text-decoration: none;
}

.nav-link:hover{
    cursor: pointer;
    font-size: 30px;
}

.nav-link.active{
    color: #e8a151;
}

.nav-link.main-link{
    color: #161719;
    background-color: #f6f6f8;
    border:4px solid #161719;
    border-radius: 1000px;
    aspect-ratio: 1/1;
    width: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}

.nav-link.main-link:hover{
    width: 76px;
    font-size: 38px;
}
.nav-link.main-link.active{
    color: #e8a151;
    background-color: white;
}

.dashboard-rules-grid{
    display: flex;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 12px;
    justify-content: center;
}

.rules-card{
    width: 140px;
    aspect-ratio: 1/1;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    border-radius: 4px;
    font-size: 18px;
    background-color: #202125;
    gap: 10px;
    transition: 0.25s ease-in-out;
    border: 3px solid transparent;
    color: #f5f6fabc;
}

.rules-title{
    font-size: 18px;
    font-weight: 100;
}

.rules-card:hover{
    color: white;
    border-radius: 8px;
}

.rules-icon{
    font-size: 32px;
    margin-bottom: 12px;
}

.sticky-on-top{
    position: -webkit-sticky;
    position: sticky;
    top: 16px;
    z-index: 5;
}

.package-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.package-name{
    font-size: 20px;
    color: white;
    font-weight: 600;
}

.footer{
    width: 560px;
    height: 100px;
    background-color: #121317;
    padding: 24px 24px 0 24px;
}

.checkout-package{
    display: flex;
    width: 100%;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #a6a6a6;
    border-bottom: 1px solid #a6a6a6;
    align-items: center;
    color: #f5f6fabc;
}

.package-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-package .package-name{
    font-size: 20px;
    font-weight: bold;
}

.package-price{
    font-size: 20px;
    font-weight: bold;
}

.package-period{
    font-size: 18px;
    font-weight: 200;
    color: #f5f6fabc;
}

.payment-gateway-logo{
    width: 100px;
}

.payment-bar{
    position: fixed;
    bottom: 0;
    width: 560px;
    padding: 20px 0 24px 0;
    border-top: 1px solid grey;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #121317;
    color: #f5f6fabc;
}

.btn-large{
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: 0;
    border-radius: 8px;
    box-shadow: 5px 6px #88888838;
    transition: 0.25s ease-in-out;
}

.payment-title{
    font-weight: bold;
    font-size: 24px;
    color: white;
}

.payment-total{
    font-size: 20px;
}

.btn-large:hover{
    cursor: pointer;
    box-shadow: 5px 10px #8888887d;
}

.qr-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.qr-card{
    width: 100%;
    border-radius: 8px;
    border: 3px solid transparent;
    background-color: #202125;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px;
    transition: 0.25s ease-in-out;
}

.history-card{
    width: 100%;
    border-radius: 8px;
    border: 3px solid transparent;
    background-color: #202125;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px;
    transition: 0.25s ease-in-out;
}

.qr{
    width: 100px !important;
    padding: 8px;
    background-color: white;
    border-radius: 8px;
}

.popup-qr{
    position: fixed;
    top: 0;
    z-index: 9;
    width: calc(600px - 96px);
    height: 100%;
    background-color: #121317;
    padding: 0 48px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.popup-qr.active{
    display: flex;
}

.popup-qr .qr-big{
    padding: 8px !important;
    background-color: white;
    border-radius: 8px;
}

.text-red{
    color: #f04649 !important;
}

.input-hint{
    color: grey;
    animation-delay: 0.3s;
}

.form-input-group{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input-group label{
    font-size: 20px;
    font-weight: bold;
    color: #f5f6fabc;
}

.form-input-group input{
    font-size: 20px;
    padding: 8px;
    transition: 0.25s ease-in-out;
    border: 1px solid #767676;
    background-color: #202125;
    color: #f5f6fabc;
}

.form-input-group input:hover{
    border: 1px solid black;
}

.form-input-group input:focus{
    border-radius: 8px;
    color: white;
}

.req-star{
    color: rgb(255, 131, 131);
}

.form-button-row{
    width: calc(100% - 32px);
    display: flex;
    justify-content: center;
    gap: 10%;
    padding: 16px;
}

.reset-button{
    aspect-ratio: auto !important;
    background-color: #d59347;
    color: #f5f6fabc;
    border: 0;
    padding: 8px;
    width: 200px;
    font-size: 20px;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: 0.25s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.reset-button:hover{
    background-color: #e8a151;
    color: white;
    border: 2px solid white;
}

.submit-button{
    aspect-ratio: none !important;
    background-color: black;
    color: white;
    border: 2px solid #e8a151;
    width: 200px;
    border-radius: 4px;
    padding: 8px;
    font-size: 20px;
    transition: 0.25s ease-in-out;
}

.submit-button:hover{
    color: #e8a151;
    background-color: transparent;
}

.header-logo{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-logo img{
    width: 180px;
    filter: drop-shadow(4px 4px 4px rgba(0,0,0,0.8));
}

@keyframes shake {
    0% { transform: translateX(-5px); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(-5px); }
}

.input-hint.animated ,.text-red.animated {
    animation: shake 0.3s ease-in-out;
}

.password-toggle{
    border-radius: 2px;
    border: 1px solid black;
    transition: 0.25s ease-in-out;
    box-shadow: 4px 6px #88888838;
    font-size: 16px;
    padding: 4px;
}

.password-toggle:hover{
    box-shadow: 3px 4px #8888887d;
}

.password-toggle:active{
    color: #e8a151;
    background-color: white;
}

.w-100{
    width: 100%;
}

.justify-content-center{
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
}

.profile-photo-view{
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 50%;
    border-radius: 1000px;
}

.profile-edit-button{
    position: absolute;
    border: 5px solid #121317;
    border-radius: 1000px;
    color: #f5f6fabc;
    background-color: #d59347;
    aspect-ratio: 1/1;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: 0.25s ease-in-out;
    transform: translateX(180%) translateY(180%);
}

.mini-logo{
    width: 32px;
}

.profile-edit-button:hover{
    background-color: #e8a151;
    color: #ffffff;
}

@media screen and (max-width: 600px) {

    ::-webkit-scrollbar-track {
        background: white; /* Track background */
    }
    
    /* This targets the scrollbar handle */
    ::-webkit-scrollbar-thumb {
        border-radius: 6px;
        background: #161719; /* Handle background */
    }
    
    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    /* Setting the width of the scrollbar */
    ::-webkit-scrollbar {
        width: 6px; /* Width of the scrollbar */
    }

    body{
        overflow-x: hidden;
    }

    .profile-edit-button{
        transform: translateX(135%) translateY(135%);
    }

    .mobile-page{
        width: calc(100vw - 48px);
        padding: 20px 24px 8px 24px;
    }

    .payment-bar{
        width: calc(100vw - 48px);
        padding: 20px 0 24px 0;
    }

    .footer{
        width: calc(100vw - 48px);
        height: 100px;
        padding: 24px 24px 0 24px;
    }

    .nav-bar{
        width: calc(100vw  - 64px - 48px);
        padding: 0 32px;
    }

    .dashboard-rules-grid{
        display: flex;
        flex-wrap: wrap;
        column-gap: 3%;
        row-gap: 10px;
        justify-content: center;
    }
    .rules-card{
        width: 100%;
        aspect-ratio: auto;
    }

    .dashboard-package-group,
    .active-package-group{
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .popup-qr{
        width: calc(100% - 96px);
    }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}