@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

:root {
  --primary-color: #F06292;
  --primary-dark: #C2185B;
  --primary-light: #F8BBD0;
  --secondary-color: #8E24AA;
  --secondary-dark: #6A1B9A;
  --bg-light: #f5f7fa;
  --text-dark: #2d3748;
  --text-muted: #718096;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --card-radius: 12px;
  --btn-radius: 24px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px; /* Space for bottom nav */
}

a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Modern Header Navbar */
.navbar {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 15px rgba(240, 98, 146, 0.3);
    z-index: 100;
}
.navbar .menu-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
    background: transparent;
    color: white;
    font-size: 24px;
    padding: 0;
}
.navbar .menu-btn i {
    color: #fff;
    -webkit-text-stroke: 0 !important;
}
.navbar span {
    color: #fff !important;
    font-size: 1.25rem;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}
.btn-white {
    color: #fff !important;
    background: #da5497;
    border: none;
    border-radius: var(--btn-radius);
    padding: 6px 16px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Typography Reset */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }

/* Global Card Design */
.card {
    background: #fff;
    border-radius: var(--card-radius);
    border: none;
    box-shadow: var(--card-shadow);
    margin: 12px 0;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

/* Buttons */
.btn-theme, .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--btn-radius);
    padding: 12px 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(240, 98, 146, 0.35);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}
.btn-theme:hover, .btn-primary:hover, .btn-primary:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 98, 146, 0.4);
}
.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: var(--btn-radius);
    font-weight: 600;
    padding: 10px 20px;
    width: 100%;
}

/* Forms & Inputs */
.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-dark);
    box-shadow: none;
    transition: all 0.3s;
    background: #f8fafc;
}
.form-control:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 98, 146, 0.15);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

/* Missing Input Group Utilities */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}
.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    margin-bottom: 0;
}
.input-group > .form-control:focus {
    z-index: 3;
}
.input-group-prepend {
    display: flex;
}
.input-group-text {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}
.border-right-0 { border-right: 0 !important; }
.border-left-0 { border-left: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.bg-light { background-color: #f8fafc !important; }

/* Dashboard & Game List */
.home-sl-box {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 16px;
    display: block;
    border-radius: var(--card-radius);
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--card-shadow);
    text-align: center;
    margin-bottom: 16px;
}
.home-sl-box span {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    display: block;
    margin-top: 4px;
}
.noticebr {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
    border-left: 4px solid var(--secondary-color);
}
#scroll-container {
    overflow: hidden;
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

.row.game-list-inner {
    background: #fff;
    border-radius: var(--card-radius);
    border: none;
    box-shadow: var(--card-shadow);
    margin: 12px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.game-list-box {
    padding: 16px 10px;
}
.gameName {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--text-dark);
}
.gameResult {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    letter-spacing: 2px;
}
.gameon {
    color: #38a169 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    background: #f0fff4;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block !important;
}
.gameoff {
    color: #e53e3e !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    background: #fff5f5;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block !important;
}
.game-time {
    padding: 16px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #edf2f7;
    height: 100%;
}
.game-play {
    padding: 16px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #edf2f7;
    height: 100%;
    cursor: pointer;
}
.game-play i {
    color: var(--secondary-color) !important;
    font-size: 28px !important;
    transition: transform 0.2s;
}
.game-play:active i {
    transform: scale(0.9);
}

/* Modals & SweetAlerts */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)) !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom: none;
    padding: 16px 20px;
}
.modal-title {
    color: #fff;
    font-weight: 600;
}
.modal-header .close {
    color: #fff;
    text-shadow: none;
    opacity: 0.8;
}

/* SweetAlert2 — app theme (navy / light–dark blue card, gold OK) — all pages using footer Swal */
.swal2-popup {
    border-radius: 18px !important;
    max-width: 22em !important;
    width: min(22em, 92vw) !important;
    padding: 1.35em 1.1em 1.15em !important;
    background: linear-gradient(165deg, #1a3a5c 0%, #0f2744 48%, #0a1b36 100%) !important;
    border: 1px solid rgba(120, 160, 220, 0.28) !important;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    color: #e8eef8 !important;
}
.swal2-title {
    color: #f0f4fc !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
}
.swal2-html-container {
    color: #c5d4e8 !important;
}
.swal2-icon {
    border-width: 3px !important;
}
.swal2-icon.swal2-success {
    border-color: rgba(46, 204, 113, 0.65) !important;
    color: #2ecc71 !important;
}
.swal2-success-ring {
    border-color: rgba(46, 204, 113, 0.35) !important;
}
.swal2-icon.swal2-error {
    border-color: rgba(231, 76, 60, 0.65) !important;
    color: #e74c3c !important;
}
.swal2-error [class^="swal2-x-mark-line"] {
    background-color: #e74c3c !important;
}
.swal2-actions {
    margin: 0.6em auto 0 !important;
    width: 100% !important;
    padding: 0 0.15em !important;
    box-sizing: border-box !important;
}
.swal2-styled.swal2-confirm {
    background: linear-gradient(180deg, #f0d27a 0%, #e8b84a 42%, #caa64a 100%) !important;
    color: #1a1200 !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.65em 1em !important;
    width: 100% !important;
    max-width: none !important;
    box-shadow: 0 4px 14px rgba(232, 184, 74, 0.38) !important;
}
.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(232, 184, 74, 0.35) !important;
}
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #e8b84a, #f0d27a) !important;
}

