
/*
html {
    height: 100%;
}
*/

body {
	margin: 0px;
	padding: 0px;
	height: 100%;

	font-family: Arial, Helvetica, sans-serif;
	letter-spacing: 1px;
	font-size: 15px;

	color: #d0d0d0;
	background-color: #404040;
	overflow: hidden;
}

a {
	color: #d0d0d0;
}

p {
	text-align: justify;
}

div#bg {
	background-image: url(/img/hdr_bg.png);
	height: 90px;
}

div#hdr {
	margin: 10px;
	top: 0px;
	left: 0px;
	position: absolute;
	display: inline-block;
	font-size: 32px;
	font-weight: bold;
	text-align: left;
	width: 40%;
}

div#loc {
	margin: 10px;
	top: 15px;
	right: 0px;
	position: absolute;
	display: inline-block;
	font-size: 32px;
	font-weight: bold;
	width: 40%;
	text-align: right;
}

div#menu {
	background-color: #303030;
	position: relative;
	width: 100%;
	text-align: right;
	box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5);
	height: 40px;
}

div.menuItem,
div.menuGroup {
	display: inline-block;
	padding: 10px;
	text-decoration: none;
	color: #a0a0a0;
	font-size: 17px;
	border-radius: 20px 20px 0px 0px;
}
div.menuItemSel,
div.menuGroupSel {
	background-color: #3a3a3a;
}
div.menuItem:hover,
div.menuGroup:hover,
span.subMenuItem:hover {
	background-color: #404040;
	cursor: pointer;
}
div.menuGroupList {
	display: inline-block;
	/*display: none;*/
	position: absolute;
	top: 130px;
	background-color: #303030;
	z-index: 100;
	overflow: hidden;
	border-radius: 0px 0px 20px 20px;
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);

	transform: scaleY(1);
	transform-origin: top;
	transition: transform 0.25s ease;

}
div.menuGroupListHide {
	transform: scaleY(0);
}
span.subMenuItem {
	display: table;
	/*padding: 5px;*/
	padding: 5px 15px;
	text-decoration: none;
	color: #a0a0a0;
	font-size: 17px;
	width: 100%;
}

div#login {
	width: 300px;
	margin: 50px auto 0px auto;
	padding: 10px 0px;
	/* box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
	border: 1px solid #202020; */
}

div#login h3 {
	margin: 0px 0px 10px 0px;
	text-align: center;
}

div#login span.field {
	width: 100px;
	display: inline-block;
	margin-bottom: 10px;
	text-align: right;
	padding-right: 10px;
}

div#login input {
	letter-spacing: 1px;
	font-size: 12px;
	border: 1px solid #202020;
	padding: 3px;
	background-color: #a0a0a0;
	color: #404040;
}

div#login input[type=submit] {
	background-color: #606060;
	color: #a0a0a0;
	margin: 0px auto;
	padding: 4px 10px 6px 10px;
	display: block;
	position: relative;
}

div#login input[type=text], div#login input[type=password] {
	width: 150px;
}

div.center {
	text-align: center;
}

div.contentContainer {
	padding: 20px 20px 40px 20px;
	background-color: #303030;
	border-radius: 20px;
	box-shadow: rgba(0, 0, 0, 0.5) 0px 20px 20px;
	border: 1px solid rgba(0, 0, 0, 0.1);

	position: absolute;
	top: 150px;
	right: 50px;
	bottom: 50px;
	left: 50px;
}

/* Dialog and Notifiers */

div#notifier_container,
div#notifier_container_right {
	position: absolute;
	height: 40px;
	bottom: 0px;
	background-color: #000000;
	font-color: #ffffff;
	font-size: 22px;
	font-weight: bold;
	padding: 10px 20px 0px 20px;

	border-radius: 20px 20px 0px 0px;
	transition: all 0.5s;
}
div#notifier_container {
	left: 0px;
}
div#notifier_container_right {
	right: 0px;
}
div#notifier_container.hide,
div#notifier_container_right.hide {
	transition: all 0.5s;
	bottom: -60px
}

div#alert_box_container,
div#confirm_box_container {
	display: none;
	position: absolute;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	background-color: rgba(0, 0, 0, 0.75);
	z-index: 2;
}

div#alert_box,
div#confirm_box,
div#calendar_box {
	position: relative;
	margin: 0px auto 0px auto;
	width: 500px;
	/*height: 300px;*/
}

div#alert_box span.title,
div#confirm_box span.title {
	display: block;
	text-align: center;
	font-size: 22px;
	font-weight: bold;
}
div#alert_box span.content,
div#confirm_box span.content {
	display: block;
	margin-top: 20px;
	margin-bottom: 50px;
}

