* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    height: 100vh;
    overflow: hidden;
    margin: 5px;
    background-color: #131722;
    font-family: Arial, sans;
}

/* Sidebar Styling */
/* Sidebar */
/* Sidebar */
.sidebar {
    position: relative;
    width: 27%;
    /* Adjust width as needed */
    height: 100%;
    background: #111;
    /* Dark background */
    color: black;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent full sidebar overflow */
    transition: width 0.01s ease-in-out;
    /* Smooth resizing effect */
}

/* Top Bar and Search Bar - Fixed at Top */
.search-bar,
.category-container {
    position: sticky;
    top: 0;
    background: white;
    font-size: 10px;
    font-family: Arial, sans;
}

/* Search Bar */
.search-bar {
    width: 100%;
    padding: 10px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
}

/* Category Container */
.category-container {
    position: relative;
    display: flex;
    background-color: #131722;
    padding: 5px 10px 5px 10px;
    overflow-x: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 10px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* Scroll Button Styles */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    /* Transparent background */
    color: white;
    border: none;
    padding: 5px 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: all 0.3s ease;
    font-size: 10px;
    /* Increase arrow size */
    font-family: Arial, sans;
}

.scroll-button:hover {
    background: rgba(51, 51, 51, 0.95);
    /* Darker on hover */
}

.scroll-left {
    left: 0;
    display: none;
}

.scroll-right {
    right: 0;
}

/* Category Buttons Container */
.buttons-container {
    display: flex;
    justify-content: space-evenly;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
}

.buttons-container::-webkit-scrollbar {
    display: none;
}

/* Category Buttons */
.category-btn {
    padding: 5px 10px 5px 10px;
    background: #333;
    border: none;
    color: rgba(255, 255, 255, 0.845);
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    flex-shrink: 0;
    font-size: 10px;
    font-family: Arial, sans;
    font-weight: bold;
}

.category-btn.active {
    background-color: #58a6ff;
    /* Active background */
    color: black;
    /* Active text color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;

}



/* Buy/Sell Data Container */
#buy-sell-data {
    flex-grow: 1;
    /* Makes this section take the remaining height */
    overflow-y: auto;
    /* Enables scrolling for buy/sell data */
    -ms-overflow-style: none;
    /* Hide scrollbar in IE and Edge */
    scrollbar-width: none;
    /* Hide scrollbar in Firefox */
    padding: 5px 5px 0 5px;
    /* Remove bottom padding */
    font-family: Arial, sans;
    color: white;
    background: #111;
    /* Dark background */
    font-size: 10px;
    margin-top: 5px;
}

#buy-sell-data::-webkit-scrollbar {
    display: none;
}

.resize-handle {
    width: 8px;
    /* Increased thickness for better visibility */
    height: 100vh;
    /* Full height */
    background: rgba(180, 180, 180, 0.6);
    /* More visible grey */
    cursor: ew-resize;
    /* Resize cursor */
    position: absolute;
    right: -4px;
    /* Half of the handle overlaps sidebar for consistent drag */
    top: 0;
    border-radius: 4px;
    transition: background 0.1s ease-in-out;
}

/* Tooltip for Handle */
.resize-handle::after {
    content: "⇔";
    /* Resize icon */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    /* Bigger icon */
    font-family: Arial, sans;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 6px;
    border-radius: 4px;
    opacity: 0.8;
    /* Always visible but subtle */
    transition: opacity 0.1s;
}

/* Keep full opacity on hover */
.resize-handle:hover::after {
    opacity: 1;
}

/* Hover Effect */
.resize-handle:hover {
    background: rgba(255, 255, 255, 0.5);
}

.resize-handle:hover::after {
    opacity: 1;
}

.trading-container {
    flex-grow: 1;
    position: relative;
    height: calc(100vh - 250px);
    /* Dynamic height that will be adjusted by JS */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #131722;
    transition: height 0.3s ease;
    /* Smooth transition when height changes */
}

#tv_chart_container {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* Hide TradingView branding if needed */
.trading-container iframe {
    border: none;
}

/* Top Bar Inside Trading Container */
.top-bar {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgb(11, 11, 31);
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    align-items: center;
    box-sizing: border-box;
    min-height: 40px;
    /* Add minimum height */
}



