body {
    font-size: .875rem;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/*
 * Sidebar
 */

.sidebar {
    position: fixed;
    top: 0;
    /* rtl:raw:
    right: 0;
    */
    bottom: 0;
    /* rtl:remove */
    left: 0;
    z-index: 100;
    /* Behind the navbar */
    padding: 48px 0 0;
    /* Height of navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
    /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link .feather {
    margin-right: 4px;
    color: #727272;
}

.sidebar .nav-link.active {
    color: #2470dc;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
    color: inherit;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/*
 * Navbar
 */

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text color */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden; /* Prevent body scroll */
}

.container-web {
    width: 100%!important;
    max-width: 1080px!important; /* Max width for content */
    background: radial-gradient(ellipse at bottom, #134C7C 0%, #07173D 100%)!important; /* Inner container background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4)!important;
    display: flex!important;
    flex-direction: column!important;
    height: 100vh!important; /* Fallback */
    height: calc(var(--vh, 1vh) * 100)!important;
    overflow: hidden!important; /* Hide overflow of container itself */
}

.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.fixed-header {
    background-color: unset; /* Slightly lighter blue with transparency */
    backdrop-filter: blur(2px);
    padding: 20px;
    border-bottom: 1px solid #1a358a;
    position: relative;
    z-index: 10;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 60px;
}

.logo-tech {
    font-size: 18px;
    font-weight: 500;
    margin-top: 5px;
    color: #a0a0a0;
}

.logo-text {
    font-size: 28px;
    font-weight: 500;
    color: #e0e0e0;
}

.contact-info {
    font-size: 12px;
    color: #ff4d4d;
    margin-top: 5px;
    line-height: 1.3;
}

.phone-number {
    font-weight: 700;
    text-decoration: none;
    color: #1890ff;
}

.search-section {
    margin-bottom: 20px;
}

.search-bar {
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    background-color: unset;
    backdrop-filter: blur(2px);
    border: 1px solid #1a358a;
}

.keyword-search {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    background-color: transparent;
    color: #e0e0e0;
    font-size: 16px;
}

.keyword-search::placeholder {
    color: #a0a0a0;
}

.search-button {
    background-color: #1890ff;
    border: none;
    padding: 12px 18px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #40a9ff;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    background-color: rgba(10, 32, 105, 0.5);
    backdrop-filter: blur(2px);
    color: #e0e0e0;
    border: 1px solid #1a358a;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s;
}

.tab-button.active {
    background-color: #1890ff;
    color: white;
    border-color: #1890ff;
}

.tab-button:hover:not(.active) {
    background-color: #1a358a;
}

.item-list-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 20px 15px 20px;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.item-list-container::-webkit-scrollbar {
    width: 8px;
    background-color: #051650;
}

.item-list-container::-webkit-scrollbar-thumb {
    background-color: #1a358a;
    border-radius: 4px;
    border: 1px solid #051650;
}

.item-list-container::-webkit-scrollbar-thumb:hover {
    background-color: #40a9ff;
}

.list-item {
    display: flex;
    align-items: center;
    background-color: unset;
    backdrop-filter: blur(2px);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    gap: 15px;
    border: 1px solid #1a358a;
}

.item-image {
    width: 45px;
    height: 45px;
    background-color: #1a358a;
    border-radius: 4px;
    flex-shrink: 0;
    object-fit: cover;
}

.item-details {
    flex-grow: 1;
}

.item-name {
    font-size: 16px;
    font-weight: 500;
    color: #e0e0e0;
}

.item-price-stock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.item-price {
    font-size: 18px;
    font-weight: 700;
    color: #1890ff;
    margin-bottom: 5px;
}

.item-stock {
    background-color: rgba(26, 53, 138, 0.5);
    backdrop-filter: blur(2px);
    color: #e0e0e0;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.item-stock.restocking {
    color: #ff4d4d;
    background-color: rgba(110, 69, 69, 0.5);
    backdrop-filter: blur(2px);
}

.page-footer {
    text-align: center;
    padding: 5px 20px;
    background-color: #0a2069;
    backdrop-filter: blur(2px);
    border-top: 1px solid #1a358a;
    font-size: 12px;
    color: #a0a0a0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dev-link {
    color: #1890ff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

@media (max-width: 600px) {
    .fixed-header {
        padding: 15px;
    }

    .logo-text {
        font-size: 22px;
    }

    .contact-info {
        font-size: 10px;
    }

    .keyword-search {
        padding: 10px 12px;
        font-size: 14px;
    }

    .search-button {
        padding: 10px 15px;
        font-size: 16px;
    }

    .category-tabs {
        gap: 8px;
        padding-bottom: 0;
    }

    .tab-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .item-list-container {
        padding: 15px 15px 10px 15px;
    }
}

.dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog {
    background-color: #0a2069;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 300px;
    width: 80%;
    border: 1px solid #1a358a;
}

.dialog-title {
    margin-top: 0;
    color: #e0e0e0;
}

.dialog p {
    color: #a0a0a0;
}

.dialog-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.dialog-button, .dialog-button-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.dialog-button {
    background-color: #1890ff;
    color: white;
}

.dialog-button-secondary {
    background-color: #1a358a;
    color: #e0e0e0;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: none;
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
    color: white;
}




/* Star-er layers-gulo setup kora holo */
#stars, #stars2, #stars3 {
    width: 1px;
    height: 1px;
    background: transparent;
    position: absolute; /* .stars-container-er modhye position kora */
    /* Tarader color white set kora holo */
    box-shadow: 0 0 #FFF;
}

/* Animation keyframes: Taragulo niche theke upore dhire dhire move korbe */
/* Niche theke shuru hoye upore giye abar niche ashbe */
@keyframes animStar {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-2000px); /* Pray 2000px upore move korbe */
    }
}

/* Choto tarader jonno */
#stars {
    /* JavaScript diye toiri box-shadow ekhane apply hobe */
    animation: animStar 150s linear infinite; /* Shobcheye dhire (150 seconds) */
}

/* Majhari tarader jonno (astar beshi dhire hobe, alada parallax effect-er jonno) */
#stars2 {
    width: 2px; /* Ektu boro size */
    height: 2px;
    /* JavaScript diye toiri box-shadow ekhane apply hobe */
    animation: animStar 100s linear infinite; /* Majhari goti (100 seconds) */
}

/* Boro tarader jonno (abar beshi dhire) */
#stars3 {
    width: 3px; /* Shobcheye boro size */
    height: 3px;
    /* JavaScript diye toiri box-shadow ekhane apply hobe */
    animation: animStar 50s linear infinite; /* Shobcheye druto (50 seconds) */
}

/* Extra tarader effect-er jonno pseudo-element use kora holo */
/* Ei gulo tarader opore du'bar overlay kore, jate beshi tara dekha jay */
#stars::after, #stars2::after, #stars3::after {
    content: "";
    position: absolute;
    top: 2000px; /* Jate animation-er shuruteo tara dekha jay */
    left: 0;
    width: 1px;
    height: 1px;
    background: transparent;
    /* Tarader shadow gulo nirdisto layer theke pabe */
    box-shadow: inherit;
}

#stars2::after {
    width: 2px;
    height: 2px;
}

#stars3::after {
    width: 3px;
    height: 3px;
}
