/* bof */

*
{
	border: 0px;
	padding: 0px;
	margin: 0px;
	outline: none;

	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	font-family: "Noto Sans", "Helvetica", "Arial";
	font-size: 12px;
}

html
{
	background-color: #eee;
}
html.dark
{
	background-color: #000;
}

body
{
	background-color: #fff;

	width: 100%;
	max-width: 500px;
	min-width: 300px;

	margin: 0 auto;
	align: center;
	padding: 0px 20px;
}
.dark body
{
	background-color: #000;
}

#connect-btn
{
	float: right;
	padding: 10px 20px;
	background-color: #FF5722;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	margin-top: 20px;
	animation: pulseConnect 2.0s infinite;
	transition: all 0.3s ease-in-out;  /* Add this for smooth transition */
}
#connect-btn:hover
{
	background-color: #ccc;
	color: #000;
}
.dark #connect-btn
{
	background-color: #222;
	border: 1px solid #222;
}
.dark #connect-btn:hover
{
	background-color: #333;
	color: #fff;
}

#disconnect-btn
{
	display: none;
	float: right;
	padding: 10px 20px;
	background-color: #000;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	margin-top: 20px;
	transition: all 0.3s ease-in-out;
}
#disconnect-btn:hover
{
	background-color: #ccc;
	color: #000;
}
.dark #disconnect-btn
{
	background-color: #222;
}
.dark #disconnect-btn:hover
{
	background-color: #333;
	color: #fff;
}

table
{
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

td
{
	padding: 5px;
	text-align: left;
	width: 50%;
	border-bottom: 1px dotted #444;
}
td.noborder
{
	border-bottom: 0px;
}
.dark td
{
	color: #999;
}

h3
{
	float: left;
	display: inline-block;
	margin-bottom: 10px;
}
.dark h3
{
	color: #fff;
}

.progress-bar-container
{
	width: 100%;
	border: 1px solid #eee;
	background-color: #eee;
	border-radius: 4px;
	margin: 8px 0;
	transition: opacity 0.5s ease-in-out;
	opacity: 1;
}
.dark .progress-bar-container
{
	border: 1px solid #666;
	background-color: #000;
}
.off .progress-bar-container
{
  		opacity: 0.33;
}
.progress-bar-container:hover,
.off .progress-bar-container:hover
{
 	opacity: 1;
}

.progress-bar
{
	width: 0%;
	height: 8px;
	background-color: #4caf50;
	border-radius: 4px;
	transition: all 0.3s ease-in-out;
	opacity: 0.25;
}
.dark .progress-bar
{

}
.progress-bar-container:hover .progress-bar,
.off .progress-bar-container:hover .progress-bar
{
	opacity: 0.50;
}

.logo
{
	overflow: hidden;
	display: flex;
	justify-content: center;	/* Centers horizontally */
	align-items: center;		/* Centers vertically */
	width: 100%;
	max-width: 300px;
	transition: all 0.3s ease-in-out;
	height: 230px;
}
.logo.resized
{
	max-width: 125px;
	height: auto;
}
.logo.resized img
{
	margin-top: 20px;
}
.logo img
{
	width: 100%;
	transition: width 0.3s ease-in-out;  /* Smooth resize for the image */
}

#serial-number,
#firmware,
#firmware-ble
{
	font-family: "Ubuntu Mono";
	font-size: 14px;
}

#toggleDetailsBtn,
#toggleSettingsBtn,
#toggleHelpBtn,
#toggleProfilesBtn
{
	background-color: #fff;
	color: #999;
	border: 0px;
	cursor: pointer;
	font-weight: bold;
	height: 20px;
	line-height: 20px;
	width: 20px;
	float: left;
	margin-top: 2px;
	margin-right: 10px;
	transition: all 0.3s ease-in-out;
}
.dark #toggleDetailsBtn,
.dark #toggleSettingsBtn,
.dark #toggleHelpBtn,
.dark #toggleProfilesBtn
{
	background-color: #000;
}
#toggleDetailsBtn:hover,
#toggleSettingsBtn:hover,
#toggleHelpBtn:hover,
#toggleProfilesBtn:hover
{
	color: #FF5722;
}
#toggleDetailsBtn.opened,
#toggleSettingsBtn.opened,
#toggleHelpBtn.opened,
#toggleProfilesBtn.opened
{
	color: #FF5722;
}

#headerContainer
{
	opacity: 0;
	overflow: hidden;
	animation: fadeIn 1s ease-in-out forwards; /* 2s fade-in animation */
}

#mainContainer
{
	overflow: hidden;
}

.tab-container
{
	display: none;
	margin-top: 10px;
	border: 1px solid #444;
	overflow: hidden;
	border-radius: 10px;
	padding: 10px;
}

table.info td b
{
	color: white;
}
table.info.profiles td
{
	width: 25%;
	white-space: nowrap;
}
table.info.profiles input[type="text"]
{
	width: 90px;
	border: 1px solid #999;
	background-color: #000;
	color: #999;
	text-align: center;
	float: right;
	margin-right: 10px;
}
table.info.profiles input[type="text"].full
{
	width: 100%;
}
table.info.profiles td.buttons
{
	text-align: right:
}
table.info.profiles button,
.profileButton
{
	display: inline-block;
	padding: 0px 10px;
	margin-left: 10px;
	float: right;
}
.profileButton
{
}

#profileList
{
	display: none;
}
#profileList a
{
	color: #999;
	text-decoration: none;
}
#profileList a:hover
{
	color: #FF5722;
	text-decoration: underline;
}

#profileEdit
{
}

.timeout
{
	float: right;
	height: 20px;
	line-height: 20px;
}
.dark .timeout
{
	color: #ccc;
}

#volcano-unit-toggle
{
	transition: all 0.5s ease;
}
.off #volcano-unit-toggle
{
	animation: pulse 2.0s infinite;
}

.volcano-control-container
{
	background-color: black;
	padding: 20px;
	margin-top: 20px;
	margin-bottom: 20px;
	border-radius: 10px;
	color: white;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	transition: opacity 0.5s ease-in-out;
	opacity: 1;
}
.off .volcano-control-container
{
	opacity: 0.33;
}
.dark .volcano-control-container
{
	padding: 0px;
}

.volcano-control-row
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.volcano-info
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 60px;
	width: 120px;
	border: 2px solid white;
	border-radius: 10px;
	background-color: #333;
	color: white;
	text-align: center;
	position: relative; /* Allows child elements to be positioned relative to this container */
	cursor: pointer;
}
.dark .volcano-info
{
	background-color: #000;
}

