/* =====================================================================
   History / results / charts theme (category 4) - loaded after app-theme.css
   Pages opt in with <body class="app-page hist-page">.
   Only visual overrides of the old building blocks used on these pages.
   ===================================================================== */

body.hist-page section[style*="background-color"],
body.hist-page .bg-light {
    background: transparent !important;
}

body.hist-page .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* ---------- old "btn_fund" cards (history entries, chart buttons) ---------- */
body.hist-page .btn_fund,
body.hist-page .btn-outline-info1 {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fd 60%, #eaf0fb 100%) !important;
    border: 1.5px solid #cbd9f3 !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 16px rgba(21, 70, 196, .10) !important;
    color: #1b1b1f !important;
    padding: 12px 14px !important;
    margin-bottom: 4px;
    text-align: left;
    white-space: normal;
    transform: none !important;
}

body.hist-page .btn_fund span,
body.hist-page .btn_fund p {
    color: #1b1b1f !important;
}

body.hist-page .btn_fund:hover,
body.hist-page .btn_fund:focus {
    background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%) !important;
    border-color: #1546c4 !important;
}

body.hist-page .btn_fund p {
    margin: 0;
}

body.hist-page .btn_fund .date1 {
    color: #5b6478 !important;
    font-size: 13px;
}

body.hist-page .btn_fund .date {
    font-weight: 700;
}

body.hist-page .btn_fund .price {
    color: #10225a !important;
    font-size: 17px;
    font-weight: 700;
}

body.hist-page .btn_fund .request,
body.hist-page .btn_fund .request1,
body.hist-page .btn_fund .request3,
body.hist-page .btn_fund .request4 {
    color: #5b6478 !important;
    font-size: 12px;
}

body.hist-page .btn_fund .credit,
body.hist-page .btn_fund .credit1 {
    color: #10225a !important;
    font-weight: 600;
}

body.hist-page .bordergrey,
body.hist-page .bordergrey1 {
    border-color: #e3e9f5 !important;
}

body.hist-page .btn_fund .text-success,
body.hist-page .text-success {
    color: #11793a !important;
}

body.hist-page .btn_fund .text-danger,
body.hist-page .text-danger {
    color: #c62828 !important;
}

body.hist-page .btn_fund .text-warning,
body.hist-page .text-warning {
    color: #b7791f !important;
}

/* single-line chart / rate buttons */
body.hist-page .btn_fund > span:only-child {
    display: block;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #10225a !important;
}

/* ---------- column header row (table-nav) ---------- */
body.hist-page .table-nav {
    background: linear-gradient(180deg, #1c4fd0 0%, #0b2a8f 100%) !important;
    border-radius: 12px;
    padding: 0 !important;
    margin-bottom: 8px;
    position: static !important;
    box-shadow: none !important;
    overflow: hidden;
}

body.hist-page .table-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
}

body.hist-page .table-nav ul li,
body.hist-page .table-nav .table-link {
    flex: 1;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 10px 4px !important;
    border: 0 !important;
    background: transparent !important;
}

body.hist-page .table-nav ul li::before {
    display: none !important;
}

/* ---------- list rows built as <ul> (record rows) ---------- */
body.hist-page .record,
body.hist-page ul.record {
    background: #fff !important;
    border: 1.5px solid #dfe6f3 !important;
    border-radius: 12px;
    margin: 0 0 6px !important;
    box-shadow: 0 2px 6px rgba(21, 70, 196, .06);
}

body.hist-page .record li {
    color: #10225a !important;
    border: 0 !important;
}

/* ---------- tables ---------- */
body.hist-page table.table,
body.hist-page table.w-100 {
    width: 100%;
    background: #fff;
    border: 1.5px solid #cbd9f3;
    border-radius: 14px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 6px 16px rgba(21, 70, 196, .08);
    margin-bottom: 12px;
}

body.hist-page table th,
body.hist-page table thead td {
    background: linear-gradient(180deg, #1c4fd0 0%, #0b2a8f 100%) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    border: 0 !important;
    padding: 10px 6px !important;
}

body.hist-page table td {
    color: #10225a !important;
    border-color: #e3e9f5 !important;
    font-size: 14px;
    padding: 9px 6px !important;
    background: transparent;
}

body.hist-page table tbody tr:nth-child(even) td {
    background: #f6f8fd;
}

body.hist-page .btn-danger,
body.hist-page .delete-bet {
    border: 0 !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #ef4b4b 0%, #c62828 100%) !important;
    color: #fff !important;
}

body.hist-page .btn-success {
    border: 0 !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #2fd270 0%, #1aa957 100%) !important;
    color: #fff !important;
}

/* ---------- game tiles (my-winning, result-history lists) ---------- */
body.hist-page .cards,
body.hist-page .my-winnig {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fd 60%, #eaf0fb 100%) !important;
    border: 1.5px solid #cbd9f3 !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 16px rgba(21, 70, 196, .10) !important;
    color: #10225a !important;
    padding: 14px 16px 14px 70px !important;
    margin-bottom: 12px !important;
    min-height: 66px;
}

body.hist-page .cards::before,
body.hist-page .my-winnig::before {
    content: "\f080";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    background: radial-gradient(circle at 50% 30%, #ffe08a 0%, #f5c43c 45%, #dc9c0c 100%);
    border: 2px solid rgba(255, 255, 255, .85);
    box-shadow: 0 4px 10px rgba(220, 156, 12, .35);
}

body.hist-page .cards h5,
body.hist-page .my-winnig h5 {
    color: #10225a !important;
    font-weight: 600;
    font-size: 17px;
    margin: 0;
}

body.hist-page .cards p,
body.hist-page .cards small,
body.hist-page .my-winnig p,
body.hist-page .my-winnig small {
    color: #5b6478 !important;
    margin: 2px 0 0;
}

body.hist-page a:has(> .cards),
body.hist-page a:has(> .my-winnig) {
    text-decoration: none !important;
    display: block;
}

/* ---------- pill style links (play1 / play-btn) ---------- */
body.hist-page .play1,
body.hist-page .play-btn {
    background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%) !important;
    border: 1.5px solid #cbd9f3 !important;
    border-radius: 30px !important;
    color: #10225a !important;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 3px 8px rgba(21, 70, 196, .08);
}

/* ---------- date / search filter ---------- */
body.hist-page .select-date {
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fd 100%);
    border: 1.5px solid #cbd9f3;
    border-radius: 16px;
    padding: 12px !important;
    margin-bottom: 12px;
}