.left-buttons {
    display: flex;
    gap: 3%;
    /* Space between buttons */
    width: 50%;
}

.left-buttons button {
    background: #333;
    color: rgba(255, 255, 255, 0.845);
    border: 1px solid rgba(255, 255, 255, 0.845);
    padding: 5px 10px 5px 10px;
    cursor: pointer;
    font-family: Arial, sans;
    font-size: 10px;
    border-radius: 4px;
    font-weight: bold;

}

.left-buttons button:hover {
    background: #555;
    color: white;
}

.left-buttons button.top-bar-active {
    background-color: #58a6ff;
    color: black;
}

.left-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #666;
    color: #999;
}

.left-buttons button:disabled:hover {
    background-color: #666;
    color: #999;
    transform: none;
}

.user-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3%;
    /* Space between user info elements */
    width: 50%;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    font-size: 10px;
    font-family: Arial, sans;
    border: 1px solid #36B34B;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.account-type-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: Arial, sans;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    margin-top: 5px;
}

.live-status:hover .account-type-tooltip {
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

/* Add a small arrow to the tooltip */
.account-type-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 100%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid rgba(0, 0, 0, 0.8);
}

.user-icon,
.logout-icon {
    cursor: pointer;
    font-size: 10px;
    font-family: Arial, sans;
    color: #ddd;
    transition: transform 0.2s ease-in-out;
    /* Smooth transition */
    position: relative;
    border: 1px solid white;
    padding: 5px 10px 5px 10px;
    border-radius: 4px;

}

/* Status display styling */
.live-status {
    padding: 5px;
    border-radius: 4px;
    font-size: 10px;
    font-family: Arial, sans;
    margin-right: 10px;
    transition: all 0.3s ease;
    padding: 5px 10px 5px 10px;
}



/* User Tooltip */
.user-tooltip {
    position: absolute;
    right: 0;
    top: 30px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px 5px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-family: Arial, sans;
    font-weight: lighter;
    white-space: nowrap;
    z-index: 999;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tooltip-email,
.tooltip-name {
    font-size: 10px;
    font-family: Arial, sans;
    font-weight: lighter;
}

.user-icon:hover .user-tooltip {
    display: block;
}


/* From Uiverse.io by vinodjangid07 */
.Btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition-duration: .3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
    background-color: rgb(255, 65, 65);
}

