/* Dashboard */
.fitplan-dashboard {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100vh;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

.fitplan-tabs {
	display: flex;
	width: 100%;
	overflow-wrap: anywhere;
}

.tabs-sidebar {
	width: 250px;
	min-width: 250px;
	background-color: #f4f4f4;
	padding: 20px;
	height: 100%;
	position: sticky;
	top: 0;
}

.tabs-nav {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.tabs-nav li {
	margin: 10px 0;
}

.tabs-nav li a {
	display: block;
	padding: 10px;
	color: #333;
	text-decoration: none;
	font-weight: bold;
	border-radius: 5px;
}

.tabs-nav li a:hover,
.tabs-nav li.active a {
	background-color: #0073aa;
	color: #fff;
}

.tabs-content {
	flex-grow: 1;
	padding: 20px;
}

.tab-content {
	display: none;
}

.tab-content:first-child {
	display: block;
}

@media screen and (max-width: 768px) {
	.fitplan-dashboard {
		height: auto;
	}

	.fitplan-tabs {
		flex-direction: column;
	}

	.tabs-sidebar {
		width: 100%;
		position: relative;
		padding: 10px;
	}

	.tabs-nav {
		display: flex;
		justify-content: space-around;
		list-style-type: none;
		padding: 0;
		margin: 0;
		width: 100%;
		gap: 10px;
	}

	.tabs-nav li {
		flex: 1;
		margin: 0;
	}

	.tabs-nav li a {
		padding: 10px;
		text-align: center;
	}

	.tabs-content {
		padding: 15px;
	}
}
/* End of Dashboard */


/* Plan Form */
#fitplan-plan-form {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	max-width: 800px;
	gap: 10px;
	font-size: 16px;
}

#fitplan-plan-form .form-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 10px;
}

#fitplan-plan-form input,
#fitplan-plan-form select,
#fitplan-plan-form .select2-selection--single {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	height: 40px;
	padding-right: 8px;
	font-size: 18px;
	font-weight: normal;
	color: #444;
	border: 1px solid #aaa;
	border-radius: 8px;
	outline: 0;
}

#fitplan-plan-form .select2-selection__rendered {
	padding-top: 5px;
	padding-bottom: 5px;
}

#fitplan-plan-form .select2-selection__rendered#select2-exercise-search-container {
	padding-right: 35px;
}

#fitplan-plan-form .select2-selection__arrow {
	display: none;
}

.select2-container--default .select2-selection__rendered#select2-exercise-search-container:after {
	content: "";
	display: inline-block;
	width: 24px;
	height: 24px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.9 19.7"><g fill="none" stroke="%23848F91" stroke-width="2"><path stroke-linecap="square" d="M1.4 18.3l5.4-5.4"/><circle cx="12" cy="8" r="7"/></g></svg>');
	background-repeat: no-repeat;
	background-size: contain;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	font-weight: normal;
	color: #777;
}

.select2-dropdown--below {
	margin-top: 25px;
	border: 1px solid #aaa !important;
}

.select2-results {
	font-size: 16px;
}

.exercise-day-table {
	width: 100%;
	padding: 10px;
	padding-bottom: 0;
	margin-bottom: 20px;
	background-color: #f3f3f3;
	color: #444;
	border: 1px solid #aaa;
	border-radius: 8px;
	box-sizing: border-box;
}

.exercise-day-table table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	border: 0;
	margin: 0;
}

.exercise-day-table table tr th,
.exercise-day-table table tr td {
	position: relative;
	border: 1px solid #aaa;
	padding: 8px;
	text-align: center;
	vertical-align: middle;
}

.exercise-day-table table thead tr:first-child th:first-child {
	border-top-right-radius: 7px;
}

.exercise-day-table table thead tr:first-child th:last-child {
	border-top-left-radius: 7px;
}

.exercise-day-table table thead tr:first-child th {
	border-top: 0 !important;
	text-align: center;
}

.exercise-day-table table tfoot tr:last-child td {
	border-bottom: 0;
}

