        body {
            margin: 0;
            padding: 20px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: #1e222d;
            color: #ffffff;
        }
        #chart-container {
            position: relative;
            width: calc(100% - 280px);
            height: 600px;
            margin-top: 20px;
            box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
            border-radius: 8px;
            filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.7));
            transition: all 0.3s ease;
        }
        .header {
            text-align: left;
            margin-bottom: 20px;
            float: left;
            margin-left: 240px;
            margin-top: 20px;
        }
        .symbol {
            font-size: 24px;
            font-weight: bold;
            color: #00ff00;
            text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
        }
        .symbol .asset-name {
            display: none;
        }
        .price {
            font-size: 18px;
            margin-left: 10px;
            color: #ffffff;
            transition: all 0.5s ease-in-out;
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
            animation: pulse 2s infinite;
        }
        .price.up {
            color: #00ff00;
            text-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
        }
        .price.down {
            color: #ff0000;
            text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
        }
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }
        #price-marker {
            position: absolute;
            right: 10px;
            transform: translateY(-50%);
            background: rgba(30, 34, 45, 0.9);
            padding: 5px 10px;
            border-radius: 4px;
            font-weight: bold;
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }
        #price-marker.up {
            border-left: 3px solid #00ff00;
            color: #00ff00;
            text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
        }
        #price-marker.down {
            border-left: 3px solid #ff0000;
            color: #ff0000;
            text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
        }
        .trading-panel {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 200px;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            z-index: 1000;
            background: rgba(30, 34, 45, 0.95);
            border-radius: 8px;
            padding: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .balance-section {
            display: flex;
            padding: 8px;
            gap: 8px;
        }
        .balance-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }
        .balance-label {
            font-size: 11px;
            color: #888;
        }
        .balance-amount {
            font-size: 14px;
            font-weight: bold;
            color: #00ff88;
            text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
        }
        .amount-section {
            display: flex;
            gap: 5px;
            align-items: center;
        }
        .amount-input {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 6px;
            font-size: 13px;
            border-radius: 4px;
            width: 100%;
        }
        .amount-buttons {
            display: none;
        }
        .duration-section {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .duration-select {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 6px;
            border-radius: 4px;
            width: 120px;
            font-size: 13px;
            cursor: pointer;
        }
        .duration-select:hover {
            background: rgba(0, 0, 0, 0.3);
        }
        .duration-select option {
            background: #1e222d;
            color: white;
        }
        .trade-button {
            padding: 8px;
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 13px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            width: 100%;
            margin: 2px 0;
        }
        .call-button {
            background: linear-gradient(135deg, #00a841, #006828);
            box-shadow: 0 0 20px rgba(0, 168, 65, 0.3);
        }
        .call-button:hover {
            background: linear-gradient(135deg, #00c04c, #007830);
            box-shadow: 0 0 30px rgba(0, 168, 65, 0.5);
        }
        .put-button {
            background: linear-gradient(135deg, #a80000, #680000);
            box-shadow: 0 0 20px rgba(168, 0, 0, 0.3);
        }
        .put-button:hover {
            background: linear-gradient(135deg, #c00000, #780000);
            box-shadow: 0 0 30px rgba(168, 0, 0, 0.5);
        }
        .timer-display {
            text-align: center;
            font-size: 16px;
            font-weight: bold;
            color: #ffffff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
            padding: 4px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 4px;
        }
        .profit-display {
            color: #00ff00;
            font-size: 14px;
        }
        .loss-display {
            color: #ff0000;
            font-size: 14px;
        }
        .trade-result-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            background: rgba(0, 0, 0, 0.9);
            padding: 30px 50px;
            border-radius: 15px;
            text-align: center;
            z-index: 1001;
            animation: popIn 0.5s ease forwards;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
            min-width: 200px;
        }
        .trade-result-overlay div {
            margin: 5px 0;
        }
        .trade-result-overlay.win {
            border: 2px solid #00ff00;
        }
        .trade-result-overlay.loss {
            border: 2px solid #ff0000;
        }
        .trade-result-overlay .result-text {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 15px;
        }
        .trade-result-overlay .profit-amount {
            font-size: 24px;
        }
        .trade-result-overlay.win .result-text,
        .trade-result-overlay.win .profit-amount {
            color: #00ff00;
            text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
        }
        .trade-result-overlay.loss .result-text,
        .trade-result-overlay.loss .profit-amount {
            color: #ff0000;
            text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
        }
        @keyframes popIn {
            0% {
                transform: translate(-50%, -50%) scale(0);
                opacity: 0;
            }
            50% {
                transform: translate(-50%, -50%) scale(1.2);
                opacity: 0.8;
            }
            100% {
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
            }
        }
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        .trade-started-marker {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(4px);
            padding: 8px 15px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: bold;
            color: #fff;
            z-index: 1000;
            transform: translate(-50%, -50%);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .price-line {
            position: absolute;
            height: 2px;
            background: linear-gradient(
                to right,
                rgba(255, 255, 255, 0.2) 0%,
                rgba(255, 255, 255, 1) 20%,
                rgba(255, 255, 255, 1) 50%,
                rgba(255, 255, 255, 1) 80%,
                rgba(255, 255, 255, 0.2) 100%
            );
            width: 100%;
            z-index: 999;
            box-shadow: 
                0 0 10px rgba(255, 255, 255, 0.8),
                0 0 20px rgba(255, 255, 255, 0.4);
            pointer-events: none;
            border-top: 1px solid rgba(255, 255, 255, 0.9);
        }
        .admin-panel {
            background: rgba(30, 34, 45, 0.95);
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
            clear: both;
            width: calc(100% - 340px);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
            display: none;
        }
        .admin-panel h3 {
            color: #ffffff;
            margin: 0 0 15px 0;
            font-size: 18px;
        }
        .win-rate-control {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .win-rate-slider {
            flex: 1;
            -webkit-appearance: none;
            height: 8px;
            border-radius: 4px;
            background: linear-gradient(to right, #00ff88 var(--value), #333 var(--value));
            outline: none;
        }
        .win-rate-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #00ff88;
            cursor: pointer;
            box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
        }
        .win-rate-display {
            min-width: 80px;
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 4px;
            color: #00ff88;
            text-align: center;
            font-weight: bold;
        }
        .admin-section {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        .balance-input-group {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            align-items: center;
        }
        .balance-input {
            flex: 1;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 8px;
            border-radius: 4px;
        }
        .add-balance-btn {
            background: #00ff88;
            color: #1e222d;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }
        .add-balance-btn:hover {
            background: #00cc6a;
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
        }
        .asset-button {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 8px;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
            margin-bottom: 8px;
            font-size: 13px;
            transition: all 0.3s;
            margin: 10px 0px 0px 0px;
        }
        .asset-button:hover {
            background: rgba(0, 0, 0, 0.3);
            border-color: rgba(255, 255, 255, 0.2);
        }
        .asset-icon {
            width: 32px;
            height: 32px;
            margin-right: 8px;
            vertical-align: middle;
        }
        .trade-history {
            margin-top: 8px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 4px;
            padding: 8px;
            max-height: 200px;
            overflow-y: auto;
            font-size: 12px;
            height: 180px;
        }
        .trade-history-title {
            color: #888;
            font-size: 11px;
            margin-bottom: 8px;
            font-weight: bold;
            padding: 0 4px;
        }
        .trade-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 4px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.1);
            margin-bottom: 4px;
            border-radius: 3px;
        }
        .trade-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .price-arrow {
            color: #888;
            font-size: 10px;
        }
        .entry-price, .exit-price {
            font-family: 'Consolas', monospace;
            background: rgba(0, 0, 0, 0.2);
            padding: 2px 4px;
            border-radius: 3px;
            min-width: 70px;
            text-align: right;
        }
        .trade-amount {
            color: #888;
            font-size: 11px;
            background: rgba(0, 0, 0, 0.2);
            padding: 2px 4px;
            border-radius: 3px;
        }
        .trade-result {
            font-weight: bold;
            font-size: 12px;
            min-width: 60px;
            text-align: right;
        }
        .trade-result.win {
            color: #00ff88;
        }
        .trade-result.loss {
            color: #ff3333;
        }
        /* Add custom scrollbar for trade history */
        .trade-history::-webkit-scrollbar {
            width: 6px;
        }
        .trade-history::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 3px;
        }
        .trade-history::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }
        .trade-history::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }
        /* Media queries for responsiveness */
        @media screen and (max-width: 768px) {
            .trade-history {
                font-size: 11px;
                padding: 6px;
            }
            
            .trade-prices {
                gap: 4px;
            }
            
            .entry-price, .exit-price {
                min-width: 60px;
                padding: 1px 3px;
            }
        }
        @media screen and (max-width: 1200px) {
            #chart-container {
                width: calc(100% - 260px);
            }
            
            .trading-panel {
                width: 200px;
            }
        }
    
        @media screen and (max-width: 992px) {
            #chart-container {
                width: calc(100% - 240px);
            }
            
            .trading-panel {
                width: 200px;
            }
            
            .trade-button {
                padding: 8px;
                font-size: 13px;
            }
        }
    
        @media screen and (max-height: 800px) {
            .trading-panel {
                gap: 15px;
                padding: 10px;
            }
            
            .balance-section {
                padding: 8px;
            }
        }
        .custom-alert {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(30, 34, 45, 0.95);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
            z-index: 2000;
            text-align: center;
            min-width: 300px;
            border: 2px solid #ff3333;
            animation: alertPop 0.3s ease-out;
        }
    
        .custom-alert-title {
            font-size: 18px;
            color: #ff3333;
            margin-bottom: 15px;
            font-weight: bold;
        }
    
        .custom-alert-message {
            color: #ffffff;
            margin-bottom: 20px;
        }
    
        .custom-alert-button {
            background: linear-gradient(135deg, #ff3333, #cc0000);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }
    
        .custom-alert-button:hover {
            background: linear-gradient(135deg, #ff4444, #dd0000);
            box-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
        }
    
        @keyframes alertPop {
            0% {
                transform: translate(-50%, -50%) scale(0.8);
                opacity: 0;
            }
            100% {
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
            }
        }
        .broker-header {
            position: fixed;
            top: 20px;
            left: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1000;
        }
        .broker-logo {
            width: 40px;
            height: 40px;
        }
        .broker-name {
            font-size: 24px;
            font-weight: bold;
            color: #00ff88;
            text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
        }
        .ocultar{
            display: none;
        }
        .login-container {
            background: #272d40;
            padding: 20px; 
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            width: 300px;
            position: fixed; 
            top: 50%; 
            left: 50%; 
            transform: translate(-50%, -50%); 
            z-index: 9999; 
            display: none; 
        }
        .login-container h2 {
            margin-bottom: 20px;
            text-align: center;
        }
        .login-container input {
            width: 90%;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }
        .login-container button {
            width: 100%;
            padding: 10px;
            background:linear-gradient(135deg, #00a841, #006828);
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
        }
        .login-container button:hover {
            background: #0056b3;
        }
        .broker-header {
        position: fixed;
        top: 20px;
        left: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 1000;
        }
        .broker-logo {
            width: 40px;
            height: 40px;
        }
        .broker-name {
            font-size: 24px;
            font-weight: bold;
            color: #00ff88;
            text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
        }
        .login-cancelar{
            width: 100%;
            padding: 0px 0px 10px 0px;
            background:linear-gradient(135deg, #a80000, #680000)!important;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
        }
        .drawing-options {
            display: flex;
            justify-content: center;
            margin-bottom: 15px;
            gap: 15px;
            padding: 10px 0px 0px 0px;
        }
        
        .color-option {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid transparent;
        }
        
        .color-option.active {
            border-color: #333;
        }
@media screen and (max-width: 768px) {
    body {
        padding: 10px;  
    }

    #chart-container {
        width: 100%;
        height: 400px;  
    }

    .header {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }

    .symbol {
        font-size: 20px; 
    }

    .price {
        font-size: 16px;
    }

    .trading-panel {
        width: 100%; 
        position: relative;
        top: 0;
        right: 0;
        margin-top: 15px;
    }

    .balance-section {
        padding: 5px;  
    }

    .balance-item {
        flex: 1;
        font-size: 14px; 
    }

    .amount-input {
        width: 90%;  
        padding: 5px;
    }

    .trade-button {
        font-size: 12px; 
        padding: 6px;
    }

    .call-button, .put-button {
        font-size: 12px; 
    }

    .duration-select {
        width: 100%;  
    }

    .trade-history {
        font-size: 12px;  
        padding: 10px;
        max-height: 250px;  
    }

    .trade-item {
        padding: 4px 2px;
    }
}

@media screen and (max-width: 992px) {
    #chart-container {
        width: 100%;
        height: 450px;
    }

    .trading-panel {
        width: 100%;
    }

    .balance-section {
        padding: 8px;
    }

    .balance-item {
        font-size: 16px;
    }

    .amount-input {
        width: 80%;
    }

    .trade-button {
        font-size: 14px;
        padding: 8px;
    }
}

@media screen and (min-width: 1600px) {
    #chart-container {
        width: calc(100% - 300px); 
    }

    .trading-panel {
        width: 300px;
    }
}

.admin-panel {
    background: rgba(30, 34, 45, 0.95);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    clear: both;
    width: calc(100% - 340px); 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: none;
}

.admin-panel h3 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 18px;
}


@media (max-width: 768px) {
    .admin-panel {
        width: 100%; 
        padding: 15px; 
    }
}



.asset-button {
    background: #1e222d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%; 
    margin-bottom: 8px;
    font-size: 13px;
    transition: all 0.3s;
    margin: 10px 0px 0px 0px;
}


.asset-button:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .asset-button {
        padding: 12px; 
        font-size: 14px; 
    }
}


@media (max-width: 768px) {
    .login-container {
        width: 90%; 
        max-width: 400px; 
        padding: 15px; 
        left: 300px; 
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 90%; 
        max-width: 350px; 
        padding: 10px; 
        left: 200px; 
    }
}

@media (max-width: 768px) {
    .broker-header {
        margin-left: 190px; 
    }
}



@media (max-width: 768px) {
    .Login_user {
        display: inline-flex; 
        align-items: center; 
        left: 10px; 
        white-space: nowrap; 
    }
}


.login_user {
    padding: 0px;
    font-size: 20px;
    position: relative;
    display: inline-flex; 
    left: 0; 
}


--------------------------

.chart-type-selector {
    margin: 10px 0;
    display: flex;
    gap: 10px;
}

.chart-type-selector button {
    background-color: #333;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.chart-type-selector button:hover {
    background-color: #00ff88;
}


/*//////////////////////////////*/


.info-panel {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.current-price {
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s;
}

.stats {
    display: flex;
    gap: 20px;
}

.stats div {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #e9ecef;
    min-width: 120px;
    text-align: center;
}

.drawing-tools {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 15px;
    gap: 10px;
    flex-wrap: nowrap;
}

.drawing-tool {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    background-color: #34495e;
    color: white;
    transition: background-color 0.3s;
}

.drawing-tool.active {
    background-color: #16a085;
}

.drawing-tool:hover {
    opacity: 0.9;
}

.drawing-options {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    gap: 15px;
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option.active {
    border-color: #333;
}

#drawing-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#drawing-canvas.active {
    pointer-events: all;
    cursor: crosshair;
}

@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .info-panel {
        flex-direction: column;
        gap: 10px;
    }
}

.symbol,
#current-price,
#Login-user-id {
  visibility: hidden !important;
}
