/* Global settings */
* {
	margin: 0;
	padding: 0;
	border: none;
	box-sizing: border-box;
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;
}
button {
	font-size: 1.2rem;
	padding: 0 1rem;
	color: white;
	border-radius: 0.2rem;
}
button:hover,
select:hover {
	filter: brightness(130%);
	cursor: pointer;
}
.positive {
	color: rgb(31, 197, 31);
}
.negative {
	color: rgb(236, 38, 38);
}

/* Entire window*/
body {
	background-color: #1e1e1e;
	color: white;
	margin: 0;
	padding: 3% 10%;
}

/* Entire dashboard */
.dashboard {
	background-color: #2c2c2c;
	padding: 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.6);
}

/* Header */
.header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.8rem;
}
.header .left {
	display: flex;
	gap: 1rem;
}
.header .coffee-button {
	background-color: rgb(78, 187, 255);
	color: rgb(0, 0, 0);
	align-self: center;
	font-size: 2.1rem;
	padding: 0 1rem;
	border-radius: 2rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.6);
}
.header .coffee-button:hover {
	scale: 120%;
}
.header button {
	background-color: #555;
	height: 2.4rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.6);
}

/* Statistics display */
.stats {
	display: grid;
	grid-template-rows: repeat(2, 1fr);
	grid-template-columns: repeat(5, 1fr);
	gap: 0.5rem;
	margin-top: 0.6rem;
}
.stat-content {
	background-color: #333;
	border-radius: 0.3rem;
	padding: 0.6rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
}
.stat-content.pnl,
.stat-content.wins-losses {
	display: grid;
	align-content: space-evenly;
	gap: 1rem;
}
.total-pnl,
.total-profit,
.total-loss,
.win-rate,
.total-wins,
.total-losses,
.biggest-win,
.biggest-loss,
.average-win,
.average-loss {
	display: grid;
	gap: 0.3rem;
}
.totals-profit-loss,
.totals-win-loss {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}
.pnl-line,
.win-loss-line {
	display: flex;
	height: 0.6rem;
	width: 100%;
	background-color: gray;
}
.pnl-line #profit,
.win-loss-line #wins {
	background-color: green;
	height: 100%;
}
.pnl-line #loss,
.win-loss-line #losses {
	background-color: red;
	height: 100%;
}
#trades-amount,
#trades-average {
	display: grid;
	align-content: space-evenly;
}
#pnl-history {
	grid-column: 3 / 6;
	grid-row: 1 / 3;
}
.chart-header {
	display: flex;
	justify-content: space-between;
	font-size: 1.6rem;
}
.chart-header select {
	background-color: #555;
	color: white;
	font-size: 1.3rem;
	min-width: 0;
	padding: 0.3rem 0 0.3rem 0.5rem;
	box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.8);
}

/* Trade Calendar */
.trade-calendar {
	display: flex;
	gap: 0.5rem;
}
.fc {
	background-color: #333;
	padding: 0.6rem;
	border-radius: 0.3rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
	height: 50rem;
	width: 100%;
}
.fc .fc-toolbar.fc-header-toolbar {
	margin-bottom: 0.6rem;
}
.fc .fc-toolbar.fc-header-toolbar button {
	background-color: #555;
	border: none;
	box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.6);
}
.fc-daygrid-day {
	background-color: #333;
	height: 6rem;
}
.fc-daygrid-day:hover {
	filter: brightness(1.2);
	cursor: pointer;
}
.fc-day-other {
	filter: brightness(0.5);
}
.fc-event {
	display: flex;
	font-size: 1.6rem;
	font-weight: bold;
	justify-content: center;
}
.weekly-total {
	background-color: #333;
	border-radius: 0.3rem;
	height: 50rem;
	width: 20rem;
	padding: 0.6rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
}
.weekly-total .weekly-summary-title {
	font-size: 1.75rem;
	text-align: center;
	border-bottom: 4px solid #1e1e1e;
	padding-bottom: 0.6rem;
	margin-bottom: 1.53rem;
}
.week-item {
	background-color: #333;
	height: 7.4rem;
	display: flex;
	flex-direction: column;
	padding: 0.6rem 1rem;
	border-top: 1px solid white;
	border-right: 1px solid white;
	border-left: 1px solid white;
}
.week-item:nth-child(6) {
	border-bottom: 1px solid white;
}
.week-item:hover {
	filter: brightness(1.2);
	cursor: pointer;
}
.week-item-title {
	margin-bottom: 0.7rem;
	font-size: 1.8rem;
}
.week-item-profit {
	font-size: 1.6rem;
	margin-left: 1rem;
}
.week-item-trade-count {
	color: rgb(200, 200, 200);
	font-size: 1.2rem;
	margin-left: 1rem;
}

/* Add-Trade display*/
.trade-form {
	background-color: #333;
	display: flex;
	padding: 0.6rem;
	margin: 0.5rem 0;
	border-radius: 0.3rem;
	gap: 0.5rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
}
.trade-form input,
.trade-form select {
	font-size: 1.3rem;
	min-width: 0;
	padding: 0.3rem 0 0.3rem 0.5rem;
	box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.8);
	font-weight: bold;
}
.trade-form select {
	width: 6rem;
}
.trade-form #contracts {
	width: 13rem;
}
.trade-form button {
	background-color: rgb(64, 121, 64);
}

/* Trade History display*/
.trade-history {
	background-color: #333;
	padding: 0.6rem;
	border-radius: 0.3rem;
	box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
}
.trade-history .history-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	font-size: 1.6rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #777;
}
.trade-history #totalTrades {
	left: 50%;
	transform: translateX(-50%);
}
.trade-history .history-header button {
	font-size: 1.3rem;
	padding: 0.2rem;
}
.trade-history .trade-table {
	max-height: 30rem;
	overflow: auto;
}
.trade-history table {
	width: 100%;
	border-collapse: collapse;
	border: 0.1rem solid #777;
	text-align: left;
	table-layout: fixed;
}
.trade-history th {
	background-color: #444;
	border: 0.1rem solid #777;
	padding: 0.3rem;
}
.trade-history th:nth-child(9) {
	width: 7.3rem;
}
.trade-history td {
	background-color: #333;
	border: 0.1rem solid #777;
	padding: 0.4rem;
	font-size: 1.2rem;
}
.trade-history button {
	background-color: rgb(129, 65, 65);
	box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.8);
}
.trade-history .trade-table::-webkit-scrollbar {
	width: 0.7rem;
}
.trade-history .trade-table::-webkit-scrollbar-track {
	background: #999;
}
.trade-history .trade-table::-webkit-scrollbar-thumb {
	background: #666;
	border-radius: 0.5rem;
	padding: 0.2rem;
}
.trade-history .trade-table::-webkit-scrollbar-thumb:hover {
	background: #555;
}