/* plus sign */
.sign {
    width: 100%;
    transition-duration: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign svg {
    width: 14px;
    font-family: Arial, sans;
}

.sign svg path {
    fill: white;
}

/* text */

/* Chart Container */
/* Make sure the chart container takes the full width */

.bottom-panel {
    width: 100%;
    background: rgb(11, 11, 31);
    color: white;
    padding: 10px 0;
    /* Adjust padding to remove space inside */
    border-top: 2px solid white;
    transition: height 0.3s;
    height: 28%;
    overflow: hidden;
    position: fixed;
    /* Fixed positioning */
    bottom: 45px;
    /* Space above the margin bar */
    left: 0;
    /* Full width */
    /* Ensures it's on top of other elements */
}

/* Drag Handle for resizing */
.bottom-drag-handle {
    width: 100%;
    height: 4px;
    background: white;
    cursor: ns-resize;
    margin-top: 0;
    /* Ensure there's no margin above the handle */
    position: relative;
    bottom: 12px;
    /* Place handle at the bottom of .bottom-panel */
}

/* Order Tabs */
.order-tabs {
    display: flex;
    gap: 10px;

}

.order-tabs button {
    padding: 5px 10px 5px 10px;
    background: #333;
    border: none;
    color: rgba(255, 255, 255, 0.845);
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
    font-family: Arial, sans;
    font-size: 10px;
    font-weight: bold;
}

.order-tabs button.active {
    background: #58a6ff;
    color: black;
    font-family: Arial, sans;
    font-size: 10px;
    font-weight: bold;
}

/* Orders Table */
.orders-container {
    max-height: 90%;
    overflow-y: auto;
    padding: 5px;
    border-radius: 5px;
    font-size: 10px;
    font-family: Arial, sans;

}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

th,
td {
    padding: 4px;
    font-size: 10px;
    font-family: Arial, sans;
    color: rgba(255, 255, 255, 0.845);
}

th {
    border-bottom: 1px solid white;
}

/* Profit/Loss Styling */
.buy {
    color: #36B34B;
}

.sell {
    color: #D80000;
}

.profit {
    color: #36B34B;
}

.close-icon {
    color: #D80000;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial, sans;
}

/* Smooth transition for popup modal */
.modal {
    display: none;
    position: fixed;
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10002 !important;
    width: 280px;
    font-family: Arial, sans;
    font-size: 12px;
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 12px;
    color: black;
    font-family: Arial, sans;
}

.modal input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
    font-family: Arial, sans;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.modal input[type="number"]:focus {
    border-color: #007bff;
}

.error-text {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.confirm-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001 !important;
}

.confirm-modal.show {
    display: block;
}

.confirm-box {
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid rgba(69, 255, 246, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: white;
    width: 350px;
}

.confirm-box button {
    margin: 10px;
    padding: 8px 25px;
    border: none;
    border-radius: 4px;
    font-family: Arial, sans;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-box p {
    margin-bottom: 20px;
    font-size: 12px;
    font-family: Arial, sans;
}

#confirmClearYes,
#confirmClearNo {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-family: Arial, sans;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

#confirmClearYes:hover {
    background-color: #4CAF50;
    color: white;
}

#confirmClearNo:hover {
    background-color: #f44336;
    color: white;
}

/* Styles for Close All confirmation buttons */
#closeAllConfirmYes,
#closeAllConfirmNo {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-family: Arial, sans;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#closeAllConfirmYes {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

#closeAllConfirmNo {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

#closeAllConfirmYes:hover {
    background-color: #4CAF50;
    color: white;
}

#closeAllConfirmNo:hover {
    background-color: #f44336;
    color: white;
}

.modal button {
    width: 100%;
    padding: 10px 0;
    margin-top: 15px;
    background-color: #ffaa00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-family: Arial, sans;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal button:hover {
    background-color: #e69900;
}

.modal.show {
    opacity: 1;
    transform: scale(1);
    display: block !important;
}

#modalBackdrop {
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 10000 !important;
}

#modalBackdrop.show {
    opacity: 1;
    display: block !important;
}

#h5 {
    color: #5b5b5b;
    font-size: 12px;
    font-family: Arial, sans;
    margin-bottom: 10px;

}

.popup-trigger {
    display: inline-block;
    font-size: 12px;
    font-family: Arial, sans;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.popup-trigger:hover {
    color: red;
    transform: scale(1.9);
}

.popup-trigger2 {
    display: inline-block;
    font-size: 12px;
    font-family: Arial, sans;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.popup-trigger2:hover {
    color: green;
    transform: scale(1.9);
}

/* === Fixed Margin Bar === */
#marginBar {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgb(11, 11, 31);
    color: rgba(255, 255, 255, 0.845);
    display: flex;
    justify-content: space-between;
    /* Left & Right alignment */
    align-items: center;
    padding: 0 10px;
    /* Padding for spacing */
}

/* Left side margin info */
.margin-info {
    display: flex;
    font-size: 10px;
    font-family: Arial, sans;

}

.margin-info h4 {
    font-size: 10px;
    font-family: Arial, sans;
    font-weight: lighter;
    margin: 0;
    padding: 15px;
}


/* Right side profit info */
.profit-info {
    font-size: 10px;
    font-family: Arial, sans;
    margin-right: 3%;

}

/* Right Panel - Fixed Height with Scroll */


/* News Container - Fixed Height */
.trading-container #news_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100% - 50px);
    /* Subtract top bar height */
    overflow-y: auto;
    padding: 15px;
    background: #333;
    position: absolute;
    top: 50px;
    /* Height of top bar */
    left: 0;
    right: 0;
    bottom: 0;
}

/* News Item Styles */
.news-item {
    background-color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    text-align: left;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    width: 100%;
}

