/* Global Styles */
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* background-color: #292d2e; */
    color: #ffffff;
}

i.fas {
    font-family: "Font Awesome 6 Free" !important;
}

/* Card Styling */
.card {
    /* background-color: #323740 !important; */
    color: #ffffff !important;
    border: 1px solid #0c0339 !important;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    margin: 1rem 0 !important;
}

.card-header {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-bottom: 1px solid #0c0339 !important;
    font-weight: 600;
}

.card-body {
    /* background-color: #323740 !important; */
    color: #000 !important;
}

/* Table Styling */
table {
    background-color: #323740 !important;
    color: #ffffff !important;
    border: 1px solid #2b2f36 !important;
    border-collapse: collapse;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

table th,
table td {
    /* background-color: #323740 !important; */
    /* color: #0d6efd !important; */
    color: #000 !important;
    border: 1px solid #0c0339 !important;
    padding: 8px;
    text-align: left;
}

table thead th {
    background-color: #0c0339 !important;
    color: #ffffff !important;
    font-weight: bold;
}

table tbody td {
    background-color: #fff !important;
    /* color: #ffffff !important; */
    font-weight: bold;
}

/* Hover Effect for Table Rows */
table tbody tr:hover {
    background-color: #424c58 !important;
    transition: background-color 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Header Container */
.responsive-header {
    /* background: linear-gradient(to bottom, #1f2327, #3b4553, #49585f); */
    background: #0c0339;
    color: white;
    padding: 12px 16px;
}
.admin-name.dropdown-toggle {
    color: white !important;
    text-decoration: none !important;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

/* Logo Section */
.logo-section {
    flex: 1;
    text-align: left;
}

/* Responsive Logo */
.header-logo {
    width: inherit;
    transition: max-height 0.2s ease;
}

/* Admin Info Section */
.admin-info {
    flex: 1;
    text-align: right;
}

.admin-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 4px;
    font-size: 14px;
    flex-wrap: wrap;
}

.irp-row {
    font-size: 13px;
    color: #e0e8ff;
}

.admin-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 8px;
}

.admin-name {
    margin-right: 10px;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

/* Shrink logo on medium devices */
@media (max-width: 768px) {
    .header-logo {
        /* max-height: 30px; */
        width: 200px;
    }
}

/* Stack on very small devices */
@media (max-width: 374px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .logo-section,
    .admin-info {
        width: 100%;
    }

    .admin-info {
        text-align: right;
    }

    .header-logo {
        /* max-height: 20px; */
    }
}

/* Navbar Active nav link */
.navbar {
    /* background: linear-gradient(to bottom, #1f2327, #3b4655, #4a5357); */
    background: #fff;
    padding: 0.2rem 0;
}

.nav-link {
    /* color: white !important; */
    font-weight: 700;
    font-size: 13px;
    padding: 5px 12px !important;
}

.nav-link:hover {
    /* background: rgba(0, 0, 0, 0.2); */
}

.active-nav {
    background: #f7ffb9 !important;
    color: #0d6efd !important;
    border-radius: 20px 20px 20px 20px;
}
.dropdown-menu {
    /* position: absolute !important; */
    /* position: fixed !important; */
    z-index: 9999 !important;
    /* background: linear-gradient(to bottom, #1f2327, #425063, #5d7581); */
    /* background: #0c0339; */
    /* border: 1px solid #4b4a5e; */
    color: #000 !important;
    /* min-width: 180px; */
    width: 180px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* left: 0 !important; */
    top: 0 !important;
}
.dropdown-menu.show {
    inset: auto !important;
    transform: none !important;
    top: 57px !important;
}
.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3px;
    padding-bottom: 3px;
}

.dropdown-item {
    font-size: 13px;
    color: black !important;
    font-weight: 600 !important;
}

.dropdown-item:hover {
    background: rgba(233, 58, 27, 0.1);
}

.badge-notification {
    position: absolute;
    top: 1px;
    left: 95%;
    transform: translateX(-50%);
}

    .navbar-nav {
        flex-direction: row !important;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    
    /* .dropdown-menu {
        position: fixed !important; */
        /* max-height: 200px; */
        /* overflow-y: auto; */
        /* top: 101.3px !important; */
        /* left: 80% !important; */
    /* } */

/* Mobile scroll */
@media (max-width: 991px) {
    /* .navbar-nav {
        flex-direction: row !important;
        overflow-x: auto;
        flex-wrap: nowrap;
    } */

    .nav-item {
        flex-shrink: 0;
    }

    .navbar-nav::-webkit-scrollbar {
        height: 0px;
    }

    .dropdown-menu {
        /* position: fixed !important; */
        max-height: 200px;
        overflow-y: auto;
        /* left: 50% !important; */
    }
}

@media (max-width: 576px) {
    .nav-link {
        font-size: 11px;
        padding: 6px 8px !important;
    }
    
    .dropdown-menu {
        min-width: 120px;
    }
    
    .dropdown-item {
        font-size: 11px;
    }
}

/* Logout styling */
.nav-item:last-child .nav-link {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-left: 10px;
}

@media (max-width: 576px) {
    .nav-item:last-child .nav-link {
        margin-left: 4px;
    }
}

/* index page */

/* Downline user */
.table .btn-sm {
    min-width: 36px;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Prevent overflow stacking on mobile */
td .d-flex {
    flex-wrap: nowrap;
    overflow-x: auto;
}

/* Responsive fix for long buttons */

.table-responsive-sm {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 400px;
}
.btn-user-details {
    background-color: #0eb8a9;
    color: white;
}

.btn-deposit-collection {
    background-color: #157a06;
    color: white;
}

.btn-withdrawal {
    background-color: #2f3c88;
    color: white;
}

.btn-password-change {
    background-color: #bdb412;
    color: white;
}

.btn-game-control {
    background-color: #e287f2;
    color: white;
}

.btn-game-controller {
    background-color: #02049c;
    color: white;
}
.btn-casino-control {
    background-color: #ce42db;
    color: white;
}

.btn-delete {
    background-color: #fc4d4d;
    color: white;
}
/* Add clint Account */

/* My Account  */
.sidebar-link.active {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 600;
    /* border-left: 4px solid #00039b; */
}

.icon-btn {
    margin-left: 8px;
    cursor: pointer;
    color: #444;
}

.icon-btn:hover {
    color: #009b5e;
}

/* Remove sidebar dots */
.list-group {
    list-style: none;
    padding-left: 0;
}

.list-group li {
    list-style-type: none;
}

/* Font sizing */
body,
.card,
.card-body,
.list-group-item,
table,
th,
td {
    font-size: 14px;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 767.98px) {
    .sidebar-link {
        font-size: 16px;
        padding: 10px 14px;
    }
    body,
    .card,
    .card-body,
    .list-group-item,
    table,
    th,
    td {
        font-size: 12px;
    }
    table th,
    table td {
        padding: 6px 4px;
    }
}

@media (max-width: 480px) {
    body,
    .card,
    .card-body,
    .list-group-item,
    table,
    th,
    td {
        font-size: 11px;
    }
    table th,
    table td {
        padding: 4px 2px;
    }
}

/* Event profit/loss */

.pl-header {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control-sm,
.form-select-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
}

@media (max-width: 576px) {
    .pl-header {
        font-size: 1rem;
    }
    .form-label {
        font-size: 0.8rem;
    }
    .form-control-sm,
    .form-select-sm {
        font-size: 0.75rem;
    }
    .btn-sm {
        font-size: 0.75rem;
    }
}

/* user banking */
.acc-btn-dw {
    width: 35px;
}
.acc-table td,
.acc-table th {
    vertical-align: middle;
    text-align: center;
}
.acc-btn-full {
    width: 60px;
}
.acc-input-sm {
    width: 100px;
}
.acc-btn-clear {
    background-color: #f66;
    color: white;
}
.acc-btn-submit {
    background-color: #0d6efd;
    color: white;
}
.acc-password-input {
    width: auto;
}

/* payment setup */
.qr-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #ccc;
    background-color: #fff;
}

.status-active {
    color: green;
    font-weight: bold;
}

/* Responsive tweaks for mobile */
@media (max-width: 576px) {
    table th,
    table td {
        font-size: 12px;
        padding: 6px;
    }

    .qr-img {
        width: 40px;
        height: 40px;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
    }

    .acc-btn-dw {
        width: 30px;
    }

    .acc-btn-full {
        width: 50px;
        font-size: 11px;
    }

    .acc-input-sm {
        width: 80px;
    }

    .form-control,
    .form-select {
        width: 100%;
        font-size: 14px;
    }

    .btn {
        /* width: 100%; */
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .qr-img {
        width: 35px;
        height: 35px;
    }
    .acc-btn-dw {
        width: 25px;
    }
    .acc-btn-full {
        width: 40px;
        font-size: 10px;
    }
    .acc-input-sm {
        width: 60px;
    }
}

/* commission page */
.nav-tabs .nav-link {
    color: #000 !important;
}

.nav-tabs .nav-link.active {
    background-color: #0d6efd;
    color: #fff !important;
}

/* (setting)-block market */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 50px;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4caf50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(14px);
}
/* padding media query for mobile padding */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}
/* model css */
.modal-header-dark {
    background-color: #0c0339;
    color: white;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.modal-body.modal-header-dark {
    background-color: #fff;
    color: #0c0339;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.modal-header-dark .btn-close {
    filter: invert(1);
    opacity: 1;
}
.modal-body-dark {
    background-color: #0d6efd;
    color: white;
}
.modal-footer {
    background-color: #0c0339;
    color: white;
}
.app_toast {
    opacity: 1;
    position: fixed;
    top: 5%;
    right: -100%;
    min-width: 200px;
    max-width: 250px;
}

.app_toast .toast_div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
