﻿/* === Base Styles === */
@import url(base/fonts.css);
@import url(base/variables.css);
@import url(base/text.css);
@import url(base/colors.css);

/* === Layout Styles === */
@import url(layout/margins.css);
@import url(layout/padding.css);
@import url(layout/cart.css);
@import url(layout/fastBox.css);

/* === Components === */
@import url("components/buttons.css");
@import url("components/cards.css");
@import url("components/tables.css");


body {
    background-color: var(--page-bg);
    color: var(--page-fg);
}

.siteBackGround {
    background-image: url(/Images/gradient_bg2.webp);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
}

.nav-link-left {
    padding: 2px 4px;
    color: var(--link-fg);
    background-color: var(--panel-bg);
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    border: 1px solid var(--panel-border);
    border-radius: .25rem;
}

    .nav-link-left:hover {
        color: var(--link-fg-hover);
    }

.dropdown-menu {
    min-width: 7rem;
    background-color: var(--dropdown-bg);
    color: var(--dropdown-fg);
    border: 1px solid var(--dropdown-border);
}

.remark {
    color: var(--muted-fg);
    font-size: small;
}

.content-desktop {
    display: block;
}

.content-mobile {
    display: none;
}

.show-Div {
    display: block !important;
}

.hide-Div {
    display: none !important;
}

#myLogo {
    width: 35%;
}

@media (min-width: 768px) {
    .navbar .navbar-collapse {
        display: block !important;
    }
}

@media screen and (max-width: 768px) {

    .content-desktop {
        display: none;
    }

    .content-mobile {
        display: block;
    }

    #myLogo {
        width: 35%;
    }
}

.use-hand {
    cursor: pointer;
}

/* --------------------- Check Boxes ------------------------------- */

input[type=checkbox] {
    /* Double-sized Checkboxes */
    -ms-transform: scale(1.75); /* IE */
    -moz-transform: scale(1.75); /* FF */
    -webkit-transform: scale(1.75); /* Safari and Chrome */
    -o-transform: scale(1.75); /* Opera */
    padding: 5px;
}

    input[type=checkbox]:hover {
        cursor: pointer !important;
    }


.container-fast-chk {
    padding: 0.3rem 0.2rem 0.3rem 0.2rem;
    margin: 0.5rem 0.2rem 0.5rem 0.2rem;
    border-radius: 0.5rem;
    background-color: var(--primary-color2) !important;
}

    .container-fast-chk:hover {
        background-color: var(--secondary-color1) !important;
        cursor: pointer;
    }

/* --------------------- End Check Boxes ------------------------------- */

/* Items */
.item-fast {
    color: var(--page-fg);
    background-color: var(--panel-bg);
}

    .item-fast:hover {
        color: var(--menu-active-fg);
        background-color: var(--warning-orange);
        border-color: var(--warning-orange);
        text-decoration: none;
        border-radius: 1.5rem;
    }

    .item-fast:focus, .item-fast.focus {
        box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.5);
    }

/* Inputs / selects */
.form-control,
.form-select {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.2rem 0.2rem;
    color: var(--input-fg);
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    background-clip: padding-box;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control::placeholder {
        color: var(--input-placeholder);
    }

textarea.form-control {
    height: auto !important;
}
/*--------------------------------*/
/* Layout headers/footers if you keep them */
.bg-Layout-Header {
    background-color: var(--panel-bg) !important;
}

.bg-Layout-Footer {
    background-color: var(--panel-bg) !important;
}

.bg-top-nav {
    background-color: var(--primary-color1) !important;
}
/* --------------------- End Main Header ------------------------------- */

a:not([href]) {
    text-decoration: none;
}

/* Selected row utility */
.selected-row-blue {
    color: #000 !important;
    background-color: #7d90ff !important; /* or map to a variable if you prefer */
}

.select2-container {
    width: 100% !important;
}

.form-group {
    margin-bottom: 0.5rem;
}

/*Date Time Picker*/
.ui-datepicker, .ui-datepicker-header.ui-corner-all {
    border-radius: 0px !important;
}

/*--------------------------------------------------------------
# Theme Toggle & Icon Buttons
--------------------------------------------------------------*/
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--menu-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
}

    .theme-toggle:hover {
        background: var(--menu-hover-bg);
    }

/* Hide icons depending on theme */
html[data-theme="light"] .moon-icon {
    display: inline;
}

html[data-theme="light"] .sun-icon {
    display: none;
}

html[data-theme="dark"] .moon-icon {
    display: none;
}