/* News Header */
.news-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* News Icon */
.news-icon {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

/* Date & Time */
.news-date {
    display: flex;
    flex-direction: column;
}

.time-text {
    font-size: 10px;
    font-family: Arial, sans;
    color: black;
}

.day-text {
    font-size: 10px;
    font-family: Arial, sans;
    color: black;
}

.news-item h3 {
    font-size: 12px;
    font-family: Arial, sans;
    margin-bottom: 5px;
}

.news-item p {
    font-size: 10px;
    font-family: Arial, sans;
    color: black;
}

/* Scrollbar Styling */
#news_container::-webkit-scrollbar {
    width: 8px;
}

#news_container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

#news_container::-webkit-scrollbar-track {
    background: #222;
}

.hidden {
    display: none;
}


/* Default View */
#defaultView {
    display: block;
}

/* Token Details View */
#tokenView {
    display: none;
    /* Hide by default */
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    padding: 10px;
    background: white;
    color: black;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: max-height 0.2s ease;
}

#sidebar,
#buy-sell-data,
#tokenView {
    transition: height 0.2s ease, max-height 0.2s ease;
}

/* Close Button (X) */
#closeTokenView {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 10px;
    font-family: Arial, sans;
    cursor: pointer;
}

/* Token Header: Name + FX */
.token-header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-family: Arial, sans;
}

/* .fx-label {
font-size: 10px;
color: black;
padding: 5px 10px;
border-radius: 5px;
} */

/* Order Buttons */
.order-buttons {
    display: flex;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0 0px 0;
}

.order-buttons button {
    flex: 1;
    padding: 5px 10px 5px 10px;
    font-size: 10px;
    background: #f0f0f0;
    color: #333;
    font-family: Arial, sans;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    font-weight: bold;
}

.order-buttons button+button {
    border-left: 1px solid #ccc;
}

.order-buttons button.active {
    background: #222;
    color: #fff;
}

/* Input Fields */
.input-group {
    display: flex;
    gap: 10%;
    justify-content: space-evenly;
    margin-top: 10%;
}

.input-box {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.input-box span {
    position: absolute;
    top: -5px;
    align-items: center;
    font-size: 10px;
    background: white;
    padding: 0 5px;
    color: #555;
}

.input-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid black;
    border-radius: 4px;
    font-size: 10px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-wrapper input[type="number"] {
    padding: 8px;
    font-size: 10px;
    font-family: Arial, sans;
    border-radius: 4px;
    /* border: 1px solid #444; */
    color: #111;
    -moz-appearance: text-field;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom spinner */
.custom-spin {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 28px;
}

.custom-spin button {
    padding: 2px 4px;
    background-color: #9d1818;
    color: white;
    border: none;
    font-size: 8px;
    font-family: Arial, sans;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.custom-spin button:hover {
    background-color: #c22a2a;
}


/* Additional Info */
.info-section {
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    margin-top: 10%;
}

.info-section div {
    flex: 1;

}

.info-section h5 {
    margin: 0;
    font-size: 10px;
    font-family: Arial, sans;
    color: #333;
    font-weight: bold;
}

.info-section p {
    margin: 5px;
    font-size: 10px;
    font-family: Arial, sans;
    color: #666;
}

/* Buy/Sell Buttons */
/* Custom Button Style */
.buy-sell-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;

}

.btn {
    font-size: 10px;
    font-family: Arial, sans;
    text-transform: uppercase;
    line-height: 8px;
    border-radius: 4px;
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex: 1;

}

/* Custom Backgrounds */
.buy-custom-btn {
    background-image: linear-gradient(120deg, rgb(44, 149, 44) 0%, green 100%);
}

.buy-custom-btn:hover {
    background-image: linear-gradient(160deg, green 0%, green 100%);
}

.sell-custom-btn {
    background-image: linear-gradient(120deg, rgb(162, 49, 49) 0%, red 100%);
}

.sell-custom-btn:hover {
    background-image: linear-gradient(160deg, red 0%, red 100%);
}

.btn>* {
    display: inline-block;
    transition: all ease-in-out 0.7s;
}

.btn__visible {
    padding: 12px;
    text-align: center;
}

.btn__invisible {
    width: 100%;
    position: absolute;
    padding: 0.8rem 0;
    left: 0;
    top: -100%;
}

.btn:hover .btn__visible {
    transform: translateY(100%);
}

.btn:hover .btn__invisible {
    top: 0;
}

.btn:focus {
    outline: none;
}

.trading-container #history_container {
    display: flex;
    width: 100%;
    min-height: 85%;
    max-height: 100%;
    /* Fixed height */
    overflow-y: auto;
    /* Allow scrolling */
    padding: 15px;
    /* Padding for spacing */
    background: rgb(11, 11, 31);
    /* Dark background */
}

/* History Order Container Styles */
.history-orders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.history-order-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.history-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0 8px 0;
}

