:root {
	--bg: #0b0d11;
	--default-border1: 1px solid rgba(255, 255, 255, 0.03);
	--default-border2: 1px solid rgba(255, 255, 255, 0.035);

	--card-bg: rgba(255, 255, 255, 0.01);

	--panel: #0f1216;
	--muted: #98a0b3;
	--accent: #4a80f0;
	--card: #111217;
	--success: #2ecc71;
	--warning: #f1c40f;
	--danger: #ef5350;
	--glass: rgba(255, 255, 255, 0.03);
}

* {
	box-sizing: border-box;
	-webkit-tap-highlight-color:  transparent;
	scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) var(--card-bg);
}

::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}




body {
	margin: 0;
	font-family: Inter, Roboto, "Segoe UI", sans-serif;
	background: linear-gradient(180deg, var(--bg), #07101a);
	color: #e6eef8;
	height: 100vh;
	/* overflow: hidden; */
}

.root {
	display: flex;
	height: 100vh;
}





.sidebar {
	width: 240px;
	background: linear-gradient(180deg, var(--panel), #0b0f14);
	padding: 22px 16px;
	box-shadow: 4px 0 18px rgba(2, 6, 23, 0.6);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sidebar-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 10px;
	border: var(--default-border1);
}

.sidebar-user-img {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--glass);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--accent);
}

.sidebar-user-name {
	font-size: 18px;
	font-weight: 600
}

.sidebar-user-email {
	font-size: 12px;
	color: var(--muted);
}

.sidebar-btns {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 6px;
}

.sidebar-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font-size: 15px;
	transition: all .12s;
}

.sidebar-btn:hover {
	background: rgba(255, 255, 255, 0.02);
	transform: translateX(6px)
}

.sidebar-btn.active {
	background: linear-gradient(90deg, rgba(74, 128, 240, 0.14), rgba(74, 128, 240, 0.06));
	box-shadow: inset 0 0 0 1px rgba(74, 128, 240, 0.06)
}

.sidebar-btn-icon {
	font-size: 20px;
	color: var(--accent)
}






.main {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}













.main .topbar {
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 28px;
	border-bottom: var(--default-border1);
	background: transparent;
}

.main .topbar .left {
	display: flex;
	align-items: center;
	gap: 18px
}


.main .topbar .left .page-title {
	font-size: 20px;
	font-weight: 600
}






.tab-dashboard .topbar .right {
	display: flex;
	align-items: center;
}














.dropdown-1 {
	position: relative;
	display: flex;
}




.dropdown-1 .trigger {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	/* background: rgba(255, 255, 255, 0.02); */
	/* border: 1px solid rgba(255, 255, 255, 0.02); */

	background: var(--card);
	border: var(--default-border2);

	color: #e6eef8;
	padding: 8px 14px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s, box-shadow 0.2s;
}

.dropdown-1 .trigger:hover {
	background: var(--glass);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.dropdown-1 .trigger .arrow {
	display: flex;
	transition: transform 0.25s ease;
}






.dropdown-1 .menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: 0;
	background: var(--panel);
	border: var(--default-border2);
	border-radius: 12px;
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
	padding: 8px 0;
	z-index: 1001;

	opacity: 0;
	transform: translateY(-6px);
	pointer-events: none;

	transition: opacity 0.15s ease, transform 0.15s ease;
}





.dropdown-1.open .menu {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}


.dropdown-1.open .trigger .arrow {
	transform: rotate(180deg);
}









.dropdown-1 .menu .item {
	padding: 10px 14px;
	font-size: 14px;
	color: #e6eef8;
	cursor: pointer;
	transition: background 0.15s;
}


.dropdown-1 .menu .item:hover {
	background: var(--glass);
}

.dropdown-1 .menu .item.active {
	background: rgba(74, 128, 240, 0.2);
	color: var(--accent);
}






.dropdown-1 .menu .separator {
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	margin: 6px 0;
}





.dropdown-1 .menu .action-btn {
	width: 100%;
	border: none;
	background: transparent;
	color: var(--accent);
	padding: 10px 14px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: background 0.15s;
}

.dropdown-1 .menu .action-btn:hover {
	background: rgba(74, 128, 240, 0.15);
}





@keyframes warehouse-dropdown-fade-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}





















.main .content {
	padding: 22px 28px;
	overflow: auto;
	height: calc(100vh - 76px);
	flex-direction: column;
	align-items: center;
	display: none;
	gap: 15px;
}


.main .loader {
	margin-top: 20px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.main .loader .spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(74, 128, 240, 0.2);
	border-top-color: rgba(74, 128, 240, 1);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 9999;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}



































.cards-grid {
	display: flex;
	flex-direction: row;
	width: 100%;
	gap: 16px;
}

.cards-grid .card {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
}

.cards-grid .card .title {
	color: var(--muted);
	font-size: 13px;
}

.cards-grid .card .value {
	font-size: 26px;
	font-weight: 700;
}

.cards-grid .card .value.success {
	color: var(--success);
}

.cards-grid .card .value.warning {
	color: var(--warning);
}

.cards-grid .card .value.danger {
	color: var(--danger);
}




.section {
	width: 100%;
	padding: 18px;
	margin-bottom: 30px;
}

.section .title {
	margin-bottom: 12px;
	font-size: 15px;
	font-weight: 600;
}


















.base-card-bg {
	border-radius: 14px;
	border: var(--default-border2);
	background: var(--card-bg);
	/* opacity: 1; */
	opacity: 0;
	transform: translateY(15px);
	animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
} 











