:root{
	--app-col: rgb(207, 62, 62);
	--green-col: rgb(0, 128, 0);
	--green-col-rgb: 0, 128, 0;
}

html{
	width: 100vw;
	height: 100vh;
	background-image: url("/imges/bg.svg");

	display: flex;
	justify-content: center;
	align-items: center;
}

html, button, input, textarea{
	color: white;
	font-family: "Panton";
}

body{
	width: 400px;
	height: calc(100% - 40px);

	/*background: #3d3d3d33;*/
	background: linear-gradient(to top, #181818, #494949);
	border-radius: 24px;
	box-shadow: 0px 0px 22px rgba(0,0,0,0.2);

	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

tabmenu{
	width: 100%;
	height: 65px;

	display: flex;
	justify-content: center;
	align-items: center;
}

tabmenu pad{
	width: 20%;
	height: calc(100% - 4px);
	margin: 2px 1px;

	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	border-radius: 2px;

	cursor: pointer;
	user-select: none;

	transition: ease 0.2s;
}

tabmenu pad:hover{
	background: rgba(255,255,255,0.05);
}

tabmenu pad img{
	width: 25px;
	height: 25px;
	margin-bottom: 5px;
}

tabmenu pad text{
	width: 100%;
	height: 10px;

	font-size: 8pt;
	text-align: center;
}

screen{
	width: 100%;
	height: 100%;
	position: relative;

	display: flex;
	overflow: hidden;
}

page{
	width: 100%;
	height: 100%;
	position: absolute;

	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;

	transition: ease 0.3s;
}
page.closed{
	transform: translateY(-30px) scale(0.9);
	user-select: none;
	pointer-events: none;
	opacity: 0;
}

h1, h2, h3, h4, h5, h6{
	width: 100%;
	margin: 0;
	padding: 0;

	display: flex;
	justify-content: center;
	align-items: center;
}

h1{
	width: calc(100% - 40px);
	font-size: 24pt;
	padding: 10px 0;
	margin: 10px 0;

	border: 2px solid var(--app-col);
	border-left: 0; border-right: 0;
}

h2.centered{
	text-align: center;
}

h2{
	font-size: 16pt;
}

space{
	height: 50px;
}

button{
	width: 80%;
	height: 50px;
	margin: 10px 0;

	outline: 0; border: 0;
	/*background: var(--app-col);*/
	border: 2px solid var(--app-col);
	background: transparent;
	border-radius: 8px;
	
	font-size: 20pt;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.2);

	transition: ease 0.3s;
}
button:hover{
	background: var(--app-col);
}

button.disabled-button {
    opacity: 0.5;
    cursor: not-allowed;
}

.error-text {
    color: red;
    font-size: 10pt;
    margin-top: -5px; /* Немного поднять, чтобы он был ближе к кнопке/полю */
    text-align: center;
    width: 80%;
}

.hidden {
    display: none !important;
}

/* Graph Styles */
graph-data {
    width: calc(100% - 40px);
    height: 200px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

graph-header {
    font-size: 14pt;
    margin-bottom: 20px;
}

graph-bars {
    width: calc(100% - 40px);
    height: 120px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin-bottom: 10px;
}

graph-bar {
    width: 20px;
    background-color: var(--app-col);
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    justify-content: center;
    transition: height 0.5s ease;
}

graph-bar-value {
    position: absolute;
    top: -20px;
    font-size: 10pt;
}

graph-legend {
    width: calc(100% - 40px);
    display: flex;
    justify-content: space-around;
    font-size: 8pt;
}

graph-legend-item {
    text-align: center;
    width: 20px; /* Должно соответствовать ширине столбца */
}