.history-order-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 6px;
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.history-detail-item {
    font-family: Arial, sans;
    font-size: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

.history-detail-item strong {
    color: #666;
    display: block;
    font-family: Arial, sans;
    font-size: 10px;
    margin-bottom: 2px;
}

.history-detail-item span {
    color: #333;
    font-family: Arial, sans;
    font-size: 10px;
}

.history-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0 8px 0;
}

.history-order-symbol {
    font-family: Arial, sans;
    font-size: 10px;
    display: flex;
    flex-direction: column;
}

.history-order-id {
    font-family: Arial, sans;
    font-size: 10px;
    color: #666;
    margin-top: 1px;
}

.history-order-type {
    font-family: Arial, sans;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
}

.history-profit {
    font-family: Arial, sans;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
}

.history-profit.positive {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.history-profit.negative {
    color: #FF3B30;
    background: rgba(255, 59, 48, 0.1);
}

.history-order-type {
    font-family: Arial, sans;
    padding: 5px 10px;
    border-radius: 5px;
}

.history-order-type.buy {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.history-order-type.sell {
    color: #FF3B30;
    background: rgba(255, 59, 48, 0.1);
}

.trading-container #walletContainer {
    display: none;
    width: 100%;
    min-height: 85%;
    max-height: 100%;
    /* Fixed height */
    overflow-y: auto;
    /* Allow scrolling */
    padding: 15px;
    /* Padding for spacing */
    background: #333;
    /* Dark background */

}

#walletContainer table {
    background-color: white;
    color: black;
    font-family: Arial, sans-serif;
    font-size: 10px;
}

#walletContainer th {
    text-align: center;
}

#walletContainer td,
th {
    padding: 10px;
}

.wallet-scroll-container {
    max-height: 300px;
    /* or any height you prefer */
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 4px;
}

.wallet-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}


.wallet-table td {
    padding: 10px;
    border-bottom: 2px solid #444;
    text-align: center;
}

.wallet-table th {
    color: white;
    position: sticky;
    top: 0;
    background-color: rgb(34, 34, 53);
    height: 50px;

}

.wallet-table td {
    background-color: white;
    color: black;
}

.pending-order-popup {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
}

/* Show the popup when display is set to block via JavaScript */
.pending-order-popup[style*="display: block"] {
    display: flex !important;
    /* Force flex display to center content */
}

/* Animation for pending order modal */
@keyframes pendingModalFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pending-order-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    top: 0;
    /* Reset any potential offsets */
    left: 0;
    transform: none;
    /* Reset any transforms */
    margin: auto;
    /* Center in flex container */
    animation: pendingModalFadeIn 0.3s ease-out forwards;
}

.pending-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: none;
}

.pending-header h2 {
    margin: 0;
    color: #333;
    font-size: 10px;
    font-family: Arial, sans;
}

.pending-info {
    background: #f8f0ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pending-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pending-info-item:last-child {
    align-items: flex-end;
}

.pending-info-label {
    color: #666;
    font-size: 12px;
    font-family: Arial, sans;
    margin-bottom: 5px;
}

.pending-info-value {
    font-size: 12px;
    font-family: Arial, sans;
    color: #333;
}

.pending-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.pending-form-row label {
    color: #333;
    font-size: 12px;
    font-family: Arial, sans;
}

.pending-form-row input {
    width: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    font-family: Arial, sans;
    text-align: right;
}

.pending-form-row input:focus {
    outline: none;
    border-color: #007bff;
}

.pending-details {
    margin: 25px 0;
}

.pending-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.pending-detail-row:last-child {
    border-bottom: none;
}