body.hist-page .select-date label {
    color: #10225a !important;
    font-weight: 600;
}

body.hist-page .btn-dark {
    border: 0 !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #1650c9 0%, #0a3fae 100%) !important;
    color: #fff !important;
}

body.hist-page input[type="date"],
body.hist-page .ap-panel select {
    height: 44px;
    border-radius: 12px !important;
    border: 1.5px solid #d6deed !important;
    background: #fff !important;
    color: #1b1b1f !important;
    padding: 0 10px;
}

/* ---------- misc ---------- */
body.hist-page .p-5,
body.hist-page .pb-5.pt-5 {
    padding: 0 !important;
}

body.hist-page .modal-header {
    background: linear-gradient(160deg, #0a2687 0%, #1546c4 100%) !important;
    color: #fff;
}

body.hist-page .modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: 0;
}

/* ---------- fixes after preview ---------- */
/* some pages colour every h4 / i dark - keep the new header white */
body.hist-page .ap-head h4,
body.hist-page .ap-head .ap-back,
body.hist-page .ap-head .ap-back i,
body.hist-page .ap-head .ap-sub {
    color: #fff !important;
}

/* game tiles: stack name and timing */
body.hist-page .cards,
body.hist-page .my-winnig {
    display: block !important;
}

body.hist-page .cards h5,
body.hist-page .my-winnig h5 {
    width: auto !important;
}

/* plain <ul> rows (result lists): soft dividers */
body.hist-page .ap-panel ul li {
    border-bottom-color: #e3e9f5 !important;
}

/* bid history: game name bar */
body.hist-page .btn_fund p.date1.text-uppercase {
    background: linear-gradient(180deg, #1c4fd0 0%, #0b2a8f 100%) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 7px 10px !important;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
}

/* results / betting history: day chips */
body.hist-page .tabs ul {
    display: flex !important;
    gap: 8px;
    margin: 6px 0 14px !important;
    padding: 2px 0 6px !important;
    border: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 14px !important;
}

body.hist-page .tabs ul::-webkit-scrollbar {
    display: none;
}

body.hist-page .tabs ul li {
    flex: 0 0 auto;
    width: auto !important;
    border: 0 !important;
    padding: 0 !important;
}

body.hist-page .tabs ul li a {
    display: block;
    padding: 8px 16px !important;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
    border: 1.5px solid #cbd9f3;
    color: #10225a !important;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
}

body.hist-page .tabs ul li a::before {
    display: none !important;
}

body.hist-page .tabs ul li a[aria-selected="true"],
body.hist-page .tabs ul li.active a,
body.hist-page .tabs ul li a.active {
    background: radial-gradient(circle at 50% 20%, #ffe08a 0%, #f5c43c 60%, #e6a815 100%);
    border-color: #f2bc34;
}

body.hist-page .tabs ul .indicator {
    display: none !important;
}

/* chart page heading */
body.hist-page .headings11 h1 {
    color: #10225a !important;
    font-weight: 700;
}

body.hist-page .headings11 p {
    color: #5b6478 !important;
}

/* bid history / game result pages colour the whole ".date" row teal */
body.hist-page .btn_fund div.date {
    background: transparent !important;
    padding: 0 0 6px !important;
}

/* ---------- "All Games" pages (gamelist.php, game_results.php) ---------- */
body.hist-page .satta-update {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #2e2e33 0%, #1d1d21 55%, #141417 100%) !important;
    border: 1.5px solid #f2bc34 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25) !important;
    margin: 0 0 16px !important;
    padding: 12px 10px !important;
}

body.hist-page .satta-update .update-item {
    font-size: 15px !important;
    color: rgba(255, 255, 255, .85) !important;
    margin: 2px !important;
}

body.hist-page .satta-update .numeru {
    font-size: 30px !important;
    color: #ffd768 !important;
    font-weight: 800;
}

body.hist-page .satta-update .nameu {
    font-size: 18px !important;
    color: #fff !important;
}

body.hist-page .game-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fd 60%, #eaf0fb 100%) !important;
    border: 1.5px solid #cbd9f3 !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 16px rgba(21, 70, 196, .10) !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    opacity: 1 !important;
}

body.hist-page .game-list-card .game-info h5 {
    color: #10225a !important;
    font-weight: 700;
    font-size: 17px;
    margin: 0 0 2px;
    text-transform: uppercase;
}

body.hist-page .game-list-card .game-info small {
    color: #5b6478 !important;
}

body.hist-page .game-list-card .game-action {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.hist-page .game-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px !important;
    border-radius: 30px !important;
    font-weight: 700;
    font-size: 12.5px;
    text-decoration: none !important;
    white-space: nowrap;
}

body.hist-page .game-btn.btn-play {
    background: linear-gradient(180deg, #2fd270 0%, #1aa957 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(26, 169, 87, .35), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
}

body.hist-page .game-btn.btn-play2 {
    background: #fde3e3 !important;
    color: #c62828 !important;
    box-shadow: none !important;
}