html[data-theme="dark"] .sun-icon {
    display: inline;
}
/*--------------------------------------------------------------*/
/*------------------------------------------------------------------------------------------------------*/
/* Selection (the visible box) */
html[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single,
html[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple {
    background-color: var(--input-bg);
    color: var(--input-fg);
    border-color: var(--input-border);
}

/* Placeholder/text */
html[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__rendered,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__rendered {
    color: var(--input-fg);
}

html[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__placeholder,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__placeholder {
    color: var(--input-placeholder);
}

/* Dropdown panel */
html[data-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
    background-color: var(--dropdown-bg);
    color: var(--dropdown-fg);
    border-color: var(--dropdown-border);
}

/* Search input inside dropdown */
html[data-theme="dark"] .select2-container--bootstrap-5 .select2-search__field,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-search__field {
    background-color: var(--input-bg);
    color: var(--input-fg);
    border-color: var(--input-border);
}

/* Options */
html[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option[aria-selected="true"],
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option[aria-selected="true"] {
    background-color: var(--menu-active-bg);
    color: var(--menu-active-fg);
}

html[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--menu-hover-bg);
    color: var(--menu-fg);
}

/* Icons (arrow/×) inherit theme color */
html[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__clear,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__clear,
html[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__arrow b,
body[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection__arrow b {
    color: var(--input-fg);
}

.form-select {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.2rem 0.2rem;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Back to Top Button */
/* ---------------------------------------- */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #007bff; /* Blue color (can adjust) */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
}

    /* When active (visible) */
    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hover effect */
    .back-to-top:hover {
        background: #0056b3;
        transform: translateY(-5px);
    }

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Footer Style */
/* ---------------------------------------- */

footer {
    background-color: #fff;
    border-top: 1px solid #ccc;
}

    footer img {
        display: inline-block;
        text-align: center;
    }

    footer .social-icons a {
        color: #555;
        font-size: 1.2rem;
        margin: 0 0.5rem;
        transition: color 0.3s ease;
    }

        footer .social-icons a:hover {
            color: #007bff;
        }

    footer .language {
        color: #1e3a8a;
        font-weight: bold;
    }

    footer .payments img {
        width: 40px;
        margin: 0 0.3rem;
    }

    footer .copyright {
        color: #555;
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    footer .powered {
        display: flex;
        justify-content: center;
        align-items: center;
        color: #444;
        font-size: 0.9rem;
    }

        footer .powered img {
            width: 90px;
            margin-left: 0.5rem;
        }

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    transition: background 0.3s ease;
    z-index: 1000;
}

    .whatsapp-btn:hover {
        background-color: #20b358;
    }


/*----------- Category Style  -----------*/
.home-page-image {
    width: 100%;
    border-radius: 20px;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    /* gap: 15px; */
}

.category-card {
    /* width: 150px; */
    text-align: center;
    cursor: pointer;
}

    .category-card img {
        width: 100%;
        border-radius: 10px;
        padding: 15px;
        transition: transform 0.3s;
    }

        .category-card img:hover {
            transform: scale(1.05);
        }
/*----------- Category Style  -----------*/

/*----------- Cart Style  -----------*/
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    overflow-y: auto;
    transition: right 0.4s ease;
    z-index: 1049;
    border-left: 1px solid #ddd;
}

/* Desktop: show as small panel */
@media (min-width: 992px) {
    .cart-sidebar {
        width: 30%; /* ~col-3 */
    }
}

/* Mobile: full width */
@media (max-width: 991px) {
    .cart-sidebar {
        width: 100%; /* col-12 */
    }
}

/* When open */
.cart-sidebar.open {
    right: 0;
}

.quantity-control .btn {
    width: 32px;
    padding: 0;
}

.quantity-control .form-control {
    height: 32px;
    padding: 0;
}

.modal-content {
    background-color: var(--panel-bg);
}
/*----------- Cart Style  ----------*/

/*----------- Circle Badges  ----------*/
.circle-badge-small {
    width: 26px;
    height: 26px;
    background-color: #FF3B30;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    margin-inline-start: auto !important;
    margin-inline-end: 4px; /* small gap from edge */
}

.circle-badge-large {
    width: 35px;
    height: 35px;
    background-color: #FF3B30;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    margin-inline-start: auto !important;
    margin-inline-end: 4px; /* small gap from edge */
}

.dashboard-icon {
    width: 100px;
    height: 100px;
    background: #e7f1ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
    margin: 0 auto 15px auto;
}

    .dashboard-icon i {
        color: #007bff; /* override per card inline */
    }

.dashboard-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    background-color: #FF3B30;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    background-color: #FF3B30;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}/*----------- Circle Badges  ----------*/

/*----------- Filters and statusBar  ----------*/
.status-filter-wrapper {
    position: relative;
    padding-bottom: 8px;
}

#statusActiveBar {
    position: absolute;
    bottom: 0;
    height: 4px;
    background-color: var(--primary-color1);
    border-radius: 4px;
    width: 0;
    left: 0;
    transition: all 0.25s ease;
    z-index: 10;
}

#groupButtonsFilters {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.filter-btn {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .filter-btn.active {
        border: 2px dashed #646464 !important;
        filter: brightness(1.1);
        box-shadow: 0 0 6px rgba(0,0,0,0.25);
    }

/* ---------- Badge Animation ---------- */
.badge-animate {
    animation: badgePop 0.4s ease-in-out;
}

@keyframes badgePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}
