/*Background Colors*/
.bg-gradient-custom {
    position: relative;
    z-index: 0;
    background: transparent;
}

.bg-gradient-custom::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--ternary-color) 30%, var(--secondary-color) 55%, var(--primary-color) 90%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    pointer-events: none;
}

.sidebar-gradient {
    position: relative;
    z-index: 0;
    background: transparent;
}
.sidebar-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--ternary-color) 30%, var(--secondary-color) 55%, var(--primary-color) 90%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.9;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .sidebar-gradient::before {
        opacity: 0.2;
    }
}

    .bg-primary{
        background:var(--primary-color)
    }

    .bg-primary-light {
        background: color-mix(in srgb, var(--primary-color) 20%, white);
    }

    .bg-primary-dark {
        background: color-mix(in srgb, var(--primary-color) 40%, white);
    }

    .bg-secondary{
        background:var(--secondary-color)
    }

    .bg-ternary{
        background:var(--ternary-color)
    }

    @layer utilities {
        .bg-waterdrop-gradient {
            background: radial-gradient(circle at 30% 30%,
                rgba(255, 255, 255, 0.4) 0%,
                var(--ternary-color) 30%,
                var(--secondary-color) 60%,
                var(--primary-color) 100%);
            box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.4),
                        inset 0 -2px 6px rgba(0, 0, 0, 0.2);
        }
    }

    .bg-gradient-subnav {
        background: linear-gradient(135deg, var(--ternary-color) 30%, var(--secondary-color) 55%, var(--primary-color) 90%);
    }

    .primary{
        background:var(--primary-color)
    }
    .text-primary{
        color:var(--primary-color)
    }

    .text-secondary{
        color:var(--secondary-color)
    }

    .text-ternary{
        color:var(--ternary-color)
    }

    .border-primary{
        color:var(--primary-color) !important
    }

    .border-secondary{
        color:var(--secondary-color)
    }

    .hover\:bg-primary:hover {
        background-color: var(--primary-color);
        }

    .hover\:text-primary:hover {
        color: var(--primary-color);
    }

    .hover\:bg-secondary:hover {
    background-color: var(--secondary-color);
    }

    .hover\:text-secondary:hover {
        color: var(--primary-color);
    }

    .hover\:bg-ternary:hover {
        background-color: var(--ternary-color);
        }

    .hover\:text-ternary:hover {
            color: var(--ternary-color);
        }

    input.form-checkbox:checked {
        background-color: var(--primary-color) !important;
        border-color: var(--secondary-color) !important;
        box-shadow: 0 0 0 4px var(--primary-color) !important;
    }

    input.form-checkbox:checked:after {
        color: var(--secondary-color) !important;
        font-size: 1.2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .ring-primary {
        outline: none;
        box-shadow: 0 0 0 2px var(--primary-color);
        border-color: var(--primary-color);
        transition: all 0.3s ease-in-out;
    }

    /*End of Background*/

    #clock {
        font-size: 15px;
        width: 900px;

        text-align: center;

    }

    #date {
        font-size: 15px;
        /* margin-top: 10px; */

        text-align: center;
    }

    /* Loader css */
    .loader-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(13, 13, 09, 0.72);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .loader-text {
        margin-top: 20px;
        font-size: 1.5rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

        .ip {
        width: 6em;
        height: 3em;
    }
    .ip__track {
        stroke: hsl(var(--hue),90%,90%);
        transition: stroke var(--trans-dur);
    }
    .ip__worm1,
    .ip__worm2 {
        animation: worm1 3s linear infinite;
    }
    .ip__worm2 {
        animation-name: worm2;
    }

    /* Dark theme */
    @media (prefers-color-scheme: dark) {
        :root {
            --bg: hsl(var(--hue),90%,5%);
            --fg: hsl(var(--hue),90%,95%);
        }
        .ip__track {
            stroke: hsl(var(--hue),90%,15%);
        }
    }

/* Animation */
@keyframes worm1 {
    from {
        stroke-dashoffset: 0;
    }
    50% {
        animation-timing-function: steps(1);
        stroke-dashoffset: -358;
    }
    50.01% {
        animation-timing-function: linear;
        stroke-dashoffset: 358;
    }
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes worm2 {
    from {
        stroke-dashoffset: 358;
    }
    50% {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -358;
    }
}
/* End Loader css */

@keyframes bounce {
    0%, 100% {
      transform: translateY(-25%);
      animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
      transform: none;
      animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
  }

  .animate-bounce-once:hover {
    animation: bounce 1s;
  }

  /* Tablets */
  @media screen and (min-width: 768px) and (max-width: 820px) {
    aside {
      width: 14rem !important;
    }
  }

  @media screen and (min-width: 1024px) and (max-width: 1180px) {
    aside {
      width: 16rem !important;
    }
  }

  @media screen and (min-width: 1180px) and (max-width: 1366px) {
    aside {
      width: 20rem !important;
    }
  }

    /*Landing Page Animations*/
    @keyframes spinSlow {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    .animate-spin-slow {
        animation: spinSlow 3s linear infinite;
    }

    @keyframes fadeInUp {
        0% { opacity: 0; transform: translateY(10px); }
        100% { opacity: 1; transform: translateY(0); }
    }
    .fade-in-up {
        animation: fadeInUp 1s ease-out forwards;
    }

    @keyframes bounceLeftToRight {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(10px); }
    }

    .animate-bounce-lr {
        animation: bounceLeftToRight 0.8s infinite ease-in-out;
    }

    /*Welcome page styles*/
    .gradient-text {
        background: linear-gradient(45deg, #000957, #344CB7, #FFFFFF);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .neon-shadow {
        box-shadow: 0 0 20px rgba(62, 117, 205, 0.4);
    }

    @keyframes gradient-wave {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    .gradient-bg {
        background: linear-gradient(-45deg, #A0A9D2, #D9D9D9, #E6D184);
        background-size: 400% 400%;
        animation: gradient-wave 12s ease infinite;
    }

      .gradient-bg {
        background: linear-gradient(-45deg, #A0A9D2, #D9D9D9, #E6D184);
        background-size: 400% 400%;
        animation: gradient-wave 12s ease infinite;
    }

    .glass-card {
        backdrop-filter: blur(10px);
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.9);
    }

    @media (min-width: 640px) {
        .glass-card {
            background: rgba(255, 255, 255, 0.9);
        }
    }

    @media (min-width: 768px) {
        .glass-card {
            background: rgba(255, 255, 255, 0.9);
        }
    }

    @media (min-width: 1024px) {
        .glass-card {
            background: rgba(255, 255, 255, 0.9);
        }
    }

    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    .animate-spin-slow {
        animation: spin 3s linear infinite;
    }

    .gradient-text {
        background: linear-gradient(45deg, #000957, #344CB7, #FFFFFF);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    @keyframes fade-in {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .animate-fade-in {
        animation: fade-in 0.3s ease-out;
    }

    @keyframes pulse-once {
        0% { transform: scale(1); }
        50% { transform: scale(1.02); }
        100% { transform: scale(1); }
    }

    .animate-pulse-once {
        animation: pulse-once 1.5s ease-in-out;
    }

    /*Styles for progress bar*/
    @keyframes jumpOutIn {
        0% { transform: scale(1); }
        40% { transform: scale(1.5); }
        100% { transform: scale(1); }
    }

    .jump-out-in {
        animation: jumpOutIn 0.3s ease-out;
        transform-origin: center;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .animate-fade-in {
        animation: fadeIn 0.3s ease-out forwards;
    }

    /*Profile*/
    [x-cloak] { display: none !important; }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-fadeIn {
        animation: fadeIn 0.5s ease-out;
    }

    /* .bg-gradient-custom {
        background: linear-gradient(135deg, #D9D9D9 30%, #E6D184 55%, #A0A9D2 90%);
    } */

    /*Roles and Permissions buttons*/
      .arrow-button {
        position: relative;
        padding-right: 3rem;
    }

    .arrow-button::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 100%;
        background-color: var(--primary-color);
        border-top-right-radius: 9999px;
        border-bottom-right-radius: 9999px;
    }

    .arrow-button .arrow-icon {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        width: 24px;
        height: auto;
        filter: brightness(0) invert(1);
    }

      .edit-button {
        position: relative;
        padding-right: 3rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .edit-icon {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        filter: brightness(0) invert(1);
    }

    .edit-button::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 40px;
            height: 100%;
            background-color: var(--primary-color);
            border-top-right-radius: 9999px;
            border-bottom-right-radius: 9999px;
        }

    /*Media queries for roles and permissions*/
    @media (min-width: 768px) and (max-width: 1023px) {
        .no-padding-mobile {
            padding: 1rem !important;
        }

        [x-cloak] {
            display: none !important;
        }
    }

    .no-padding-mobile {
            padding: 1rem !important;
        }

    @media (min-width: 768px) and (max-width: 1440px) {
        .force-full-width-if-not-selected {
          width: 100% !important;
        }
      }

    /*Dashboard cards swipe*/
    .swiper {
        width: 100%;
        padding: 2rem 0;
      }
      .card {
        @apply bg-gradient-to-br from-white to-amber-50 p-6 rounded-3xl shadow-xl text-center font-bold text-xl transition-transform duration-300 transform hover:-translate-y-2;
      }

    /*Floating square animation*/
      @keyframes floatUp {
        0% {
            transform: translateY(0) rotate(0deg);
            opacity: 0;
        }
        100% {
            transform: translateY(-200vh) rotate(360deg);
            opacity: 1;
        }
    }

    .floating-square {
        position: absolute;
        bottom: -50px;
        left: 50%;
        width: 20px;
        height: 20px;
        background: #FFEB00;
        border-radius: 8px;
        animation: floatUp 15s linear infinite;
        pointer-events: none;
    }

    /*Logout button*/
    .filter-red {
        filter: invert(24%) sepia(93%) saturate(7485%) hue-rotate(356deg) brightness(96%) contrast(105%);
    }

    /* Blue filter (for Eye icon) */
    .filter-blue {
        filter: invert(36%) sepia(94%) saturate(1925%) hue-rotate(196deg) brightness(95%) contrast(92%);
    }

    /* Green filter (for Edit icon) */
    .filter-green {
        filter: invert(58%) sepia(89%) saturate(500%) hue-rotate(89deg) brightness(90%) contrast(85%);
    }

    /*Package cards*/
    @media (min-width: 1024px) {
        .parent-container {
          gap: 10px;
        }
    }

    @media (min-width: 1280px) and (max-width: 1440px) {
        .parent-container {
            grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        }
    }
    /*End of package cards*/

    /*Monitor*/
    @media screen and (max-width: 1366px) and (max-height: 768px) {
    .right-content-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .right-content-wrapper h2 {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .right-content-wrapper p {
        font-size: 0.875rem;
    }

    .right-content-wrapper img {
        width: 14rem;
    }
}

    /*OTP Input*/
    .otp-container {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    .otp-input {
        width: 3.5rem;
        height: 3.5rem;
        text-align: center;
        font-size: 1.5rem;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        transition: border-color 0.15s ease-in-out;
    }

    .otp-input:focus {
        outline: none;
        border-color: #4F46E5;
        box-shadow: 0 0 0 1px #4F46E5;
    }

/*Responsiveness*/
html, body {
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
}

/*Adding primary color to icons*/
.market-icon {
    -webkit-mask: url('custom/goldrate/images/icons/market1.svg') no-repeat center;
    mask: url('custom/goldarate/images/icons/market.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.exchange-icon {
    -webkit-mask: url('custom/goldarate/images/icons/exchange-usd.svg') no-repeat center;
    mask: url('custom/goldarate/images/icons/exchange-usd.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.mask-roles {
    -webkit-mask: url('/images/icons/role.svg') no-repeat center;
    mask: url('/images/icons/role.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.mask-permissions {
    -webkit-mask: url('/images/icons/key.svg') no-repeat center;
    mask: url('/images/icons/key.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/*Scroll to top*/
html {
    scroll-behavior: smooth;
}

/*Sand clock animation*/
@keyframes hourglassFlip {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}
.animate-hourglass {
    animation: hourglassFlip 2s infinite ease-in-out;
}

/*Mac book air sidebar toggle*/
@media screen and (min-width: 1279px) and (max-width: 1310px) {
    .macbook-sidebar-expanded {
        width: 16rem !important;
    }

    .macbook-sidebar-collapsed {
        width: 5rem !important;
    }

    main {
        margin-left: 0rem !important;
    }

    aside {
        width: 5rem !important;
    }
}

/* iPad Mini, Air, 11" Pro - Landscape Sidebar Toggle*/
@media screen and (min-width: 1024px) and (max-width: 1210px) {
    .macbook-sidebar-expanded {
        width: 16rem !important;
    }

    .macbook-sidebar-collapsed {
        width: 5rem !important;
    }

    main.macbook-main-expanded {
        margin-left: 0rem !important;
    }

    main.macbook-main-collapsed {
        margin-left: 0rem !important;
    }

    aside {
        width: 5rem !important;
    }
}

/*Hide dropdown arrow in Journal Entries*/
.no-dropdown-arrow {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
}
.no-dropdown-arrow::-ms-expand {
    display: none;
}

/*Duty Free Gold Rate table */
  .coin-table td input[type="text"],
  .coin-table td input[type="number"],
  .coin-table td select {
    width: 100% !important;
  }

  .bar-table td input[type="text"],
  .bar-table td input[type="number"],
  .bar-table td select {
    width: 100% !important;
  }


/* Hide spinners in Chrome, Safari, Edge, Opera */
    input[type=number]::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* Hide spinners in Firefox */
    input[type=number] {
        -moz-appearance: textfield;
    }

/*Scroller for sidebar*/
  .edge-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(100,116,139,.6) transparent;
  }
  .edge-scroll::-webkit-scrollbar { width: 8px; }
  .edge-scroll::-webkit-scrollbar-track { background: transparent; }
  .edge-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(100,116,139,.6);
    border-radius: 8px;
  }


.gradient-bg-green {
    background: linear-gradient(-45deg, #E6F7E3, #F0FDF4, #D9F5D3);
    background-size: 400% 400%;
    animation: gradient-wave 12s ease infinite;
}

/*Thin Scroller*/
.thin-scrollbar {
    scrollbar-width: thin;                  /* Firefox */
    scrollbar-color: #d5d5d6 transparent;   /* thumb / track */
}

/* Chrome, Edge, Safari */
.thin-scrollbar::-webkit-scrollbar {
    width: 4px;          /* <— reduce thickness here */
}

.thin-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
    background-color: #d5d5d6;  /* slate-400-ish */
    border-radius: 9999px;
}



