body {
	background: linear-gradient(135deg, #2d3561 0%, #3b1f4d 100%);
	min-height: 100vh;
	padding: 20px 0;
}

.main-container {
	background: #f8f9fa;
	border-radius: 15px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	padding: 0;
	margin-top: 20px;
	margin-bottom: 20px;
	overflow: hidden;
}

.header-section {
	background: linear-gradient(135deg, #1a1f3a 0%, #2a1638 100%);
	color: white;
	padding: 2rem;
	text-align: center;
	margin-bottom: 2rem;
}

.header-section h1 {
	margin: 0;
	font-size: 2rem;
	font-weight: 600;
}

.header-section p {
	margin: 0.5rem 0 0 0;
	opacity: 0.9;
}

.form-container {
	padding: 0 2rem 2rem 2rem;
}

/* Empty state blocks are defined early to keep selector order low → high specificity */
.empty-state {
	text-align: center;
	padding: 3rem 2rem;
	color: #999;
}

.empty-state i {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

/* Tab Styles */
.nav-tabs {
	border-bottom: 2px solid #e9ecef;
	margin-bottom: 2rem;
}

.nav-tabs .nav-link {
	color: #666;
	border: none;
	padding: 0.75rem 1.5rem;
	font-weight: 500;
	background: transparent;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition:
		color 0.3s ease,
		border-bottom-color 0.3s ease;
}

.nav-tabs .nav-link:hover {
	color: #4a5692;
	border-bottom-color: rgba(74, 86, 146, 0.3);
}

.nav-tabs .nav-link.active {
	color: #4a5692;
	background: transparent;
	border: none;
	border-bottom: 3px solid #4a5692;
}

.nav-tabs .nav-link i {
	margin-right: 0.5rem;
}

.tab-content {
	padding-top: 1.5rem;
	min-height: 450px;
}

/* Form Styles */
.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #333;
	font-weight: 500;
	font-size: 0.95rem;
}

.form-control {
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}

.form-control:focus {
	border-color: #4a5692;
	box-shadow: 0 0 0 3px rgba(74, 86, 146, 0.1);
}

/* Input with hint */
.input-with-hint {
	position: relative;
}

.input-hint {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #aaa;
	font-size: 0.85rem;
	pointer-events: none;
	background: white;
	padding: 0 4px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.required-field::after {
	content: " *";
	color: #dc3545;
	font-weight: bold;
}

.error {
	border-color: #dc3545;
	background-color: #fff8f8;
}

.error-message {
	color: #dc3545;
	font-size: 12px;
	margin-top: 4px;
	display: none;
}

input.error + .error-message {
	display: block;
}

.status-msg {
	font-size: 13px;
	margin-top: 6px;
}

.tip {
	font-size: 12px;
	color: #666;
	margin-top: 4px;
	margin-bottom: 16px;
}

.tip-compact {
	margin-top: 2px;
	margin-left: 1.5rem;
	margin-bottom: 0;
}

.tip a {
	color: #4a5692;
	text-decoration: none;
}

.tip a:hover {
	text-decoration: underline;
}

.section-divider {
	margin: 2rem 0 1.5rem 0;
	padding: 0;
}

.section-subtitle {
	color: #666;
	font-weight: 600;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	font-size: 1.1rem;
	border-bottom: 2px solid #e9ecef;
}

select {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background-color: white;
	font-size: 14px;
	color: #333;
	width: auto;
	min-width: 200px;
	cursor: pointer;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 1em;
	padding-right: 35px;
	transition:
		border-color 0.3s ease,
		background-color 0.3s ease;
}

select:hover {
	background-color: #fcfcfc;
	border-color: #ccc;
}

select:focus {
	outline: none;
	border-color: #4a5692;
	box-shadow: 0 0 0 3px rgba(74, 86, 146, 0.1);
}

.btn-primary {
	background: linear-gradient(135deg, #4a5692 0%, #5d3973 100%);
	border: none;
	border-radius: 8px;
	padding: 12px 30px;
	font-weight: 500;
	font-size: 16px;
	transition:
		background 0.3s ease,
		transform 0.3s ease,
		box-shadow 0.3s ease;
	box-shadow: 0 4px 15px rgba(74, 86, 146, 0.3);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #5a66a2 0%, #6d4983 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(74, 86, 146, 0.4);
}

.btn-primary:disabled {
	opacity: 0.8;
	cursor: not-allowed;
	transform: none;
}

.fa-spinner {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.form-check {
	margin-top: 10px;
}

.form-check-label {
	margin-left: 5px;
	cursor: pointer;
}

.submit-section {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e9ecef;
	text-align: center;
}

#change_password_container {
	margin-top: 8px;
}
