
/*==============================================    */
/* COLOR SETTINGS 							    	*/
/*==============================================    */
body, html {
  background-color: var(--bg-color);
}

pre {
  background-color: var(--secondary-bg);
}

.navbar,
.side-menu,
.register-form-header,
.login-form-header,
.data-form-header {
  color: var(--text-color);
  background-color: var(--navbar-bg);
}

.navbar h1 {
  color: var(--text-color);
}

.side-menu a {
  color: var(--text-color);
}

.launch-button,
.login-form button,
.register-form button,
.data-form button,
.touch-button,
.radio-option,
.checkbox-option {
  background-color: var(--primary-button-bg);
  color: var(--button-text-color);
}

.touch-button:hover,
.radio-option:hover,
.checkbox-option:hover {
  background-color: var(--primary-hover-bg);
}

.login-form,
.register-form,
.data-form {
  background-color: var(--secondary-bg);
}

.styled-table {
  background-color: var(--table-bg);
}

.styled-table th {
  background-color: var(--table-header-bg);
  color: var(--text-color);
}

.detail-card {
  background-color: var(--card-bg);
}

/*==============================================    */
/* MAIN SETTINGS 							    	*/
/*==============================================    */

body, html {
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
}

h2 {
	text-align: center;
}
pre {
	padding: 10px;
	border-radius: 8px;
	font-family: monospace;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 70px;
	display: flex;
	align-items: center;
	padding: 0 20px;
	justify-content: space-between;
	z-index: 9999; /* ensures it's above other elements */
	box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* optional */
	
}

/* Logo container (right) */
.navbar-logo {
    margin-left: auto; /* Push logo to far right */
    height: 100%;
    display: flex;
    align-items: center;
}

/* Logo image */
.navbar-logo img {
    max-height: 90%;      /* Keeps a small padding from top/bottom */
    height: auto;
    object-fit: contain;  /* Prevents distortion */
}

/* On screens 600px wide or smaller (typical mobile) */
@media (max-width: 600px) {
    .navbar-logo img {
        max-height: 60%;   /* Reduce size for mobile */
        max-width: 120px;  /* Optional: also limit width */
    }
}
/* Default desktop style */
.navbar h1 {
    font-size: 1.8rem;
    margin: 0;
    margin-left: 10px;    /* Small gap from edge or burger icon */
    text-align: left;     /* Force left alignment */
    flex: 0;              /* Don’t let it stretch like before */
}

/* Tablet / Medium screens */
@media (max-width: 900px) {
    .navbar h1 {
        font-size: 1.5rem;
    }
}

/* Mobile screens */
@media (max-width: 600px) {
    .navbar h1 {
        font-size: 1.2rem;  /* Smaller for phones */
    }
}

/* Very small devices (optional) */
@media (max-width: 400px) {
    .navbar h1 {
        font-size: 1rem;    /* Ultra-compact */
    }
}
.menu-icon {
	font-size: 24px;
	cursor: pointer;
}
.side-menu {
	position: fixed;
	top: 0;
	left: -250px; /* off-screen by default */
	width: 200px;
	height: 100%;
	transition: left 0.3s ease;
	padding-top: 75px;
	z-index: 1000;
}

.side-menu.active {
	left: 0; /* slides into view */
}

.side-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 15px;
	text-decoration: none;
	font-size: 16px;
}

.side-menu a i {
	font-size: 18px;
	min-width: 20px;
}
.page-wrapper {
	padding-top: 75px;
}
.page-wrapper {
	padding-top: 75px;
}
.launchpad {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 20px;
	padding: 20px;
	/*	margin-top: 75px;  This is now done by .page-wrapper*/
}
.launch-button {
    text-decoration: none;
	border-radius: 10px;
	padding: 30px 10px;
	text-align: center;
	font-size: 18px;
}
.launch-button i {
	font-size: 28px;
	margin-bottom: 10px;
	display: block;
}
.login-form {
	max-width: 350px;
	margin: 50px auto;
	padding: 20px;
	border-radius: 10px;
}
.login-form-header {
	padding: 10px 15px;
	font-size: 1.2em;
	font-weight: bold;
	border-radius: 16px 16px 0 0;
	margin-bottom: 20px;
}
.login-form input {
	width: 80%;
	margin: 0 auto 15px auto; /* top 0, left/right auto, bottom 15px */
	padding: 10px;
	display: block; /* ensures margin auto works properly */
}
.login-form button {
	width: 80%;
	margin: 0 auto 15px auto; /* top 0, left/right auto, bottom 15px */
	padding: 10px;
	color: white;
	border: none;
	border-radius: 16px; 
	cursor: pointer;    /* Optional: makes it feel interactive */
	transition: background-color 0.3s ease; /* Optional: smooth hover effect */
	display: block; /* ensures margin auto works properly */
}
.register-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
}

/* Header styling */
.register-form-header {
    padding: 10px 15px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 16px 16px 0 0;
    margin-bottom: 20px;
}

/* Flex row for label + input */
.register-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;  /* default spacing */
}


/* Tighter spacing for address rows */
.register-row.address-field {
    margin-bottom: 2px;
}

/* Make all labels the same width for perfect alignment */
.register-row label {
    display: inline-block;
    width: 120px; /* adjust as needed */
    font-weight: bold;
}

/* Inputs fill remaining space */
.register-row input {
    flex: 1;
    padding: 10px;
}

/* Remove the old block centering rule so flex can work */
.register-form input {
    width: auto;
    margin: 0;
    display: inline-block;
}

