/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f0f2f5;
    color: #333;
}

/* Header */
.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e2a38;
    padding: 15px 30px;
    color: white;
    box-shadow: 0 10px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 50px;
}

.buttons {
    display: flex;
    gap: 15px;
}

.btn {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-size: 14px;
}

.btn:hover {
    background-color: #34495e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn.signout {
    background-color: yellow;
}

.btn.signout:hover {
    background-color: #c0392b;
}



/* Layout Container */
.columns-container {
    display: flex;
    height: 100vh;
	
    background-color: #fff;
    border-top: 1px solid #ddd;

	
}

/* Column Structure */
.column1 {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
	overflow:auto;
    height: 100%;     /* Ensures it stretches even if empty */
    flex-shrink: 0;       /* Prevents it from collapsing */
	width:30%

}

.column2 {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
	overflow:auto;
    height: 100%;     /* Ensures it stretches even if empty */
    flex-shrink: 0;       /* Prevents it from collapsing */
	width:30%

}
.column3 {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
	overflow:auto;
    height: 100%;     /* Ensures it stretches even if empty */
    flex-shrink: 0;       /* Prevents it from collapsing */
	width:40%

}
.column .filler {
    flex-grow: 1;
}
.column:last-child {
    border-right: none;
}

/* Column Header */
.column-top-row {
    background-color: #ecf0f1;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
}
.console1 {
    background-color: #f9f9f9;
    padding: 2px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 20px;
}

.column-btn {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-size: 14px;
}

.column-btn:hover {
    background-color: #34495e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Column Content */
.column-content {
    flex: 1;
    padding: 5px;
    background-color: #f9f9f9;
	overflow:auto

	
}

/* Console Styles */
.console-column {
    background-color: #1c1c1c;
    color: #00008B;
    font-family: "Courier New", Courier, monospace;
    overflow-y: auto;
}

.console-content {
    padding: 2px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    white-space: pre-line;
}

.console-message {
    width: 100%;
    padding: 5px 0;
    border-bottom: 1px solid #00ff00;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Styles */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

}

.form-row {
    display: flex;
    align-items: flex-start; /* Center items vertically */
    gap: 10px; /* Adjust gap as needed */
}

.form-column {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group {

    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group select,
.form-group input {
	margin-bottom: 1px;
	margin-left:1px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;

}

.form-group select:focus,
.form-group input:focus {
    border-color: #3498db;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.order-btn {
    flex: 1;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-size: 14px;
    text-align: center;
}

.order-btn:hover {
    background-color: #34495e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.order-btn.place-order {
    background-color: #27ae60;
}

.order-btn.place-order:hover {
    background-color: #2ecc71;
}

.order-btn.cancel-order {
    background-color: #e67e22;
}

.order-btn.cancel-order:hover {
    background-color: #f39c12;
}

.order-btn.exit-order {
    background-color: #e74c3c;
}

.order-btn.exit-order:hover {
    background-color: #c0392b;
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-group {
    display: block;
    align-items: center;
}

.switch-label {
    margin-left: 10px;
    font-size: 14px;
    color: #333;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #3498db;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Media Queries for Responsive Design */
@media (max-device-width: 1200px) {
	
	.btn.signout {
    background-color: yellow;
}

    .columns-container {
        flex-direction: column;
		flex-wrap: nowrap;

    }

    .column1, .column2, .column3 {
		height:100%;
		width:100%;
		flex:1
        border-right: none;
        border-bottom: 1px solid #ddd;

    }

    .column:last-child {
        border-bottom: none;
    }
}

/* Adjust Form Spacing */
.form-group input[type="number"] {
    margin-bottom: 1px; /* Adds vertical space between Stop Loss and Target */
}

/* Align Checkbox Label */
.form-group.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px; /* Adjust this value to fine-tune vertical alignment */
}

.form-group.checkbox-group label {
    margin: 0; /* Reset any default margin */
    font-size: 14px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Darker background for better focus */
    backdrop-filter: blur(5px); /* Adds a blur effect to the background */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: none;
    width: 90%;
    max-width: 50%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: slide-down 0.3s ease-out; /* Smooth slide-down effect */
}

/* Animation for Modal Appearance */
@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

./* Updated Form Styles Inside Modal */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-form .form-group label {
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.settings-form .form-group input[type="number"],
.settings-form .form-group input[type="checkbox"],
.settings-form .form-group input[type="radio"], {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.settings-form .checkbox-group {
    display: block;
    align-items: center;
    justify-content: flex-start;
    width: 100%; /* Ensure the group spans the full width */
    margin-bottom: 15px;
}

.settings-form .checkbox-group label {
    font-size: 14px;
    margin-left: 10px;
}

.settings-form .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.settings-form .order-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-size: 16px;
    text-align: center;
}

.settings-form .order-btn:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.settings-form .order-btn.close {
    background-color: #e74c3c;
}

.settings-form .order-btn.close:hover {
    background-color: #c0392b;
}


.custom-select {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    appearance: none; /* Hide the default dropdown arrow */
    margin: 0 10px; /* Add space around the select item */
}

.custom-select:hover {
    background-color: #34495e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.editor-container {
	position:relative;

    overflow: auto;
    width: 100%; /* Take full width */

}

.CodeMirror {


	margin-left:10px;
	margin-right:10px;
	margin-top:1px;
	padding:2px;
	flex:1
}

.CodeMirror2222 {
    /* height: 70%;  */ /* Remove or adjust this */
    height: auto;   /* Or use a fixed height like '500px' */
    min-height: 200px; /*Optionally set a minimum height*/
    margin-left: 0px;
    margin-right: 1px;
    margin-top: 1px;
    padding: 1px;
    overflow: auto; /* Add this to enable both vertical and horizontal scroll */
}
.CodeMirror33333 {

position:absolute;
top:0;
bottom:0;
left:0;
right:0;
height:100%;
}




.system-console {

    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    color: #36454F;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    border: none;
    resize: none;
    padding: 5px;
    box-sizing: border-box;
    overflow-y: auto;
    outline: none;
}

.button-22 {
	align-items: left;
	appearance: button;
	background-color: #f9f9f9;
	color : darkblue;
	border-radius: 2px;
	border-style: none;
	box-shadow: rgba(255, 255, 255, 0.26) 0 1px 2px inset;
	box-sizing: border-box;
	cursor: pointer;
	font-family: "RM Neue",sans-serif;
	font-size: 100%;
	line-height: 1.15;
	font-weight:bold;
	margin: 0;
	padding: 2px 5px;
	text-align: center;
	vertical-align: middle
	text-transform: none;
	transition: color .13s ease-in-out,background .13s ease-in-out,opacity .13s ease-in-out,box-shadow .13s ease-in-out;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	width:10%;
	height:50px;
}

.button-22:active {
	background-color: #f9f9f9;
}

.button-22:hover {
	background-color: #f9f9f9;
}

@media (max-width: 500px) {
	.btn.signout {
    background-color: yellow;
}

	.columns-container{
		flex-direction: column;
	}
    .column1, .column2, .column3 {
		height:100%;
		width:100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .column-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .column-top-row {
        height: 60px;
    }

    .form-group select,
    .form-group input {
        font-size: 12px;
    }
}