.exercise-day-table table tr td:first-child,
.exercise-day-table table tr th:first-child {
	border-right: 0;
	text-align: right;
}

.exercise-day-table table tr td:last-child,
.exercise-day-table table tr th:last-child {
	border-left: 0;
}

.exercise-day-table table tr.is-superset td {
	border-top: 0;
}

.exercise-day-table table tr.has-superset td {
	border-bottom: 0;
}

.exercise-day-table table th:first-child,
.exercise-day-table table td:first-child {
	width: 60%;
}

.exercise-day-table input {
	text-align: center;
}

.exercise-day-table .exercise-row {
	cursor: pointer;
}

#fitplan-plan-form .hide {
	display: none;
}

#fitplan-plan-form .add-set,
#fitplan-plan-form .add-super-set {
	position: absolute;
	min-width: 200px;
	top: 50%;
	transform: translateY(-50%);
	background-color: #4CAF50;
	border: 1px solid white;
	color: white;
	font-size: 16px;
	font-weight: bold;
	padding: 5px 10px;
	border-radius: 5px;
	cursor: pointer;
	z-index: 10000;
}

#fitplan-plan-form .add-set {
	left: calc(50% + 5px);
	top: calc(100% - 20px);
	background-color: #4285F4;
}

#fitplan-plan-form .add-super-set {
	left: calc(50% + 5px);
	top: calc(100% + 15px);
	background-color: #FFA500;
}

#fitplan-plan-form .add-exercise {
	display: flex;
	align-items: baseline;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #d53533;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	font-family: sans-serif;
	border: 0;
	cursor: pointer;
	text-align: center;
	line-height: 1;
	margin: auto;
	padding: 0;
}

#fitplan-plan-form .add-exercise:hover {
	background-color: #a82b29;
}

#fitplan-plan-form .remove-exercise {
	display: flex;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #FFA500;
	color: #fff;
	font-size: 16px;
	font-weight: bold;
	font-family: sans-serif;
	border: 0;
	cursor: pointer;
	text-align: center;
	line-height: 1;
	float: right;
	align-items: end;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	padding: 1px;
	margin: 0;
}

#fitplan-plan-form .exercise-name {
	padding: 1px;
	margin-right: 25px;
}

#fitplan-plan-form .exercise-superset {
	position: absolute;
	left: -5px;
	top: calc(-50% + 5px);
	transform: translateY(50%);
	font-size: 16px;
	font-weight: bold;
	font-family: sans-serif;
}

.fitplan-dashboard .generate-pdf {
	display: inline-block;
	padding: 10px 25px;
	text-decoration: none;
	font-size: 16px;
	font-weight: bold;
	border-radius: 5px;
	background-color: #0073aa;
	color: #fff;
	border: 0;
	outline: 0;
	cursor: pointer;
}

.fitplan-dashboard .generate-pdf:hover,
.fitplan-dashboard .generate-pdf:focus,
.fitplan-dashboard .generate-pdf:active {
	background-color: #0073aa;
	border: 0;
	outline: 0;
}

.fitplan-dashboard input::-webkit-outer-spin-button,
.fitplan-dashboard input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fitplan-dashboard input[type=number] {
  -moz-appearance: textfield;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 0s 600000s, color 0s 600000s !important;
}

.sticky-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    background: white;
    z-index: 10000;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* End of Plan Form */

/* Plan List */
#fitplan-list table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

#fitplan-list table th,
#fitplan-list table td {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: center;
}

#fitplan-list table th {
	background: #f4f4f4;
}

#fitplan-list button {
	display: inline-block;
	padding: 5px 15px;
	text-decoration: none;
	font-size: 16px;
	font-weight: bold;
	border-radius: 5px;
	background-color: #0073aa;
	color: #fff;
	border: 0;
	outline: 0;
	cursor: pointer;
}

#fitplan-list .remove-plan {
	background: red;
	color: white;
}

#fitplan-list .download-pdf {
	background: green;
	color: white;
}
/* End of Plan List */