.pending-detail-label {
    color: #666;
    font-size: 12px;
    font-family: Arial, sans;
}

.pending-detail-value {
    color: #333;
    font-family: Arial, sans;
    font-size: 12px;
}

.pending-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.pending-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-family: Arial, sans;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pending-btn-primary {
    background-color: #ffa726;
    color: white;
}

.pending-btn-primary:hover {
    background-color: #ff9800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pending-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.pending-btn-secondary:hover {
    background-color: #e0e0e0;
    color: #d32f2f;
    border-color: #d32f2f;
}

.pending-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    /* Keep below the modal content */
    cursor: pointer;
    /* Show pointer cursor to indicate clickable */
}

.center-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: #262626;
}

.loader-circle-9 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: transparent;
    border: 3px solid #3c3c3c;
    border-radius: 50%;
    text-align: center;
    line-height: 70px;
    font-family: Arial, sans;
    font-size: 12px;
    color: #58a6ff;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.loader-circle-9:before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #58a6ff;
    border-right: 3px solid #58a6ff;
    border-radius: 50%;
    animation: animateC 2s linear infinite;
}

.loader-circle-9 span {
    display: block;
    position: absolute;
    top: calc(50% - 2px);
    left: 50%;
    width: 50%;
    height: 4px;
    background: transparent;
    transform-origin: left;
    animation: animate 2s linear infinite;
}

.loader-circle-9 span:before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #58a6ff;
    top: -6px;
    right: -8px;
    box-shadow: 0 0 20px #58a6ff;
}

@keyframes animateC {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate {
    0% {
        transform: rotate(45deg);
    }

    100% {
        transform: rotate(405deg);
    }
}

.close-all-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 12px;
    font-family: Arial, sans;
    margin-left: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-all-btn:hover {
    color: #ff1a1a;
}

/* Add these styles in the existing style section */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-family: Arial, sans;
    font-size: 12px;
    z-index: 9999;
    animation: slideIn 0.5s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-popup.success {
    background-color: #4CAF50;
}

.notification-popup.error {
    background-color: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Orders Panel Styles */
.orders-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 40vh;
    overflow-y: auto;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.orders-title {
    font-size: 12px;
    font-family: Arial, sans;
}

.orders-tabs {
    display: flex;
    gap: 10px;
}

.orders-tab {
    padding: 5px 10px;
    border: none;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
}

.orders-tab.active {
    background: #333;
    color: white;
}

.orders-list {
    display: none;
}

.orders-list.active {
    display: block;
}

.order-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item:last-child {
    border-bottom: none;
}

.order-info {
    flex: 1;
}

.order-symbol {
    font-size: 12px;
    font-family: Arial, sans;
}

.order-type {
    color: #4CAF50;
}

.order-type.sell {
    color: #f44336;
}

.order-details {
    font-size: 12px;
    font-family: Arial, sans;
    color: #666;
}

.order-actions {
    display: flex;
    gap: 5px;
}

.order-action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial, sans;
}

.close-order-btn {
    background: #f44336;
    color: white;
}

.modify-order-btn {
    background: #2196F3;
    color: white;
}

/* Add loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Add this to your existing styles */
.error-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(34, 34, 34, 0.95);
    border: 2px solid #ff4444;
    border-radius: 8px;
    padding: 20px;
    z-index: 100000;
    min-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.error-modal-content {
    text-align: center;
}

.error-modal-icon {
    color: #ff4444;
    font-size: 12px;
    font-family: Arial, sans;
    margin-bottom: 15px;
}

.error-modal-message {
    color: #ffffff;
    font-size: 12px;
    margin-bottom: 20px;
    font-family: Arial, sans;
}

.error-modal-details {
    color: #cccccc;
    font-size: 12px;
    font-family: Arial, sans;
    margin-bottom: 20px;
}

.error-modal-button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial, sans;
    transition: background 0.3s;
}

.error-modal-button:hover {
    background: #ff6666;
}

.error-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wallet-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 0px;
    padding: 10px;
}

.wallet-action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-family: Arial, sans;
}

.deposit-btn {
    background-color: #4CAF50;
    color: white;
}

.withdraw-btn {
    background-color: #f44336;
    color: white;
}

