/*---------------------------------------general styles----------------------*/
/*
 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');



/* * =========================================================================================================== * */
/* *  BASE STYLING  * */
/* * =========================================================================================================== * */
* {
    box-sizing: border-box;
}

/* TODO: to check which elemt that overflows on x axis
[...document.querySelectorAll('*')].filter(el => el.offsetWidth > window.innerWidth)
*/
html,
body,
main {

    scroll-behavior: auto;
    font-family: 'Roboto', sans-serif;
    background: white;
    width: 100%;
    min-height: 100vh;
    overflow-x: clip;
    /*or clip*/
}


body.is-visible {
    visibility: visible !important;
    /*used with js for a smoother refresh*/
    opacity: 1 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}


/* * =========================================================================================================== * */
/* *  CUSTOM UTLITY CLASSES * */
/* * =========================================================================================================== * */
:root {
    /* Light shade for background/borders */
    --WarehouseGold: rgb(230, 164, 0);
    --WarehouseBronze: #A6592D;
    --WarehouseOrange: #BF3604;
    --WarehouseBlue: #010166;
}


.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, rgba(87, 199, 133, 1) 50%, rgba(0, 158, 5, 1) 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}


.bg-pattern {
    background-image: repeating-radial-gradient(#0c0a0a 80%, #2f312f 90%, #3f4549 90%);
    background-size: 65px 65px;
}

.bg-error {
    background-color: #f8d7da;
    /* Light red */
    border: 1px solid #f5c6cb;
    /* Slightly darker red border */
    color: #721c24;
    /* Dark red text */
    padding: 10px;
}

.text-gradient-primary {
    background: linear-gradient(90deg, #0d6efd, #20c997);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}


.text-warehouse-blue {
    color: var(--WarehouseBlue) !important;
}

.bg-warehouse-blue {
    background-color: var(--WarehouseBlue) !important;
}

.text-gradient {
    background: linear-gradient(90deg, rgba(0, 116, 255, 1) 20%, rgba(247, 20, 20, 1) 83%);
    background-clip: text;
    color: transparent;
}

/*used for navbar and footer*/
.bg-dark-blue {
    background-color: rgba(7, 15, 41, 0.3) !important;
}


.animation-spin {
    animation: spin-to-right 1s ease-in-out infinite;
}

@keyframes spin-to-right {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.shadow-hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shadow-hover:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);

}



.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);

}

.transition-all {
    transition: all 0.3s ease;
}


.hover-shadow:hover {
    transform: translateY(-6px);
    -webkit-box-shadow: 13px 6px 36px -8px rgba(105, 105, 105, 0.75);
    -moz-box-shadow: 13px 6px 36px -8px rgba(105, 105, 105, 0.75);
    box-shadow: 13px 6px 36px -8px rgba(105, 105, 105, 0.75);

}

.cursor-pointer {
    cursor: pointer !important;
}

.ghost-button {
    all: unset;
    /* Or selectively unset styles: */
    /* appearance: none;
     background: none;
     border: none;
     padding: 0;
     margin: 0;
     font: inherit;
     color: inherit;
     outline: none;
     text-align: inherit;
     line-height: inherit; */

    cursor: pointer;
    display: inline-flex;
    /* ensures SVGs or icons align properly */
    align-items: center;
    justify-content: center;
    /* optional: prevent accidental double clicks */
    -webkit-user-select: none;
    user-select: none;
}


.text-justify {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
}


.shrink-text {
    display: inline-block;
    word-break: keep-all;
    white-space: nowrap;
    font-size: clamp(10px, 10vw, 15px);
}

/* * =========================================================================================================== * */
/* * WHATSAPP WIDGET (FAB) * */
/* * =========================================================================================================== * */
/* Base Styles */
#whatsapp-chat-widget {
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --whatsapp-light: #DCF8C6;
    --chat-bg: #f7ceb3;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Chat Card */
#whatsapp-chat-widget .whatsapp-card {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1050;
    background: white;
    border: none;
}

#whatsapp-chat-widget .whatsapp-card.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Header */
#whatsapp-chat-widget .card-header {
    background: var(--whatsapp-dark);
    padding: 15px;
    color: white;
    position: relative;
}

