:root {
	--primary-color:   white;
	--secondary-color: #12111f;
	--action-color:    navy;
	--shado:#eeeeee;
}

*{
	margin: 0;
	box-sizing: border-box;
	color: var(--primary-secondar);
	padding: 0;
}

html,body {
	height: 100%;

}

body {

	width: 100%;
}


.logo{
	margin-right: auto;
	margin-left: 10px;
	height: 50px;    /* Set height to fit your bar */
	width: auto;     /* Maintains aspect ratio */
	display: none;
}




.navbar {
	background-color: var(--secondary-color);
	display: flex;
	width: 100%;
	color: var(--primary-color);
	position: fixed;
	height: 60px;
	align-items: center;
	gap: 5px;
	padding-right: 20px;

}

.nav-link {
	display: flex;
	text-decoration: none;
	background-color: var(--secondary-color);
	height: 100%;
	align-items: center;
	padding: 0 10px;

}

.nav-link:hover {
	background-color: var(--shado);
	color: var(--secondary-color);

}

.search-box {
	margin: 8px 0;
	box-sizing: border-box;
	border-radius: 10px;
}

.search-box:focus{
	border: 2px solid #33b5e5; /* Highlight color */
	outline: none; /* Removes default browser outline */
	color: var(--secondary-color);
	padding-left: 10px;
	text-align: center;
}

.side-link {
	display: flex;
	text-decoration: none;
	width: 100%;
	align-items: center;
	padding: 5px 5px;

}
.bars{
	padding-left: 10px;
	flex: 1;
}

.dropdown .nav_list{
	display: none;
	position: relative;
}



input,select {
	padding: 5px 10px;
	outline: none;

}

a:hover {
	background-color: var(--shado);
	color: var(--action-color);
	padding: 5px 0px;
}

.nav_list li:hover {
	background-color: var(--shado);
	color: var(--action-color);
}
.nav_list li {
	padding-left:10px;
}

.nav_list{
	display: block;
}

.mainBody{
	display: flex;
	flex-direction: row;
}

.side-nav{
	display: none;
	min-width: 150px;
	flex-direction: column;
	padding: 70px 0px 0px 0px;
	color: var(--action-color);
	border-right: 1px solid #eeeeee;
	flex-direction: column;
	gap: 10px;
	

}

.mainContent{
	display: flex;
	flex-direction: row;
	padding: 70px 10px 0px 10px;
	color: var(--action-color);
	gap: 20px;
	flex-wrap: wrap;
	justify-content: center; /* Centers items along the main axis (horizontal by default) */
	align-items: center; 


}
.mainContent div{

}

.foot{
	display: flex;
	bottom: 0;
	background-color: var(--secondary-color);
	justify-content: center;
	position: fixed;
	width: 100%;
}

.mainContent div{
	max-width: 250px;
}

.card {
	flex: 1;
	background-color: transparent;
	border-radius: 5px;
	box-shadow: 0 0 20px rgba(0,0,0,0.1);
	border: 1px solid #eeeeee;
	text-align: center;
	min-width: 200px;
	transition: box-shadow 0.3s ease;

}



.card:hover {
	transform: scale(1.3);
	box-shadow: 0 0 20px rgb(18, 17, 31,1);
	background-color: var(--primary-color);
}


.card .c-header{
	border-bottom: 1px solid #eeeeee;
	padding-top: 15px;
}
.card .c-body{
	
}
.c-foot{
	border-top: 1px solid #eeeeee;
	padding: 5px;
	
}
.c-foot a{
	text-decoration: none;
	width: 100%;
	padding: 10px;
	background-color: var(--action-color);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
	transition: background-color 0.3s;
	display: flex;
	justify-content: center;
	
}

/*product card*/
.product-card {
	display: flex;
	border: 1px solid #ddd;
	border-radius: 8px;
	width: 300px;
	overflow: hidden;
	font-family: Arial, sans-serif;
	transition: box-shadow 0.3s ease;
}



.product-image {
	width: 100%;
	height: 100px;
	object-fit: cover;
}

.product-details {
	padding: 15px;
}

.product-name {
	margin: 0 0 10px;
	font-size: 1.2em;
}

.product-description {
	color: #636363;
	font-size: 14px;
	margin-bottom: 15px;
}

.price-quantity {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.price {
	font-size: 1.3em;
	font-weight: bold;
	color: #333;
}

.quantity-input {
	width: 50px;
	padding: 5px;
}

.action-button {
	width: 100%;
	padding: 10px;
	background-color: var(--action-color);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1em;
	transition: background-color 0.3s;
}

.action-button:hover {
	background-color: var(--secondary-color);
}
/*end of product card*/



/* 1. THE OVERLAY (Covers the whole screen) */
.overlay {
	/* Positioning & Layering */
	position: fixed;   /* Stays in place even if you scroll */
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;     /* High number ensures it is ABOVE all other content */

	/* Centering Logic */
	display: flex;
	align-items: center;    /* Vertical center */
	justify-content: center; /* Horizontal center */

	/* Background effect */
	background: rgba(0, 0, 0, 0.8); /* Darkens background content */
	backdrop-filter: blur(5px);    /* Optional: blurs content behind it */

	/* Hidden state */
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* 2. SHOW LOGIC */
.overlay:target {
	visibility: visible;
	opacity: 1;
}

/* 3. THE POPUP BOX */
.popup {
	background: white;
	padding: 10px;
	border-radius: 15px;
	width: 90%;
	min-width: 400px;
	box-shadow: 0 15px 35px rgba(0,0,0,0.5); /* Adds depth */
	position: relative; /* Context for the close button */
	
}

.popupModel{
	display:none;
	position: fixed;
	z-index: 9;
	top: 100px;
	justify-content: center;
	align-items: center;
	background-color: white;
	border: 1px solid gray;
	padding: 10px;
	white-space: nowrap;
	min-width: 400px;
	border-radius: 15px;
	box-shadow: 0 15px 35px rgba(0,0,0,0.5); /* Adds depth */
	text-align: center;


}


#dataTable {
	border-collapse: collapse;
	width: 100%;
	table-layout: fixed;
	

}

#dataTable td,th{
	padding: 8px;
	border: 1px solid gray;
}

#dataTable td{
	text-align: center;
}

label{
	text-align: left;
	text-size-adjust: auto;

}
button{
	padding: 5px 0px;
	background-color: var(--action-color);
	color: var(--primary-color);
	border-radius: 10px;
}
a{
	text-decoration: none;
	focus:none;
}


/* Styles for devices 768px and wider */
@media screen and (min-width: 600px) {
	.side-nav{
		display: flex;
	}
	.bars{display: none;}
	.logo{display: flex;}
	.mainContent card{height: 350px;}

}

/* Styles for moble phone */
@media screen and (max-width: 600px) {
    .SmallNav{
        display:none;
    }
    .SmallNav1{
        display:flex;
    }
   .mainContent{
       width: 100%;
   } 
table,thead,tbody,td,th,tr{display:block;border:none;}
thead tr{
    position: absolute;
    left:-9999px;
}
tr{
    /*border-bottom:1px solid var(--shado);*/
    margin-bottom: 1em;
}
td{
   
    position: relative;
    padding-left:50%;
    text-align: right;
    /*border-bottom: 1px solid var(--shado);*/
}
td:before{
    position: absolute;
    left: 10px;
    content: attr(data-label);
    width:50%;
    white-space: nowrap;
    font-weight: bold;
    text-align: left;
}
}