@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/*
NOT USED STYLES

.sidebar.collapsed
.sidebar a i
.sidebar a span
.sidebar.collapsed a span
.sidebar a.active + .submenu
.menu-toggle
.submenu a
.widget-details p

*/


* {
  	box-sizing: border-box;
  	font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
  	font-size: 14px;
  	-webkit-font-smoothing: antialiased;
  	-moz-osx-font-smoothing: grayscale;
}
body {
	font-family: 'Inter', sans-serif;
}
.layout-container {
	display: flex;
	min-height: 100vh;
}
.login {
  	width: 400px;
  	background-color: #ffffff;
  	box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  	margin: 10px auto;
} 
.login h1 {
  	text-align: center;
  	color: #5b6574;
  	font-size: 24px;
  	padding: 20px 0 20px 0;
  	border-bottom: 1px solid #dee0e4;
}
.login h2 {
	text-align: center;
	color: #5b6574;
	font-size: 18px;
	padding: 10px 0 10px 0;
	border-bottom: 1px solid #dee0e4;
}
.login form {
  	display: flex;
  	flex-wrap: wrap;
  	justify-content: center;
  	padding-top: 5px;
}
.login form label {
  	display: flex;
  	justify-content: center;
  	align-items: center;
  	width: 50px;
  	height: 50px;
  	background-color: #3274d6;
  	color: #ffffff;
}
.login form input[type="password"], .login form input[type="text"] {
  	width: 310px;
  	height: 50px;
  	border: 1px solid #dee0e4;
  	margin-bottom: 20px;
  	padding: 0 15px;
}
.login form input[type="submit"] {
  	width: 100%;
  	padding: 15px;
 	margin-top: 20px;
  	background-color: #3274d6;
  	border: 0;
  	cursor: pointer;
  	font-weight: bold;
  	color: #ffffff;
  	transition: background-color 0.2s;
}
.login form input[type="submit"]:hover {
	background-color: #2868c7;
  	transition: background-color 0.2s;
}

.navtop {
	background-color: #2f3947;
	height: 60px;
	width: 100%;
	border: 0;
}
.navtop div {
	display: flex;
	margin: 0 auto;
	width: 1000px;
	height: 100%;
}
.navtop div h1, .navtop div a {
	display: inline-flex;
	align-items: center;
}
.navtop div h1 {
	flex: 1;
	font-size: 24px;
	padding: 0;
	margin: 0;
	color: #eaebed;
	font-weight: normal;
}
.navtop div a {
	padding: 0 20px;
	text-decoration: none;
	color: #c1c4c8;
	font-weight: bold;
}
.navtop div a i {
	padding: 2px 8px 0 0;
}
.navtop div a:hover {
	color: #eaebed;
}
body.loggedin {
	background-color: #f3f4f7;
}
.content-homepage {
	width: 1000px;
	margin: 0 auto;
}
.content {
	flex: 1;
	padding-left: 15px; 
	height: 100vh;
	top: 0;
	display: flex;
	flex-direction: column;
	padding-top: 10px;
	overflow-y: auto;
	position: sticky;
}
.content-homepage h2 {
	margin: 0;
	padding: 25px 0;
	font-size: 22px;
	border-bottom: 1px solid #e0e0e3;
	color: #4a536e;
}
.content-homepage > p, .content-homepage > div {
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
	margin: 25px 0;
	padding: 25px;
	background-color: #fff;
}
.content-homepage > p table td, .content-homepage > div table td {
	padding: 5px;
}
.content-homepage > p table td:first-child, .content-homepage > div table td:first-child {
	font-weight: bold;
	color: #4a536e;
	padding-right: 15px;
}
.content-homepage > div p {
	padding: 5px;
	margin: 0 0 10px 0;
}

/* Wrapper to position dots correctly */
/* Used by the Home page */

 .sidebar.collapsed { 
	width: 0px; 
}
.sidebar a { 
	padding: 10px 15px; 
	text-decoration: none; 
	color: black; 
	display: flex; 
	align-items: center; 
}
.sidebar a i { 
	margin-right: 5px;
}
.sidebar a span { 
	font-size: 14px;
}
.sidebar.collapsed a span { 
	display: none; 
}

.sidebar.collapsed .submenu { 
	display: none; 
}