#whatsapp-chat-widget .agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#whatsapp-chat-widget .agent-avatar {
    position: relative;
    width: 50px;
    height: 50px;
}

#whatsapp-chat-widget .agent-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

#whatsapp-chat-widget .company-logo {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid white;
    background: white;
}

#whatsapp-chat-widget .online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid var(--whatsapp-dark);
}

#whatsapp-chat-widget .agent-details {
    flex: 1;
}

#whatsapp-chat-widget .agent-details h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#whatsapp-chat-widget .agent-details .availability {
    margin: 3px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

#whatsapp-chat-widget .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 5px;
}

#whatsapp-chat-widget .close-btn:hover {
    opacity: 1;
}


#whatsapp-chat-widget .chat-message {
    background: white;
    padding: 12px 16px;
    border-radius: 0px 8px 8px 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 80%;
}

#whatsapp-chat-widget .chat-message p {
    margin: 0;
    color: #333;
    line-height: 1.4;
}

#whatsapp-chat-widget .message-time {
    display: block;
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

/* Input Area */
#whatsapp-chat-widget .input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

#whatsapp-chat-widget .form-control {
    flex: 1;
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.2s;
}

#whatsapp-chat-widget .form-control:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
    outline: none;
}

#whatsapp-chat-widget .btn-send {
    background: var(--whatsapp-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

#whatsapp-chat-widget .btn-send:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* Floating Button */
#whatsapp-chat-widget .whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    z-index: 1040;
    transition: all 0.3s ease;
    padding: 0;
}

#whatsapp-chat-widget .whatsapp-fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

#whatsapp-chat-widget .fab-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

#whatsapp-chat-widget .notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #FF3B30;
    border-radius: 50%;
    border: 2px solid var(--whatsapp-green);
}

#whatsapp-chat-widget .pulse-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--whatsapp-green);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Animation when card appears */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 576px) {
    #whatsapp-chat-widget .whatsapp-card {
        right: 10px;
        bottom: 80px;
        width: calc(100vw - 20px);
    }

    #whatsapp-chat-widget .whatsapp-fab {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    #whatsapp-chat-widget .fab-icon {
        width: 25px;
        height: 25px;
    }
}

/* * =========================================================================================================== * */
/* *  NAVBAR  * */
/* * =========================================================================================================== * */
.navbar-top {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-bottom {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-bottom .dropdown-item:hover {
    color: rgb(0, 0, 0)
}

.nav-brand-logo {
    height: 72px;
    transition: height 0.3s ease;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.dropdown-notification {
    width: 350px !important;

}

.dropdown-notification .dropdown-item {
    padding: 0.75rem 1rem;
    background: white;
    white-space: normal;
}

.dropdown-item.active:hover {
    color: white;
}



@media (max-width: 991.98px) {
    .nav-brand-logo {
        height: 50px;
    }

    .navbar-nav {
        padding-top: 1rem;
    }

    .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }


}

@media (min-width: 992px) {
    .navbar-bottom {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

.search-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.minimalist-searchbar {
    max-width: 500px;
    border: none;
    border-bottom: 1.5px solid #000000;
    padding: 8px 4px;
    font-size: 16px;
    outline: none;
    background-color: transparent;
    flex: 1
}

.search-button {
    margin-top: 8px;
    padding: 6px 12px;
    border: none;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 14px;
}

a.glow-link {
    position: relative;
    color: white !important;
    text-decoration: none;
}

a.glow-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.25s ease, left 0.25s ease;
}

a.glow-link:hover::after,
a.glow-link:focus-visible::after,
.glow-link.active:after {
    width: 100%;
    left: 0;
}

.blinking-dot {
    animation: blinking 1.5s infinite ease;
}

@keyframes blinking {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/* * =========================================================================================================== * */
/** CARDS **/
/* * =========================================================================================================== * */

.card-hover-effect {
    border: 2px dashed grey;
    transition: border 0.3s ease;
}

.card-hover-effect:hover {
    border: 2px solid var(--WarehouseBlue);

}


.card-image-hover img {
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-image-hover:hover img {
    transform: scale(1.05);
}


.brand-logo:hover img {
    filter: grayscale(0%) opacity(1) !important;
    transform: scale(1.1);

}