.search {
	max-width: 500px;
	width: 95%;
	height: 42px;
	
	display: flex;
	align-items: center;
	padding: 10px 12px;
	border-radius: 12px;

	border: var(--default-border2);
    background: var(--card-bg);

	outline: none;
	color: inherit;
	font-size: 14px;
}










.input1 {
	display: flex;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--panel);
    border: var(--default-border2);
    color: #e6eef8;
    font-size: 14px;
}
.input1:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(74,128,240,.3);
}







.icon-btn1 {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	color: var(--muted);
	font-size: 12px;
	font-weight: 600;

	gap: 6px;
	padding: 8px 10px;
	
	cursor: pointer;
	transition: 0.12s;
	border-radius: 8px;
	
	border: var(--default-border2);
	background: rgba(255, 255, 255, 0.04);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.icon-btn1:hover {
	background: rgba(255, 255, 255, 0.12);
	transform: translateY(-2px);
}






.icon-btn2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	color: var(--muted);
	font-size: 12px;
	font-weight: 600;

	gap: 6px;
	padding: 8px 10px;
	
	cursor: pointer;
	transition: 0.12s;
	border-radius: 8px;
	
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
	border: var(--default-border2);
	background: var(--card-bg);
}

.icon-btn2:hover {
	background: rgba(255, 255, 255, 0.03);
	/* transform: translateY(-2px); */
}













.modal-bottom {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);

    display: flex;
    
	align-items: center;
	justify-content: center;
    z-index: 1000;
    overflow-y: auto;

    opacity: 0;
    pointer-events: none;
    transition: .3s;
}

.modal-bottom.show {
    opacity: 1;
    pointer-events: auto;
}



.modal-bottom .content {
	display: flex;
	gap: 20px;
	flex-direction: column;

	max-height: 100%;
	overflow-y: auto;
  	scrollbar-width: none;
  	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;

	padding: 20px;

	width: 800px;
	max-width: 90%;
	height: auto;
	max-height: 90%;

	/* background: var(--card); */
	background: var(--bg);
    border-radius: 14px;
    border: var(--default-border2);

    transform: translateY(100%);	
	transition: transform 0.3s ease, opacity 0.3s ease;

}

.modal-bottom.show .content {
    transform: translateY(0);
}





.modal-bottom .modal-btns {
	margin-top: 20px;
	display: flex;
	gap: 10px;
}

.modal-bottom .modal-btns button {
	padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.modal-bottom .modal-btns .primary {
	background: var(--accent);
    color: #fff;
}

.modal-bottom .modal-btns .secondary {
	background: rgba(255, 255, 255, .1);
    color: #e6eef8;
}


@media (max-width: 768px) {
	.modal-bottom {
		justify-content: center;
    	align-items: flex-end;
	}

	.modal-bottom .content {
		max-width: 100%;
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		
		gap: 10px;
		

	}
	

}










.modal {
	position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
	
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
	overflow-y: auto;
	opacity: 0;
    pointer-events: none;
    transition: .3s;
}

.modal.show {
	opacity: 1;
	pointer-events: auto;
}

.modal .content {
	position: relative;
	overflow: visible;
	max-height: 90vh;
    
    width: 500px;
    max-width: 95%;
    padding: 20px;

    background: var(--card);
    border-radius: 14px;
    border: var(--default-border2);

    display: flex;
	justify-content: space-between;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-20px) scale(.95);
    opacity: 0;
    transition: .3s;
}

.modal.show .content {
	transform: none;
    opacity: 1;
}










.modal .content .top-content {
	display: flex;
    flex-direction: column;
    gap: 12px;

	flex: 1;
}


.modal .content .header {
	font-size: 18px;
    font-weight: 600;
    color: #e6eef8;
	margin-bottom: 10px;
}	
.modal .content .header.center {
	text-align: center;
}





.modal .content .modal-btns {
	margin-top: 10px;
	display: flex;
	gap: 10px;
}

.modal .content .modal-btns button {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.modal .content .modal-btns .btn-save { 
	background: var(--accent); 
	color:#fff; 
}
.modal .content .modal-btns .btn-save:hover { 
	background:#3d6fd1; 
}


.modal .content .modal-btns .btn-cancel { 
	background: rgba(255,255,255,.1); 
	color:#e6eef8; 
}
.modal .content .modal-btns .btn-cancel:hover { 
	background: rgba(255,255,255,.2); 
}























@media (max-width: 768px) {
	.no-mobile {
		display: none;
	}

	.sidebar {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-around;
		padding: 0 10px;
		box-shadow: 0 -4px 18px rgba(2, 6, 23, 0.6);
		background: linear-gradient(180deg, var(--panel), #0b0f14);
		gap: 0;
		z-index: 1000;
	}

	.sidebar-user {
		display: none;
	}

	.sidebar-btns {
		flex-direction: row;
		gap: 3px;
		width: 100%;
		margin-top: 0;
		align-items: center;
		justify-content: center;
	}

	.sidebar-btns .no-mobile {
		display: none;
	}

	.sidebar-btn {
		gap: 3px;
		flex: 1;
		justify-content: center;
		padding: 12px 4px;
		font-size: 12px;
		flex-direction: column;
	}

	.sidebar-btn:hover {
		background: rgba(255, 255, 255, 0.02);
		transform: translateX(0px)
	}

	.sidebar-btn-icon {
		display: block;
		font-size: 20px;
		margin-bottom: 2px;
	}






	.main .topbar {
		margin-bottom: 10px;
		padding-left: 28px;
		padding-right: 20px;
	}


	.main .content {
		padding: 1px 10px;
	}


	.cards-grid {
		flex-direction: column;
	}

	.section {
		margin-bottom: 150px;
	}


	
}