.wallet-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.order-type-buy,
.order-type-buy_limit,
.order-type-buy_stop {
    color: #00ff00;
}

.order-type-sell,
.order-type-sell_limit,
.order-type-sell_stop {
    color: #D80000;
}

/* Withdraw Modal Styles */
.withdraw-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    width: 380px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.withdraw-modal h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 5px;
    font-size: 14px;
    font-family: Arial, sans;
    letter-spacing: 0.5px;
}

.withdraw-modal input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-family: Arial, sans;
    transition: all 0.3s ease;
}

.withdraw-modal input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.withdraw-modal input::placeholder {
    color: #666;
}

.withdraw-modal .message-container {
    padding: 10px;
    margin: 10px 0 20px 0;
    border-radius: 6px;
    font-size: 12px;
    font-family: Arial, sans;
}

.withdraw-modal .button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 0px;
}

.withdraw-modal button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial, sans;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.withdraw-modal .withdraw-btn {
    background: #4CAF50;
    color: white;
}

.withdraw-modal .withdraw-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.withdraw-modal .cancel-btn {
    background-color: #6c757d;
    color: #fff;
    min-width: 120px;
}

.withdraw-modal .cancel-btn:hover {
    background-color: #5a6268;
}

.withdraw-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.withdraw-modal-backdrop.show {
    display: block;
    opacity: 1;
}

/* Ensure withdrawal modal is always properly positioned */
.withdraw-modal.show {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
}

body.modal-open {
    overflow: hidden;
}

body.modal-open .trading-container,
body.modal-open .sidebar,
body.modal-open .bottom-panel {
    filter: blur(5px);
}

body.modal-open .withdraw-modal {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.market-closed-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e1e;
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    z-index: 1050;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #45fff6;
}

.market-closed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.market-closed-icon {
    font-size: 12px;
    font-family: Arial, sans;
    margin-bottom: 20px;
}

.market-closed-content h3 {
    margin: 0 0 10px;
    font-size: 12px;
    font-family: Arial, sans;
}

.market-closed-content p {
    margin: 0 0 20px;
    font-size: 12px;
    font-family: Arial, sans;
    line-height: 1.5;
}

.market-closed-btn {
    background-color: #45fff6;
    color: #131722;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 12px;
    font-family: Arial, sans;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.market-closed-btn:hover {
    background-color: #31e0d5;
}

.market-closed-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1049;
    display: none;
    animation: modalFadeIn 0.3s forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Ensure the modal is hidden by default */
.market-closed-modal {
    display: none;
}

.demo-wallet-message {
    padding: 30px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
    margin: 20px;
    font-family: Arial, sans;
    font-size: 12px;
}

.demo-wallet-message h3 {
    font-size: 12px;
    font-family: Arial, sans;
    color: #ff4444;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.demo-wallet-message p {
    font-size: 12px;
    font-family: Arial, sans;
    line-height: 1.6;
    margin: 0 0 20px;
}

.demo-wallet-message .upgrade-info {
    text-align: left;
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.demo-wallet-message .upgrade-info p {
    font-size: 12px;
    font-family: Arial, sans;
    margin-bottom: 15px;
    color: #45fff6;
}

.demo-wallet-message .upgrade-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-wallet-message .upgrade-info li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    font-family: Arial, sans;
}

.demo-wallet-message .upgrade-info li:before {
    content: '✓';
    color: #00ff00;
    font-family: Arial, sans;
    margin-right: 10px;
    font-size: 12px;
}

.demo-wallet-message .demo-note {
    margin-top: 25px;
    font-size: 12px;
    font-family: Arial, sans;
    color: #888;
}

.withdraw-modal .withdraw-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}

.withdraw-modal .withdraw-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #2a2d34;
    color: #fff;
    font-size: 12px;
    font-family: Arial, sans;
    border: 1px solid #3a3d44;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.withdraw-modal .withdraw-option-btn:hover {
    background-color: #3a3d44;
    border-color: #45fff6;
}

.withdraw-modal .withdraw-option-btn i {
    margin-right: 10px;
    font-size: 20px;
    color: #45fff6;
}

.withdraw-modal .button-container {
    justify-content: center;
}