.sidebar a:hover { 
	background: #575757; 
	color: white
}
.submenu { display: none; padding-left: 20px; }
.submenu a { padding: 5px 15px; font-size: 14px;}
.sidebar a.active + .submenu { display: block; }

/*
.topbar .options { 
	display: flex; 
	gap: 15px; 
}
	*/
.menu-toggle { 
	display: none; 
	cursor: pointer; 
}
.main { 
	display: flex; 
	flex: 1; 
	margin-top: 50px; 
	flex-direction: column;
}
/*
.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin-top: 60px;
	padding: 20px;
	overflow-y: auto;
}
*/
@media (max-width: 768px) {
	.sidebar.collapsed { width: 0; overflow: hidden; }
	.sidebar { width: 200px; }
	.menu-toggle { display: block; }
	.toolbar {
		justify-content: flex-start; /* Buttons align left but wrap when needed */
	}
}
/*
.widget { display: inline-block; width: 150px; height: 200px; margin: 10px; text-align: center; background: #f9f9f9; padding: 10px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.widget img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.widget-details { margin-top: 5px; }
.widget-details p { margin: 5px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.favorite { cursor: pointer; }
.favorite.active { color: red; }
*/
/* User Profile Style */

.layout-container {
	display: flex;
	min-height: 100vh;
}

.sidebar {
	width: 200px;
	background: whitesmoke;
	color: #333;
	display: flex;
	flex-direction: column;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
	padding-top: 50px;
	overflow-y: auto;
	height: 100vh;
	position: sticky;
	top: 0px;
	z-index: 1;
}

.topbar { 
	width: 100%; 
	background: #007BFF; 
	color: #fff; 
	display: flex; 
	justify-content: space-between; 
	align-items: center; 
	padding: 10px 15px; 
	position: fixed; 
	top: 0; 
	left: 0; 
	right: 0; 
	z-index: 1;
}

.up-form-group {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 10px;
}

.up-form-group div {
	display: flex;
	flex-direction: column;
}

.readonly-label {
	padding: 5px;
	font-weight: bold;
	border-radius: 4px;
}
input[type="password"], input[type="text"], input[type="email"], select {
	padding: 5px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 5px;
}

.up-form-section {
	margin-bottom: 20px;
	margin-right: 20px;
	border-width: 2px;
	border-radius: 2px;
	border-style: solid;
	padding: 10px;
}

.profile-photo {
	position: absolute;
	top: 10px;
	right: 10px;
	text-align: center;
}

.profile-photo img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
}
.icon-btn {
	border: none;
	background: none;
	cursor: pointer;
	padding: 5px;
}
.icon-blue { color: blue; }
.icon-red { color: red; }


.list-container { display: flex; flex-direction: column; gap: 10px; }
.list-header, .list-row { display: grid; grid-template-columns: 1fr 3fr 1fr 1fr 1fr 1fr; gap: 10px; align-items: left; padding: 10px; background: #f1f1f1; border-radius: 5px; }
.list-header { font-weight: bold; background: #ccc; }

.list-header-search, .list-row-search {
	display: grid;
	grid-template-columns: 1fr 1fr 2fr 1fr;
	gap: 10px;
	padding: 10px;
	border-radius: 5px;
  }
  .list-header-search {
	background-color: #f1f1f1;
	font-weight: bold;
  }
  .list-row-search {
	background-color: #fff;
	border: 1px solid #ccc;
  }
@media screen and (max-width: 600px) {
	.list-header { display: none; }
	.list-header-search { display: none; }
	.list-row { display: flex; flex-direction: column; padding: 10px; border: 1px solid #ddd; background: #f9f9f9; }
	.list-row-search { display: flex; flex-direction: column; padding: 10px; border: 1px solid #ddd; background: #f9f9f9; }
	.list-row div { display: flex; flex-direction: column; text-align: left; padding: 1px 0; }
	.list-row div.special { display: flex; flex-direction: row; text-align: left; padding: 1px 0; }
	.list-row div::before { content: attr(data-label); font-weight: bold; color: #000; margin-right: 5px; text-align: left; flex-shrink: 0; }
	.list-row-search div.special { display: flex; flex-direction: row; text-align: left; padding: 1px 0; }
	.list-row-search div::before { content: attr(data-label); font-weight: bold; color: #000; margin-right: 5px; text-align: left; flex-shrink: 0; }
}
