*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-optical-sizing: auto;
}
body {
    font-family: "Host Grotesk", serif !important;
}

.icon-btn{
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px;
    border-radius: var(--curve-sm);
    &:hover{
        background-color: var(--gray);
    }
}
:root{
    --gray: #e9ecef;
    --sidebar-bg: #f8f9fa;
    --whitesmoke: #dbdbdb;
    --sj-cyan:rgb(74, 165, 165);
    --offwhite: #fafafa;
    --curve:6px;
    --curve-sm:4px;
    --pd: 16px;
    --pd-sm: 8px;
    --pd-xs:4px;
    --pd-md: 12px;
}
#sj-hover-info{
    display: none;
    width: 15%;
    min-height: 10vh;
    border: 1px solid #ccc;
    border-radius: var(--curve-sm);
    padding: var(--pd-sm);
    position: absolute;
    background-color: var(--offwhite);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    z-index: 1059;
}
p{
    margin-bottom: 0 !important;
}
.p-text{
    font-size: 1.0rem;
    font-weight: 400;
    line-height: 1.5;
}
.sj-container{
    width: 100%;
    height: 100vh;
}
.page-title{
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.h-90{
    height: 90%;
}
.h-80{
    height: 80%;
}
.border-card{       
    padding: 8px;
    flex:1;
    border: 1px solid #ccc;
    display: flex;
    background-color: white;
    flex-direction: column;
    border-radius: var(--curve);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
.panel-card-header{
    padding: var(--pd-sm);
    width: 100%;
    border-top-left-radius: var(--curve);
    border-top-right-radius: var(--curve);
    background-color: var(--gray);
    text-transform: capitalize;
}


.panel-card-body{
    padding: var(--pd-xs);
    margin: 6px 0;
    width: 100%;
}
.sidebar-tab-btn-container{
    display: grid;
    width: 100%;
    gap: var(--pd-sm);
    grid-template-columns: 20% 79%;
}
.right-card{
    border-right: 4px solid var(--sj-cyan) !important;
}
.left-card{
    border-left: 4px solid var(--sj-cyan) !important;
}
.top-card{
    border-top: 4px solid var(--sj-cyan) !important;
}
.bottom-card{
    border-bottom: 4px solid var(--sj-cyan) !important;
}

.text-card{
    padding: var(--pd-xs);
    width: 100%;
    height: fit-content;
    margin:0;
    border: 1px solid #ccc;
    border-radius: var(--curve);
    border-right: 4px solid var(--sj-cyan);
    background-color: white;
    display: flex;
    justify-content: space-between;
    font-size: small;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
/*update every where TODO*/
.tab-btn-container{
    display: flex;
    height: fit-content;
    min-height: 300px;
    overflow-y: auto;
    width: 100%;
    border-radius: 6px;
    gap:var(--pd-sm);
    padding: var(--pd-sm);
    background-color: var(--gray);
}
.tab-btn-container-h{
    display: flex;
    height: fit-content;
    overflow-y: auto;
    width: 100%;
    gap:4px;
    padding: 2px;
    border-radius: var(--curve-sm);
    background-color: var(--gray);
}
.panel-card{
    flex:1;
    border: 1px solid var(--gray);
    border-radius: var(--curve);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
.tab-btn{
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 6px;
    background-color: var(--gray);
    border: none;
    border-radius: var(--curve-sm);
    cursor: pointer;
}
.tab-btn:hover ,.tab-btn-active{
    background-color: var(--offwhite);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.search-dropdown{
    display: none;
    z-index: 1059;
    position: fixed;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--gray);
    padding: 8px;
    border-radius: var(--curve-sm);
}
.dropdown-items{
    width: 100%;
    text-align: start;
    background-color: var(--gray);
    display: block;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    background: none;
    border: none;
    outline: none;
    margin-bottom: 4px;
    box-shadow: none;
}
.dropdown-items:hover, .dropdown-items-active{
    background-color: var(--offwhite);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
.link{
    cursor: pointer;
    border: none;
    background-color: inherit;
    &:hover{
        color: var(--sj-cyan) !important;
    }
}

.grid-2{
    width: 100%;
    grid-auto-rows: 89vh;
    display: grid;
    grid-template-columns: 50% 49%;
    gap:1%;
}
.widget-card{
    width: 100%;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    border-radius: var(--curve);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;

}

.widget-card-header{
    padding: var(--pd-sm);
    width: 100%;
    border-bottom: 1px solid #b3b3b3;
}
.widget-card-body{
    padding: var(--pd-sm);
    width: 100%;
    height: 100%;
 }


.outline-btn{
    font-size: small;
    border-radius: var(--curve-sm);
    appearance: none;
    background: none;
    border:1px solid  var(--sj-cyan);
    padding: var(--pd-xs);
    text-transform: capitalize;
    font-family: inherit;
    color: var(--sj-cyan);
    &:hover{
        background-color: var(--sj-cyan);
        color: white;
    }
}
.outline-danger-btn{
    font-size: small !important;
    border-radius: var(--curve-sm) !important;
    appearance: none !important;
    background: none !important;
    border:1px solid  #FF3F33 !important;
    padding: var(--pd-xs) !important;
    text-transform: capitalize !important;
    font-family: inherit !important;
    color: #E55050 !important;
    &:hover{
        background-color: #E55050 !important;
        color: white !important;
    }
}
.capsule-btn-container{
    display: flex;
    gap:2px;
    background-color: var(--gray);
    border-radius: var(--curve);
}
.capsule-btn{
    text-decoration: none;
    color: inherit;
    width: 100%;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    border: none;
    background: none;
    padding: var(--pd-xs);
    text-transform: capitalize;
}

.capsule-btn:hover, .capsule-btn-active{
    background-color: var(--sj-cyan);
    transition: all 100ms;
    color: white;
}
.capsule-btn-start{
    border-top-left-radius: var(--curve);
    border-bottom-left-radius: var(--curve);
}
.capsule-btn-end{
    border-top-right-radius: var(--curve);
    border-bottom-right-radius: var(--curve);
}

.w-fit{
    width: fit-content;
}
.h-fit{
    height: fit-content;
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px; /* Reduced width */
    height: 20px; /* Reduced height */
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 20px; /* Adjusted border-radius */
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; /* Reduced height */
    width: 16px; /* Reduced width */
    left: 2px; /* Adjusted position */
    bottom: 2px; /* Adjusted position */
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%; /* Adjusted border-radius */
}

input:checked + .slider {
    background-color: var(--sj-cyan);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--sj-cyan);
}

input:checked + .slider:before {
    -webkit-transform: translateX(20px); /* Adjusted transform */
    -ms-transform: translateX(20px); /* Adjusted transform */
    transform: translateX(20px); /* Adjusted transform */
}

/* Hyperpure-Style Enhancements */
#top-bar {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.location-selector {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.location-selector:hover {
    background-color: #f8f9fa;
}

/* Login/Signup Button (SailJump style) */
.btn-primary.rounded-pill {
    background: linear-gradient(135deg, var(--sj-cyan), #5fb3b3);
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 165, 165, 0.3);
}

.btn-primary.rounded-pill:hover {
    background: linear-gradient(135deg, #409999, var(--sj-cyan));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 165, 165, 0.4);
}

/* Clean Search Bar */
.search-bar input {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    width: 300px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--sj-cyan);
    box-shadow: 0 0 0 3px rgba(74, 165, 165, 0.1);
}

/* Hide sidebar and mini-cart for public users */
.public-mode #sidebar-wrapper,
.public-mode #mini-cart {
    display: none !important;
}

/* Login Confirmation Modal Styling */
#loginConfirmModal .modal-content {
    backdrop-filter: blur(10px);
}

#loginConfirmModal .btn {
    transition: all 0.3s ease;
}

#loginConfirmModal .btn:hover {
    transform: translateY(-1px);
}

#proceedToLoginBtn {
    background: linear-gradient(135deg, var(--sj-cyan), #5fb3b3) !important;
    border: none !important;
}

#proceedToLoginBtn:hover {
    background: linear-gradient(135deg, #409999, var(--sj-cyan)) !important;
    box-shadow: 0 4px 15px rgba(74, 165, 165, 0.3);
}

/* Adjust content width for public users */
.public-mode #ecom-container {
    width: 100% !important;
    margin-left: 0 !important;
}