/* Bank Withdraw Styles */
.withdraw-bank-screen {
    padding: 10px;
    font-family: Arial, sans-serif;
}

.withdraw-bank-screen .input-group {
    margin-bottom: 8px;
}

.withdraw-bank-screen .input-group label {
    display: block;
    margin-bottom: 4px;
    color: #ccc;
    font-size: 12px;
    font-family: Arial, sans;
}

.withdraw-bank-screen .input-group input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: white;
    font-size: 12px;
    font-family: Arial, sans;
    transition: border-color 0.3s;
}

.withdraw-bank-screen .input-group input:focus {
    border-color: #45fff6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(69, 255, 246, 0.2);
}

/* UPI Withdraw Styles */
.withdraw-upi-screen {
    padding: 15px 0;
}

.upi-form {
    margin-bottom: 20px;
}

.upi-form .input-group {
    margin-bottom: 15px;
}

.upi-form label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 12px;
    font-family: Arial, sans;
}

.upi-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: white;
    font-size: 12px;
    font-family: Arial, sans;
    transition: border-color 0.3s;
}

.upi-input:focus {
    border-color: #45fff6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(69, 255, 246, 0.2);
}

.otp-container {
    margin: 10px 0;
}

.send-otp-btn {
    background-color: #45fff6;
    color: #1e1e1e;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-family: Arial, sans;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-otp-btn:hover {
    background-color: #36d6d1;
}

.send-otp-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.otp-input-container {
    margin-top: 15px;
}

.otp-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: white;
    font-size: 12px;
    font-family: Arial, sans;
    letter-spacing: 4px;
    text-align: center;
}

.otp-input:focus {
    border-color: #45fff6;
    outline: none;
}

.otp-timer {
    text-align: right;
    color: #ff9800;
    font-size: 12px;
    font-family: Arial, sans;
    margin-top: 5px;
}

.back-button-container {
    margin: 15px 0 5px;
}

.back-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial, sans;
    padding: 5px 0;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.back-btn i {
    margin-right: 5px;
}

.back-btn:hover {
    color: #fff;
}

.withdraw-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* Modal content transition */
.withdraw-modal-content {
    transition: all 0.3s ease;
}

/* Added CSS for input-group1 to reduce spacing */
.input-group1 {
    margin-bottom: 8px;
}

.input-group1 label {
    display: block;
    margin-bottom: 4px;
    color: #ccc;
    font-size: 12px;
    font-family: Arial, sans;
}

.input-group1 input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: white;
    font-size: 12px;
    font-family: Arial, sans;
    transition: border-color 0.3s;
}

.input-group1 input:focus {
    border-color: #45fff6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(69, 255, 246, 0.2);
}

/* Bank Details Modal Styles */
.bank-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.bank-details-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 14999;
    display: none;
}

.bank-details-modal-content {
    background: linear-gradient(135deg, #1e222d 0%, #2a2f3a 100%);
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 15001;
    margin: auto;
}

.bank-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-details-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    font-family: Arial, sans-serif;
}

.bank-details-header .close-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.bank-details-header .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.bank-details-note {
    padding: 15px 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-details-note p {
    color: #ff9800;
    font-size: 12px;
    margin: 0 0 15px 0;
    font-family: Arial, sans-serif;
    text-align: center;
    font-style: italic;
}

.bank-details-form {
    padding: 25px;
}

.bank-details-form .form-group {
    margin-bottom: 20px;
}

.bank-details-form label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    font-family: Arial, sans-serif;
}

.bank-details-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.bank-details-form input:focus {
    border-color: #45fff6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 255, 246, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.bank-details-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    font-family: Arial, sans-serif;
    display: none;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-actions button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.form-actions .cancel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-actions .cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.form-actions .save-btn {
    background: linear-gradient(135deg, #45fff6 0%, #36B34B 100%);
    color: #fff;
}

.form-actions .save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(69, 255, 246, 0.3);
}

.form-actions .save-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .bank-details-modal {
        padding: 10px;
    }

    .bank-details-modal-content {
        max-width: 100%;
        margin: 0;
    }

    .bank-details-header {
        padding: 15px 20px 10px;
    }

    .bank-details-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
}