:root {
    --primary-color: #357984;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --header-height: 64px;
    --footer-height: 56px;
	--inactive-color: #ccc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
	font-size: 16px;
}

.active, .toolbar-icon.active {
	fill: var(--primary-color) ;
}

.hidden {
  display: none;
}


.intro-area {
	margin-top: 1rem;
}

h1 {
	font-weight: 500;
	font-size: 1.6rem;
}

p {
	margin-top: 20px;
	line-height: 1.6rem;
	color: #777;
}

p strong {
	color: var(--primary-color);
}

.app-header {
    height: var(--header-height);
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    width: 200px;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logout-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: normal;
}

.logout-link:hover {
    text-decoration: underline;
}

.app-main {
    padding: calc(var(--header-height) + 20px) 20px calc(var(--footer-height) + 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background-color: var(--bg-color);
    overflow: auto;
}

canvas {

}

.loader {
	text-align: center;
	margin: 50px 0 50px 0; 
}

.loader svg {
	fill: #ccc;
	height: 60px;
	width: 60px;
	animation: loader 3s linear infinite;
}

@keyframes loader {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

input.winmeasure {
	color: #999;
	padding: 8px 5px;
	width: 80px;
	border: solid 1px #999; 
	border-radius: 5px;
	margin-top: 6px;
	font-size: 1.15rem;
	margin-right: 5px;
	text-align: right;
}

.app-footer {
    height: var(--footer-height);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.toolbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 480px;
    height: var(--footer-height);
    padding: 0 16px;
    background: transparent;
}

.toolbar-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-icon {
    width: 24px;
    height: 24px;
    fill: #ccc;
    transition: transform 0.2s ease;
}

.toolbar-button:hover .toolbar-icon {
    transform: scale(1.1);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden {
	display: none;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.modal-content h3 {
  margin-bottom: 1em;
  color: var(--primary-color);
}

.modal-content ul {
  text-align: left;
  padding-left: 20px;
  margin-bottom: 1em;
  color: #b00;
}

.modal-content button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}