div#alert_box div#alert_ok {
	/*display: block;*/
	position: absolute;
	bottom: 20px;
	left: 165px;
	width: 200px;
	height: 35px;
	text-align: center;
	font-size: 22px;
	font-weight: bold;
	cursor: pointer;
	background-color: #707070;
	padding-top: 5px;
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.25);
}

div#confirm_ok, div#confirm_cancel {
	position: absolute;
	bottom: 20px;
	height: 35px;
	width: 150px;
	text-align: center;
	font-size: 22px;
	font-weight: bold;
	cursor: pointer;
	background-color: #707070;
	padding-top: 5px;
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.25);
}

div#confirm_ok {
	right: 20px;
}

div#confirm_cancel {
	left: 20px;
}


/* This sets up the main container for a "header/content" layout */
.contentContainer {
	display: flex;
	flex-direction: column;
	/* Adjust height as needed. This example fills the viewport minus a 100px top bar */
	height: calc(90vh - 100px); 
	/* This padding adds space on the sides, similar to your table's old 80px inset */
	padding: 20px 80px;
	box-sizing: border-box; /* Ensures padding is included in the height/width */
}

/* This is the new control bar */
.controls-wrapper {
	display: flex;
	justify-content: space-between; /* This is the magic: pushes children to opposite ends */
	align-items: flex-end;		 /* Aligns the input and icon along their bottom edge */
	margin-bottom: 20px;		   /* Adds space above the table */
	flex-shrink: 0;				/* Prevents this bar from shrinking */
}

/* Styles for a single label/input group */
.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	color: #FFF;
	font-family: Arial, sans-serif;
	margin-bottom: 5px;
	font-size: 0.9em;
}

.form-group input[type="text"] {
	/* Styles to match your screenshot's dark theme */
	background-color: #333;
	border: 1px solid #888;
	color: #FFF;
	padding: 8px;
	border-radius: 4px;
}

/* This is the wrapper for the right side (locations input + search icon) */
.form-group-right {
	display: flex;
	align-items: flex-end; /* Aligns the input and icon */
}

.search-icon {
	cursor: pointer;
	margin-left: 10px; /* Space between input and icon */
	width: 25px;
	height: 25px;
	margin-bottom: 3px; /* Fine-tune vertical alignment */
}

/* This makes the table container fill the remaining vertical space */
.table-container {
	flex-grow: 1;		  /* This div will grow to fill all available space */
	overflow-y: scroll;	/* This keeps your vertical scrollbar */
	border: 1px solid #444; /* Optional: adds a border around the scrollable area */
}

/* Optional: Make your table header sticky */
.table-container th {
	position: sticky;
	top: 0;
	/* Your existing styles had a comma instead of a semicolon */
	background-color: #ffffff; 
	color: #000000;
}

/* New styles for the checkbox group */
.form-group-checkbox {
    display: flex;
    align-items: center; /* Vertically center the checkbox and its label */
    
    /* This aligns the checkbox with the bottom of the input fields.
      You can adjust this pixel value to get the perfect visual alignment.
    */
    margin-bottom: 3px; 
}

.form-group-checkbox label {
    color: #FFF;
    font-family: Arial, sans-serif;
    margin-left: 8px; /* Space between checkbox and label */
    cursor: pointer;   /* Makes it clear the label is clickable */
    font-size: 0.9em;
}

.form-group-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;   /* Makes the checkbox a nice, clickable size */
    height: 16px;
}


/* --- New styles for User Management Page --- */

/* Button Styles */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.btn-primary {
    background-color: #e60028; /* Using Ringers Western red */
    color: white;
}
.btn-primary:hover {
    background-color: #c00;
}

.btn-secondary {
    background-color: #555;
    color: white;
}
.btn-secondary:hover {
    background-color: #777;
}

.btn-danger {
    background-color: #b00;
    color: white;
}
.btn-danger:hover {
    background-color: #d00;
}

/* Table Container */
.table-container {
    flex-grow: 1;
    overflow-y: auto; /* Makes just the table body scrollable */
    background-color: #2a2a2a;
    border-radius: 4px;
    border: 1px solid #444;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #444;
    color: #f0f0f0;
}

.data-table th {
    background-color: #333;
    color: #fff;
    position: sticky; /* Makes header stick when scrolling */
    top: 0;
}

.data-table tbody tr:hover {
    background-color: #353535;
}

.data-table .btn {
    padding: 5px 10px;
    margin-right: 5px;
}

/* Modal (Dialog) Styles */
dialog {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* This styles the backdrop that appears behind the modal */
dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

dialog h3 {
    margin-top: 0;
    color: #fff;
}

dialog .hint-text {
    font-size: 0.8em;
    color: #aaa;
    margin-top: 4px;
}

.modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px; /* Adds space between buttons */
}

