body {
    font-family: "Twemoji Country Flags", "Roboto", sans-serif;
}

.logo-wrap {
    overflow: hidden;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #d9d9d9;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.payments_btn .card-box {
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 30px;
}

svg.bi-info-circle {
    cursor: pointer;
}

.support_button {
    position: fixed;
    bottom: 10%;
    right: 10%;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6277cc;
}

.support_button .text {
    margin-top: 10px;
    text-align: center;
}

.navbar .jumbotron-heading {
    margin-bottom: 0;
    color: #fff;
}

.user-info {
    display: flex;
    align-items: center;
    color: #fff;
}

.user-info .username {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-info .text {
    font-size: 0.6rem;
    line-height: 0.6rem;
    margin-top: 0;
}

.user-info .balance {
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
}

.user-info .topup-text {
    font-size: 0.6rem;
    line-height: 0.6rem;
    margin-top: 0;
}

.btn-logout {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-logout:hover {
    color: #fff;
    opacity: 0.7;
}

.balance, .balance:hover {
    color: #fff;
    text-decoration: none;
}

.hidden {
    display: none;
}

.bg-icon img {
    max-height: 110px;
}

/* Show the hidden pagination */
.pagination-container .hidden {
    display: block !important;
}

.pagination-container .flex.justify-between.flex-1 {
    display: none;
}

/* Reset Tailwind spacing and sizing */
.pagination-container nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* Fix text styling */
.pagination-container .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.pagination-container .text-gray-700 {
    color: #374151;
}

.pagination-container .leading-5 {
    line-height: 1.25rem;
}

.pagination-container .font-medium {
    font-weight: 500;
}

/* Fix pagination buttons container */
.pagination-container .relative.z-0.inline-flex.shadow-sm.rounded-md {
    display: inline-flex;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Fix individual pagination buttons */
.pagination-container .relative.inline-flex.items-center {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

/* Fix button sizing for icons */
.pagination-container .px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.pagination-container .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pagination-container .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Fix active/current page */
.pagination-container span[aria-current="page"] span {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Fix disabled state */
.pagination-container .cursor-default {
    cursor: default;
    opacity: 0.6;
}

.pagination-container .text-gray-500 {
    color: #6b7280;
}

/* Fix border connections */
.pagination-container .-ml-px {
    margin-left: -1px;
}

/* Fix rounded corners */
.pagination-container .rounded-l-md {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.pagination-container .rounded-r-md {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Fix SVG icons size */
.pagination-container .w-5 {
    width: 1.25rem;
}

.pagination-container .h-5 {
    height: 1.25rem;
}

/* Mobile Table Scroll Styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.btn-login {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: 10px;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    color: inherit;
}

.sort-active {
    color: #6277cc;
    font-weight: bold;
}

/* Language Switch Styles */
.language-switch {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.language-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.language-button {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s;
}

.language-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
}

.language-button img {
    margin-right: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    right: 0;
    margin-top: 0px;
}

.dropdown-content a {
    color: #333;
    padding: 8px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    text-decoration: none;
    color: #333;
}

.dropdown-content a img {
    margin-right: 8px;
}

.dropdown-content a.active {
    background-color: #6277cc;
    color: #fff;
}

.dropdown-content a.active:hover {
    background-color: #5266bb;
    color: #fff;
}

.language-dropdown:hover .dropdown-content {
    display: block;
}

.language-dropdown:hover .language-button {
    background-color: rgba(255, 255, 255, 0.25);
}

.out-of-stock-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

.text-warning {
    color: #856404 !important;
}

@media (max-width: 576px) {
    body {
        font-size: 0.8rem;
    }

    th.align-middle.product-name {
        font-size: 0.7rem;
        max-width: 90px;
    }

    /* Even more compact on small screens */
    .table {
        font-size: 0.8rem;
    }

    /* Adjust image sizes */
    .img-thumbnail {
        max-width: 30px !important;
    }

    /* Make badges smaller */
    .badge {
        font-size: 0.7rem;
        padding: 0.2em 0.4em;
    }

    .language-button {
        padding: 3px 6px;
        font-size: 0.8rem;
    }

    .dropdown-content {
        min-width: 100px;
    }

    .dropdown-content a {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}
