/* Global Styles */
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Header Container */
.responsive-header {
    background: linear-gradient(to right, #070047, #0052a1, #00c2ff);
    color: white;
    padding: 12px 16px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo {
    height: 35px;
}

.admin-info {
    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;
}

/* Mobile Only */
@media (max-width: 768px) {
    .responsive-header {
        padding: 10px 12px;
    }
    .header-logo {
        height: 30px;
    }
    .admin-row {
        font-size: 13px;
    }
    .irp-row {
        font-size: 12px;
    }
    .admin-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .admin-info {
        width: 100%;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .responsive-header { padding: 8px 10px; }
    .header-logo { height: 28px; }
    .admin-row { font-size: 12px; }
    .irp-row { font-size: 11px; }
    .admin-badge { font-size: 9px; padding: 2px 5px; }
}

/* Navbar Active nav link */
.navbar {
    background: linear-gradient(to right, #00c2ff,#0052a1,#070047);
    padding: 0;
}

.nav-link {
    color: white !important;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 12px !important;
}

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

.active-nav {
    background: rgb(75, 113, 185) !important;
}

.dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    font-size: 13px;
}

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

/* 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;
    }
}

@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 */

/* My Account  */
.sidebar-link.active {
    background-color: #dceede;
    color: #009b5e;
    font-weight: 600;
    border-left: 4px solid #009b5e;
}

.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-body {
    background-color: #f8f9fa;
}

.pl-card {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    background: #ffffff;
}

.pl-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #009879;
    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: #009966;
    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; }
}

/* deposit request */
.pm-screenshot-img {
    width: 60px;
    height: auto;
    border: 1px solid #ccc;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .pm-screenshot-img {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .pm-screenshot-img { width: 30px; }
}

/* withdraw request */
.section-header {
    background-color: #009879;
    color: white;
    padding: 10px 15px;
    font-weight: 600;
    border-radius: 0.25rem 0.25rem 0 0;
}
.table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 0 0 0.25rem 0.25rem;
}
.no-data {
    text-align: center;
    color: #6c757d;
    padding: 1.5rem 0;
}

@media (max-width: 576px) {
    .section-header { padding: 8px 12px; font-size: 0.9rem; }
    .no-data { padding: 1rem 0; }
}

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

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

@media (max-width: 576px) {
    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .nav-tabs .nav-link {
        flex-shrink: 0;
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .nav-tabs .nav-link { font-size: 11px; padding: 6px 10px; }
}

/* password history */
.pch-header {
    background-color: #149978;
    color: white;
    font-weight: bold;
}

.pch-table th {
    background-color: #dee2e6;
    text-align: center;
    vertical-align: middle;
}

.pch-table td {
    text-align: center;
    vertical-align: middle;
}

.pch-footer-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .pch-footer-text { font-size: 0.75rem; }
}

/* (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: .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: .4s;
    }

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

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(14px);
    }
