/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

body.night-mode {
    background-color: #1e1e1e;
    color: #d4d4d4;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #222;
    color: #fff;
}

.header .left select,
.header .right button {
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.header .right button:hover {
    background-color: #555;
}

.header-right {
    display: flex;          /* Enable flexbox */
    align-items: center;    /* Vertically center items */
    gap: 16px;              /* Add spacing between elements */
}

/* Main Content Section */
#main-content {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    flex: 1;
}

/* Graph Section */
#graph-section {
    flex: 1;
    margin-right: 20px;
}

#graph-container {
    max-width: 100%;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

canvas {
    width: 100%;
    height: auto;
}

/* Right Side Content */
.right-content {
    display: flex;
    flex-direction: column;
    width: 650px;
}

/* Asset Info Section */
#asset-info {
 	border: 1px solid #ccc;
	margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button-green, .button-red {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    color: #fff;
	width:80%;
}

.button-green {
    background-color: #28a745;
}

.button-green:hover {
    background-color: #218838;
}

.button-red {
    background-color: #dc3545;
}

.button-red:hover {
    background-color: #c82333;
}

/* Last Trades Section */
.last-trades {
    padding: 5px;
    background: #222;
    color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.last-trades h3 {
    margin-bottom: 10px;
}

#trades-table {
    width: 100%;
    border-collapse: collapse;
}

#trades-table th, #trades-table td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #444;
}

#trades-table th {
    background-color: #333;
    font-weight: bold;
    color: #fff;
}

#trades-table td {
    background-color: #2b2b2b;
}



.trade-wrapper {
	max-width: 800px;
	margin: 20px auto;
	font-family: Arial, sans-serif;
	display: flex;
	justify-content: space-between;
}
.buy-sell-section {
	border: 1px solid #ccc;
	padding: 15px;
	width: 48%; /* Adjust width to fit side by side */
	border-radius: 5px;
}
.form-group {
	margin-bottom: 15px;
}
label {
	display: block;
	margin-bottom: 5px;
}
input[type="text"] {
	width: 80%;
	padding: 5px;
	margin-right: 10px;
}
button[type="submit"] {
	padding: 10px 40px; /* Increased horizontal padding for wider buttons */
	width: 100%; /* Full width of the container */
	max-width: 200px; /* Optional: cap the width */
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}
button[type="submit"]:hover {
	background-color: #0056b3;
}
.sell button[type="submit"] {
	background-color: #dc3545;
}
.sell button[type="submit"]:hover {
	background-color: #b02a37;
}



/* Responsive Design */
@media (max-width: 768px) {
    #main-content {
        flex-direction: column;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .right-content {
        width: 100%;
    }

    #graph-container {
        margin-bottom: 20px;
    }
    table {
        font-size: 0.6rem; /* Smaller text on mobile */
    }

    td, th {
        padding: 1px; /* Reduce padding */
        white-space: normal; /* Allow text to wrap */
    }	
}

