body {
    font-family: Candara,Calibri,Segoe,Segoe UI,Optima,Arial,sans-serif; 
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

header {
    background-color: #23a137;
    color: white;
    padding: 10px;
    text-align: center;
}



.reload {
	font-family: Lucida Sans Unicode;
	height: 2rem;
	background-color: #23a137;
	font-weight: bold;
	font-size: 2rem;
	color: #facfcf;
	border-radius: 8px;
	border-style: none;
	box-sizing: border-box;
	cursor: pointer;
	display: inline-block;
	font-weight: 800;
	list-style: none;
	margin: 0;
	outline: none;
	position: relative;
	text-align: center;
	text-decoration: none;
	transition: color 100ms;
	vertical-align: baseline;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
  
  
}


/* Footer (Optional) */
footer {
	background-color: #333;
	color: white;
	text-align: center;
	padding: 10px;
	position: fixed;
	bottom: 0;
	width: 100%;
	z-index: 2;
	height:10px;
}


/* The sidebar menu */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
}

/* Sidebar links */
.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: white;
    display: block;
    transition: 0.3s;
}

/* Links hover effect */
.sidebar a:hover {
    background-color: #575757;
}

/* Button to close the sidebar */
.sidebar .closebtn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    margin-left: 50px;
}


/* The button to open the sidebar */
.openbtn {
    position: absolute;
	top: 20px;
	left: 20px;
	font-size: 18px;
	text-align: center;
	background-color: #4CAF50;
	background-color: #23a137;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
}

.openbtn:hover {
    background-color: #45a049;
}

/* Transition for opening and closing */
.sidebar.opened {
    width: 250px;
}



/* Dashboard */


.dashboard {
	padding: 20px;
}

.dashboard-table {
	width: 100%;
	border-collapse: collapse;
}

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

.dashboard-table th {
	background-color: #f2f2f2;
	color: #333;
}

.adjust-btn {
	padding: 5px 10px;
	margin: 0 5px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

.adjust-btn.decrease {
	background-color: #f44336;
}

.adjust-btn:disabled {
	background-color: #ddd;
	cursor: not-allowed;
}


/* Warinings */
/* Styles for warning rows */
.warning-row {
    background-color: #f8d7da;
    color: #721c24;
}

.warning-row td {
    border-left: 5px solid #f5c6cb;
}

.warning-icon {
    color: #ff4d4d;
    font-size: 1.2em;
    margin-right: 0.5em;
    display: inline-block; /* Make sure the icons are inline with the text */
}

input[type="text"], input[type="number"], input[type="date"], select {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
    box-sizing: border-box;
}

.stock-input {
    width: 50px;
    text-align: center;
    margin: 0 5px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}


#productSearch {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

img {
    border-radius: 5px;
    margin-top: 5px;
}


#delete-Product {
	background-color: white;
	border-radius: 0px;
	border: none;
	margin: 0px;
	padding: 0px;
	cursor: pointer;
	text-align: center;
}


/* CSS for modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
	overflow: auto; /* Allows scrolling inside the modal */
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
	top: 0;
	max-height: 80vh; /* Limits height so the modal doesn't overflow the viewport */
    overflow-y: auto; /* Enables vertical scrolling within the modal */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.modal-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-modal {
    padding: 10px 20px;
    margin: 5px;
    background-color: #4CAF50;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-modal a{
	color: white;
}

.btn-modal:hover {
    background-color: #45a049;
}


.btn-save {
    padding: 10px 20px;
    margin: 5px;
    background-color: #4CAF50;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}


/* Warnings */
/* Styles for warning rows */
.warning-row {
    background-color: #f8d7da;
    color: #721c24;
}

.warning-row td {
    border-left: 5px solid #f5c6cb;
}

.warning-icon {
    color: #ff4d4d;
    font-size: 1.2em;
    margin-right: 0.5em;
    display: inline-block; /* Make sure the icons are inline with the text */
}
