.admin-tabs {
	display: flex;
	justify-content: space-between;
	width: 100%;
	border-bottom: 2px solid #ccc;
	margin-top: 20px; 
}

.admin-tab {
	flex: 1;
	padding: 12px 0;
	border: 1px solid #ccc;
	cursor: pointer;
	font-weight: 600;
	color: #e6eef7;
	border-radius: 8px 8px 0 0;
	transition: background 0.2s, top 0.2s;
	position: relative;
	font-size: 1.5rem;
	background: rgb(34,53,78);
	border-bottom: 2px solid white;
	top: 0;
	z-index: 2;
}

#users-tab {
	margin-right: 6px;
}

#assets-tab {
	margin-left: 6px;
}

.admin-tab:hover {
	background: #e8e8e8;
	color: rgb(45, 64, 89);
}

.admin-tab.active:hover {
	color: #e6eef7;
}

.admin-tab.active {
	background: rgb(45,64,89);
	border-bottom: none;
	top: 1px;
	z-index: 0;
}

.admin-content {
	display: none;
	width: 100%;
	max-width: 100%;	
	min-width: 320px;
	border: 1px solid #ccc;
	padding: 25px;
	background: rgb(45,64,89);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.admin-content-wrapper {
	display: flex;
	justify-content: center;
	margin-top: -2px;
}

@media (max-width: 768px) {
	.admin-content {
		width: 90%;
	}
}

.admin-container {
	width: 70%;
	min-width:320px;
	margin: 0 auto;
}

.admin-title {
	text-align: center;
}

.admin-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 15px 0 25px 0;
	width: 50%;
	margin: 0 auto;
}

.admin-search {
	flex: 1;
	padding: 10px 14px;
	border-radius: 6px;
	border: 1px solid #ccc;
	font-size: 0.8rem;
	background: #f8f8f8;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-search:focus {
	border-color: #4a90e2;
	box-shadow: 0 0 4px rgba(74, 144, 226, 0.5);
	outline: none;
}

.admin-search-btn, .admin-add-btn {
	padding: 10px 18px;
	background: #4a90e2;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.2s ease;
}

.admin-search-btn:hover, .admin-add-btn:hover {
	background: #3a7ac4;
}

/*==================== TABLES ==========================*/
table {
	table-layout: fixed;
	width: 90%;
	margin: 10px auto;
	border-collapse: collapse;
}

th,td {
	padding: 0.6em;
}

th {
	background-color: #22354e;
}

tr:nth-child(odd) {
	background-color: #46638a;
}

tr:nth-child(even) {
	background-color: #5475a1;
}

td:not(:first-child) {
	text-align: center;
}

.admin-action-btn {
	padding: 6px 14px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.2s ease, transform 0.1s ease;
}

.admin-action-btn:hover {
	transform: translateY(-1px);
}

.admin-edit {
	background: #3b82f6;
	color: white;
}

.admin-edit:hover {
	background: #2563eb;
}

.admin-delete {
	background: #ef4444;
	color: white;
}

.admin-delete:hover {
	background: #dc2626
}

.admin-action-btn + .admin-action-btn {
	margin-left: 8px;
}

/*=============== Modals ========================*/

label:has(+ input[required])::after {
	content: " *";
	color: red;
}