/* Button styling */
.register-form button {
    width: 80%;
    margin: 15px auto;
    padding: 10px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
}

/* Required field indicator */
.register-required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.data-form {
	max-width: 350px;
	margin: 5px auto;
	padding: 10px;
	border-radius: 5px;
}
.data-form input {
	width: 100%;
	margin-bottom: 5px;
    font-weight: bold;
	padding: 10px;
	text-align: center;        /* For most browsers */
	text-align-last: center;   /* For the selected item in Chrome/Edge/Firefox */
}
.data-form button {
	width: 100%;
	padding: 8px;
	border: none;
	border-radius: 16px; 
    font-weight: bold;
	cursor: pointer;    /* Optional: makes it feel interactive */
	transition: background-color 0.3s ease; /* Optional: smooth hover effect */
}
.data-form label {
	width: 30%;
	margin-bottom: 5px;
	padding: 10px;
}
.data-form select {
	width: 100%;
	margin-bottom: 10px;
	height: 30px; 
	font-weight: bold;
	text-align: center;        /* For most browsers */
	text-align-last: center;   /* For the selected item in Chrome/Edge/Firefox */
}
.data-form-header {
	padding: 10px 15px;
	font-size: 1.2em;
	font-weight: bold;
	border-radius: 16px 16px 0 0;
	margin-bottom: 5px;
}
.data-form-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2px;
}
.data-form-row .data-value {
	width: 60%;
	text-align: left; /* or right if you prefer */
	padding-left: 10px;
}

.data-form-row label {
	width: 40%;
    font-weight: bold;
	text-align: left;
}
.data-form-row select {
	width: 60%;
}
.styled-table {
	width: 90%;
	border-collapse: collapse;
	margin: 0 auto;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.styled-table th {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}
.styled-table-center th {
	text-align: center;
}
.styled-table td {
	padding: 5px;
	text-align: left;
	border-bottom: 1px solid #ddd; 
	height: 10px;
	vertical-align: middle;
}

.styled-table-center td {
	text-align: center;
}
.styled-table.compact td,
.styled-table.compact th {
	padding: 4px 6px;
	font-size: 14px;
	line-height: 1.1;        /* Reduce vertical text spacing */
	vertical-align: middle;  /* Align content to center vertically */
}

.styled-table.compact .touch-button {
	display: inline-block;
	vertical-align: middle;
	padding: 6px 10px;        /* Slightly tighter button */
	font-size: 14px;
	line-height: 1.1;
	margin: 0;                /* Remove extra spacing */
	box-shadow: none;         /* Optional: less bulky appearance */
}
.styled-table.compact i {
	line-height: 1;
	vertical-align: middle;
}
.touch-button {
	border: none;
	border-radius: 16px;
	padding: 12px 16px; 
	font-size: 16px;
	line-height: 1.4;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	transition: background-color 0.2s ease;
}
a.touch-button {
    text-decoration: none;
    color: white;
}

a.touch-button:hover {
    text-decoration: none;
    opacity: 0.9; /* optional hover effect */
}
.icon-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;         /* or any appropriate width */
	height: 44px;        /* same height as others if needed */
	padding: 0;
}
.nav-button {
	width: 50px;
	height: 50px;
	padding: 0;
	font-size: 20px;
	text-align: center;
}

.detail-card {
	background-color: white;
	padding: 20px;
	border-radius: 10px;
	max-width: 500px;
	margin: 0 auto;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.button-row {
	display: flex;
	justify-content: center;
	align-items: center;         /* ✅ vertically aligns if needed */
	gap: 20px;
	margin: 20px auto;
	max-width: 90%;
	flex-wrap: wrap;
}

.button-row .touch-button {
	flex: 1;
	max-width: 200px;
	text-align: center;
	text-decoration: none;
}
.chart-container img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	border: 1px solid #ccc;
}
.chart-options {
	max-width: 360px;
	margin: 1em auto 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.radio-option {
	color: white;
	display: flex;
	align-items: center;
	padding: 12px 16px;
	border: 1px solid #ccc;
	border-radius: 12px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.radio-option input[type="radio"] {
	margin-right: 10px;
	transform: scale(1.5); /* Bigger radio circle */
}

.checkbox-option {
	color: white;
	display: flex;
	align-items: center;
	padding: 12px 16px;
	border: 1px solid #ccc;
	border-radius: 12px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.checkbox-option input[type="checkbox"] {
	margin-right: 10px;
	transform: scale(1.5);
}

.two-line-button {
	height: 90px;                     /* Set a fixed height */
	width: 120px;                     /* Optional: fixed width for uniformity */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	white-space: normal;             /* Allow wrapping */
	padding: 8px;
	box-sizing: border-box;
	overflow: hidden;
}

.two-line-button .label {
	line-height: 1.2;
	max-height: 2.4em;               /* Limit to 2 lines */
	overflow: hidden;
	text-overflow: ellipsis;
}

.two-line-button .icon {
	font-size: 28px;
	line-height: 1.2;
}
.two-line-button .label {
	margin-top: 4px;
	font-size: 14px;
}

.flex-search-container {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 10px;
	margin: 10px auto;
	max-width: 600px;
}
.search-inputs {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.input-error {
    border: 2px solid red;
    background-color: #fff0f0;
}
/* Spinner container (full screen overlay) */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* transparent white overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Spinner (circle animation) */
.spinner {
    border: 8px solid #f3f3f3;  /* Light gray */
    border-top: 8px solid #333; /* Dark top for rotation */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}