.volcano-info-input
{
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;

	position: absolute;
	display: none;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 10px;
	z-index: 10;
	background-color: #fff;
	text-align: center;
	font-family: "Ubuntu Mono";
	font-size: 48px;
}

.volcano-info-line
{
	font-family: "Ubuntu Mono";
	font-size: 24px;
}

.volcano-control-btn
{
	background-color: transparent;
	border: 2px solid #999;
	color: white;
	font-size: 24px;
	font-weight: bold;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.volcano-control-btn:hover
{
	background-color: #444;
}

.volcano-control-btn.on
{
	background-color: orange;
	color: black;
}
.dark .volcano-control-btn.on
{
	background-color: black;
	color: orange;
	border: 2px solid orange;
}
.dark .volcano-control-btn.on:hover
{
	background-color: orange;
	color: black;
}

.volcano-power-btn
{
	width: 80px;
	height: 80px;
	line-height: 76px;
}

.volcano-air-btn
{
	width: 80px;
	height: 80px;
	line-height: 76px;
}

.volcano-small-btn
{
	width: 60px;
	height: 60px;
	line-height: 56px;
	font-size: 60px;
}
#volcano-minus-btn
{
	font-size: 30px;
}
#volcano-plus-btn
{
	font-size: 60px;
	font-weight: normal;
}

#volcano-set-temp
{
	color: white;
}
#volcano-current-temp
{
	color: orange;
}

.spinner-container
{
	display: none;
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	background-color: rgba(0,0,0,0.5);
	z-index: 9999;
}

.spinner-container .spinner
{
	position: absolute;
	left: 50%;
	top: 80px;
	margin-left: -25px;
	border: 8px solid #f3f3f3;  /* Light gray background */
	border-top: 8px solid #3498db;  /* Blue color */
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 2s linear infinite;
	z-index: 10000;
}

td.input
{
	padding: 0px;
}

select
{
	width: 90px;

	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;

	border: 0px;
	border-radius: 0px;
	border: 1px solid #999;
	color: #999;
	text-align: center;
	text-align-last: center; /* Ensures selected value is centered */
	cursor: pointer;
	transition: all 0.3s ease-in-out;  /* Add this for smooth transition */
	float: right;
	margin-right: 10px;
}
select:hover
{
	border: 1px solid #FF5722;
	color: #FF5722;
}
.dark select
{
	background-color: #000;
}

@keyframes spin
{
	  0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
@keyframes pulse
{
	0%
	{
		border-color: #999;
	}
	50%
	{
		border-color: #fff;
	}
	100%
	{
		border-color: #999;
	}
}

@keyframes pulseConnect
{
	0%
	{
		border-color: #222;
	}
	50%
	{
		border-color: #999;
	}
	100%
	{
		border-color: #222;
	}
}

@keyframes fadeIn
{
	from
	{
		opacity: 0;
	}
	to
	{
		opacity: 1;
	}
}

@media (max-width: 450px)
{
	.volcano-info
	{
		width: 80px;
	}
	.volcano-info-input
	{
		font-size: 32px;
	}

	.volcano-control-btn
	{
		font-size: 16px;
	}

	.volcano-power-btn,
	.volcano-air-btn
	{
		width: 60px;
		height: 60px;
		line-height: 56px;
	}

	.volcano-small-btn
	{
		width: 50px;
		height: 50px;
		line-height: 46px;
	}
}

/* eof */