/* Sidebar Navigation */
#sidebar {
    width: 280px;
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    z-index: 1050;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 90px;
}
#sidebar::-webkit-scrollbar {
    width: 4px;
}
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}
#sidebar.active {
    left: 0;
}
#sidebar .sidebar-header {
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    position: relative;
    border-bottom-right-radius: 20px;
}
.Uname {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}
.Umobile {
    font-size: 14px;
    opacity: 0.9;
    display: block;
}
#dismiss {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s;
}
#dismiss:hover {
    background: #fff;
    color: var(--primary-color);
}
#sidebar ul.components {
    padding: 10px 0;
}
#sidebar ul li a {
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 12px;
    border-radius: 12px;
    transition: all 0.2s;
}
#sidebar ul li a i {
    font-size: 20px;
    color: var(--secondary-color);
    width: 24px;
    text-align: center;
}
#sidebar ul li a:hover, #sidebar ul li.active>a {
    background: #fdf2f8;
    color: var(--primary-color);
}
#sidebar ul li a:hover i, #sidebar ul li.active>a i {
    color: var(--primary-color);
}
.overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    top: 0;
    backdrop-filter: blur(2px);
}
.overlay.active {
    display: block;
    opacity: 1;
}

/* Bottom Navigation Bar */
#footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background-color: #fff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
#footer-bar a {
    color: var(--text-muted);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}
#footer-bar a i {
    font-size: 22px;
    transition: transform 0.2s;
}
#footer-bar a span {
    font-size: 10px;
    font-weight: 600;
}
#footer-bar a.active-nav, #footer-bar a:hover {
    color: var(--primary-color);
}
#footer-bar a.active-nav i {
    transform: translateY(-2px);
}
#footer-bar a strong {
    position: absolute;
    top: -16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(240, 98, 146, 0.4);
    border: 3px solid #fff;
}
#footer-bar a strong i {
    color: #fff;
    font-size: 24px;
}

/* Loader */
#loading-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 2000;
}
.lds-ripple div {
    border: 4px solid var(--primary-color);
}

/* Custom Additions */
.bidamtbox, .addFundamtbox {
    border: 2px solid #e2e8f0;
    background: #fff;
    color: var(--text-dark);
    padding: 12px 8px;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
    font-weight: 600;
}
.bidamtbox.active, .addFundamtbox.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 10px rgba(240, 98, 146, 0.3);
}
.bidamtbox.active p, .addFundamtbox.active p {
    color: #fff;
}
.walletamt {
    font-weight: 700;
    font-size: 15px;
}
.history-list-box {
    background: #fff;
    border-radius: var(--card-radius);
    border: none;
    box-shadow: var(--card-shadow);
    margin: 12px 0;
    overflow: hidden;
    position: relative;
}
.history-list-box .fixed, .history-list-box .fixed-debit, .history-list-box .fixed-credit {
    position: relative;
    left: 0;
    border-radius: 0 0 12px 0;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    width: auto;
}
.history-list-box .fixed { background: var(--secondary-color); color: #fff; }
.history-list-box .fixed-debit { background: #e53e3e; color: #fff; }
.history-list-box .fixed-credit { background: #38a169; color: #fff; }
.bid-row .dark {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}
.gm-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
}
.wts-flt-btn {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 90;
}
.wts-flt-btn a {
    font-size: 26px;
    background: #25d366;
    color: white;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
}
.wts-flt-btn a:hover {
    transform: scale(1.1);
}

/* Game Dashboard & Bidding Pages */
.card-full-page {
    min-height: 80vh;
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin: 20px 0 40px 0;
}
.gdash3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.bidtypebox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 15px 5px;
    text-align: center;
    transition: all 0.2s;
    height: 100%;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.bidtypebox:hover, .bidtypebox:active {
    background: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(240, 98, 146, 0.15);
}
.bidtypebox img {
    height: 55px;
    margin-bottom: 12px;
    object-fit: contain;
}
.bidtypebox p {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

/* Form Styles Extension */
.bidinputdiv {
    margin: 10px 0;
}
.bidinputdiv label, .bidinputdiv lable {
    display: block;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}
.bidinputdiv input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    padding: 12px 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}
.bidinputdiv input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 98, 146, 0.1);
}
.dateGameIDbox {
    text-align: center;
    margin-bottom: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    display: block;
}
.dateGameIDbox p {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}
.subheading {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin: 15px 0;
}

/* Bidding Pages Unified Styling */
.bidamtbox {
    display: block;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.bidamtbox p {
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 15px;
}
.bidamtbox:hover, .bidamtbox:active {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(240, 98, 146, 0.2);
    transform: translateY(-2px);
}
.pointinputbox, .pointinputbox2 {
    border-radius: 12px !important;
    font-weight: 700 !important;
    background-color: #f8fafc !important;
    font-size: 16px !important;
    color: var(--text-dark);
}
.pointinputbox:focus, .pointinputbox2:focus {
    background-color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(240, 98, 146, 0.1) !important;
}
.btn-streched {
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}
#total_point2 {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-color);
    background: #fdf2f8;
    padding: 5px 15px;
    border-radius: 8px;
}
