/*========== GLOCAL STYLES ==========*/

/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f8f8; /* Off-white background */
    color: #333;
    margin: 0;
    padding: 0;
}

/* Spacing */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Buttons */
button, .btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn-dark {
    background-color: #333;
    color: white;
}
.btn-dark:hover {
    background-color: #222;
}

.btn-active {
    background-color: pink;
    color: #fff;
}

.btn-submit {
    background-color: red;
    color: white;
}
.btn-submit:hover {
    background-color: darkred;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background-color: #444;
    color: white;
    padding: 10px;
    text-align: left;
    border-radius: 5px 5px 0 0;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

table tr:nth-child(even) {
    background-color: #e0e0e0;
}

table tr:nth-child(odd) {
    background-color: #f0f0f0;
}

/* Container Links Styled as Buttons */
/*============ Sections 1===========*/
.section-one a {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px;  /* Add spacing between buttons */
    background: #2E8B57; /* SeaGreen background */
    color: white; /* white text */
    font-size: 14px; /* Smaller font */
    font-weight: bold;
    border-radius: 4px; /* Slightly rounded corners */
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover Effect */
.section-one a:hover {
    background: #98FB98 ; /* Palegreen for hover */
    transform: scale(1.05); /* Slight pop effect */
    color: #2E8B57; /* Palegreen text */
}

/* Center Align Buttons */
.container {
    text-align: center;
}
/*============ Sections 1===========*/

/*============ Sections 2===========*/
/* Section 2 - Blue Buttons */
.section-two a {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px;
    background: #1E90FF; /* DodgerBlue */
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.section-two a:hover {
    background: #87CEFA; /* LightSkyBlue */
    color: #1E90FF;
    transform: scale(1.05);
}

/*============ Sections 2===========*/

/*============ Sections 3===========*/
/* Section 3 - Red Buttons */
.section-three a {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px;
    background: #DC143C; /* Crimson */
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.section-three a:hover {
    background: #FFB6C1; /* LightPink */
    color: #DC143C;
    transform: scale(1.05);
}

/* Align Buttons in Each Section */
.section-one, .section-two, .section-three {
    text-align: center;
}
/*============ Sections 3===========*/



/* Forms */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input:focus, select:focus, textarea:focus {
    border-color: pink;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 105, 180, 0.5);
}

/* Mobile Responsive Menu */
.navbar {
    background-color: #333;
    padding: 10px;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: inline-block;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar a {
        display: none;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 20px;
        color: white;
    }
}

/*========== GLOCAL STYLES ==========*/

/*========== Loading Spinner ==========*/
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #444;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*========== Loading Spinner ==========*/


/*========== FOOTER ==========*/
/* Global footer styles */
.footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    justify-content: space-between;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
}

/* Footer container */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Footer columns */
.footer-column {
    width: 30%;
}

/* Table styles for footer */
.footer .borderless-table {
    background-color: #333;
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin: 0 auto; /* Center the table */
}

.footer .borderless-table td {
    background-color: #333;
    padding: 10px;
    text-align: center; /* Center text in cells */
    border: none;
}

/* Link styling inside the footer table */
.footer .borderless-table a {
    color: #f8f8f8; /* Off-white */
    text-decoration: none;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }
    /* Ensure tables are centered */
    .footer .borderless-table {
        width: auto; /* or 100% if you want full width */
        margin-left: auto;
        margin-right: auto;
    }
}

/* For the footer table cells: left-align the text */
.footer .borderless-table td {
  background-color: #333;
  padding: 10px;
  text-align: left;  /* Set to left-align */
  border: none;
}

/* Ensure links inside the footer table are not centered */
.footer .borderless-table a {
  color: #f8f8f8;
  text-decoration: none;
  text-align: left;
}

/* For the copyright (assuming it's in a <p> inside the .footer-column) */
.footer .footer-column p {
  text-align: center; /* Center horizontally in normal mode */
}

.footer .footer-container .footer-column:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Optionally, set a height if needed */
  min-height: 100px;
}

/*========== Table for footer ==========*/


/*========== DEAFULT.PHP OUTSIDE PAGES FOLDER ==========*/

/* Reset & General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f8f8;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: #333;
    color: white;
    padding: 0px 0;
    text-align: center;
}

/* Main Content */
.container {
    flex-grow: 1;
    padding: 50px 20px;
}

/* Buttons */
.btn {
    padding: 15px 20px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
}

.teal-btn {
    background-color: #3CB371; /*MediumSeaGreen*/
    color: white;
}

.teal-btn:hover {
    background-color: #556B2F; /*DarkOliveGreen*/
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 15px;
}

/*========== DEAFULT.PHP OUTSIDE PAGES FOLDER ==========*/


/*========== LOGIN PAGE ==========*/

/* Apply only to login page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff, #F5F5F5); /* Modern gradient */
}

/* Login Container */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 380px;
}

/* Title */
.login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Input Fields */
.login-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: #ff4b5c !important; /* Red submit button */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.login-container button:hover {
    background: #BC8F8F !important;
}


/* Register Link */
.login-container p {
    margin-top: 15px;
    font-size: 14px;
}

.login-container a {
    color: #2575fc; /* Link color */
    text-decoration: none;
    font-weight: bold;
}

.login-container a:hover {
    text-decoration: underline;
}

/*========== LOGIN PAGE ==========*/


/*========== REGISTER PAGE ==========*/

/* Center Container */
.register-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #f9f9f9; /* Off-white background */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Form Styling */
.register-container h2 {
    color: #333;
    margin-bottom: 15px;
}

.register-container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.register-container input,
.register-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Register Button */
.register-container button {
    width: 100%;
    padding: 12px;
    background: #40E0D0; /* Turquise register button */
    color: black;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.register-container button:hover {
    background: #5F9EA0; /* CadetBlue on hover */
    color: white;
}

/* Link Styling */
.register-container p {
    margin-top: 15px;
}

.register-container a {
    color: teal;
    text-decoration: none;
    font-weight: bold;
}

.register-container a:hover {
    text-decoration: underline;
}

/*========== REGISTER PAGE ==========*/

/*========== SETTINGS PAGE ==========*/

/* Container for the settings page */
.settings-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align the form from the top */
    height: 100vh; /* Full viewport height */
    padding: 20px; /* Add padding to prevent items from being too close to the edge */
    box-sizing: border-box;
}

/* Style the Form */
.settings-form {
    background: #f8f9fa; /* Light background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 400px; /* Fixed width */
    box-sizing: border-box; /* Include padding in width calculation */
    margin-top: 30px; /* Ensure there is space from the top */
}

/* Heading Style for Settings */
.settings-form h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

/* Labels: Align left */
.settings-form label {
    display: block; /* Block-level for full width */
    text-align: left; /* Ensure left alignment */
    margin-bottom: 8px;
    font-weight: normal;
    color: #333; /* Dark color for contrast */
}

/* Input Fields and Select Dropdowns */
.settings-form input, 
.settings-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in width calculation */
}

/* File Input */
.settings-form input[type="file"] {
    margin-bottom: 15px;
}

/* Submit Button */
.settings-form input[type="submit"] {
    background: #28a745; /* Green */
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    padding: 12px;
    border-radius: 5px;
    width: 100%; /* Full width */
}

.settings-form input[type="submit"]:hover {
    background: #218838;
}

/* Back Button */
.back-button {
    display: block;
    text-align: center;
    margin-top: 15px;
}

/* Additional spacing between form elements */
.settings-form input[type="file"] {
    margin-bottom: 20px; /* Ensure there’s spacing around the file input */
}

/* Ensure proper page width and prevent cutting off */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #e9ecef; /* Light background color for the whole page */
}

/* Ensure the form stays centered */
.settings-container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}



/*========== SETTINGS PAGE ==========*/

/*================ CATEGORIES PAGE ================*/


/* Global Table Styles */
.styled-table thead {
    background-color: #333;
    color: white;
}

/* Button Styling */
.btn-edit {
    background-color: green;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
}

.btn-delete {
    background-color: red;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 5px;
}

.btn-edit:hover {
    background-color: darkgreen;
}

.btn-delete:hover {
    background-color: darkred;
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
}


/* Responsive table for screens 768px and below */
@media (max-width: 768px) {
  .container table, 
  .container thead, 
  .container tbody, 
  .container th, 
  .container td, 
  .container tr {
    display: block;
  }

  /* Hide table headers (they will be replaced by data-label in each cell) */
  .container thead tr {
    display: none;
  }

  /* Style each row as a block with margin for separation */
  .container tr {
    margin-bottom: 15px;
  }

  /* Adjust table cells to position the label */
  .container td {
    text-align: right;
    position: relative;
    padding-left: 50%;
    border: none;
    border-bottom: 1px solid #ddd;
  }

  /* Add a label before each cell's content */
  .container td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }
}


/*================ CATEGORIES PAGE ================*/



/*========== NAVBAR_DASH MENU ONLY USE MOSTLY IN Dashboard ==========*/
/* Dashboard navbar styles */
.dashboard-navbar {
    background-color: #808080; /* Same gray background as your previous navbar */
    padding: 10px;
    border-radius: 5px 5px 0 0; /* Round corners for the top */
    margin-bottom: 20px; /* Space below the navbar */
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); /* light shadow */
    position: relative;
    z-index: 10;
    width: 100%; /* Full width */
    overflow: hidden; /* Prevents the shadow from being clipped */

}

.dashboard-navbar ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.dashboard-navbar li {
    padding: 10px;
}

.dashboard-navbar a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}


/* Hover effect for links */
.dashboard-navbar a:hover {
    background-color: #575757; /* Darken the background on hover */
    padding: 8px 15px;
    border-radius: 5px; /* Rounded corners for the hover effect */
}

/* Active link styling */
.dashboard-navbar a.active {
    background-color: #575757;
    padding: 8px 15px;
    border-radius: 5px;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .dashboard-navbar ul {
        flex-direction: column; /* Stack navbar items vertically on small screens */
        align-items: center;
    }
    
    .dashboard-navbar li {
        margin: 10px 0; /* Add space between items */
    }
}

.my-navbar-container {
  display: flex;
  align-items: center;
  justify-content: center; /* Center all items horizontally */
  width: 100%;
}

.my-navbar-menu {
  display: flex;
  justify-content: center;  /* Center the menu items */
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.my-navbar-menu li {
  margin: 0 10px;  /* Adjust spacing between items */
}


/*========== NAVBAR_DASH MENU ONLY USE MOSTLY IN Dashboard ==========*/


/*========== TRANSACTION LOGS PAGE ==========*/

/* Hover effect for edit and delete button */
.export-btn {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    color: white;
    margin: 5px;
}

.export-btn[href*="export=true"] {
    background-color: green;
}

.export-btn[href*="export_pdf=true"] {
    background-color: red;
}


/*========== TRANSACTION LOGS PAGE ==========*/

/*========== EDIT CATEGORY PAGE ==========*/

/* Add this CSS for the back button */
.btn-back {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    padding: 10px 20px; /* Padding for the button */
    border: none;
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    font-size: 16px; /* Slightly larger text */
    text-align: center; /* Center text */
    display: inline-block; /* Align it next to other elements if needed */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Add smooth transitions */
}

.btn-back:hover {
    background-color: #45a049; /* Darker green on hover */
    transform: translateY(-2px); /* Button moves up slightly on hover */
}

.btn-back:active {
    transform: translateY(0); /* Button returns to normal on click */
}

/*========== EDIT CATEGORY PAGE ==========*/

/*========== EDIT USERS & EDIT_USER PAGE ==========*/

/* Ensure container is full width */
.container {
    max-width: 100% !important;  /* Allow the container to take up full width */
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ensure form fields are wider */
form, .styled-table {
    width: 100% !important;  /* Ensure form and table take up full width */
}

/* Form-specific adjustments */
form input[type="text"], form select {
    width: 100% !important;  /* Ensure form fields stretch to fill container */
    box-sizing: border-box;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Table styling */
table, .styled-table {
    width: 100% !important;  /* Ensure table stretches to fill container */
    border-collapse: collapse;
}

th, td {
    padding: 15px; /* Increased padding for better spacing */
    text-align: left;
    font-size: 16px;
}

/* Button width to fill container */
button[type="submit"], .btn-user-management, .btn-back {
    width: 100% !important;  /* Button stretches full width */
    padding: 12px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

button[type="submit"]:hover, .btn-user-management:hover, .btn-back:hover {
    background-color: #45a049;
}

.message {
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 5px;
    font-size: 16px;
}

.success {
    background-color: #4CAF50;
    color: white;
}

.error {
    background-color: #f44336;
    color: white;
}


/* Styling for the Back to User Management button */
.btn-back {
    background-color: #d3d3d3; /* Light grey */
    color: #333; /* Dark text for contrast */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #b0b0b0; /* Slightly darker grey on hover */
}

/* Make sure the update button doesn't overlap */
button[type="submit"] {
    margin-top: 20px; /* Add margin between the buttons */
    width: 100%; /* Ensure it doesn't overlap and takes full width */
}

/* Optional: Adjust the form for more spacing */
form {
    max-width: 600px; /* Set max width to make it more readable */
    margin: 0 auto; /* Center the form */
    padding: 20px;
    box-sizing: border-box;
}

.container {
    padding: 20px;
    max-width: 800px; /* Control the width of the main container */
    margin: 0 auto;
}


/* Style for Add New User Button */
.btn-add {
    background-color: #4CAF50; /* Green */
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px; /* Add margin to create space above the button */
    margin-bottom: 20px; /* Add space below the button */
    font-weight: bold;
    display: inline-block;
}

.btn-add:hover {
    background-color: #45a049;
}

/* Add space between the title and the button */
h2 {
    margin-bottom: 20px; /* Add space below the title */
}



/*========== EDIT USERS & EDIT_USER PAGE ==========*/

/*================= PRODUCT PAGE =================*/

/* Standard button styles */
.edit_product-btn, .delete_product-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

/* Edit button - Green */
.edit_product-btn {
    background-color: #4CAF50; 
    color: white;
    border: none;
}

/* Delete button - Red */
.delete_product-btn {
    background-color: #f44336; 
    color: white;
    border: none;
}

/* Hover effects */
.edit_product-btn:hover {
    background-color: #388e3c;
}

.delete_product-btn:hover {
    background-color: #d32f2f;
}


/* Responsive table for screens 768px and below */
@media (max-width: 768px) {
  .container table, 
  .container thead, 
  .container tbody, 
  .container th, 
  .container td, 
  .container tr {
    display: block;
  }

  /* Hide table headers (they will be replaced by data-label in each cell) */
  .container thead tr {
    display: none;
  }

  /* Style each row as a block with margin for separation */
  .container tr {
    margin-bottom: 15px;
  }

  /* Adjust table cells to position the label */
  .container td {
    text-align: right;
    position: relative;
    padding-left: 50%;
    border: none;
    border-bottom: 1px solid #ddd;
  }

  /* Add a label before each cell's content */
  .container td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }
}


/*================= PRODUCT PAGE =================*/


/*========== EDIT PRODUCT PAGE ==========*/

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.message {
    padding: 10px;
    background-color: #dff0d8;
    border-radius: 5px;
    color: green;
}

.message.error {
    background-color: #f2dede;
    color: red;
}

.btn-back {
    padding: 10px 20px;
    background-color: #ccc;
    color: #333;
    border: none;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    margin-top: 10px;
}

.btn-back:hover {
    background-color: #999;
}


/*========== EDIT PRODUCT PAGE ==========*/

/*========== PAGINATION STOCKMOVEMENT PRODUCT PAGE ==========*/

.pagination {
    clear: both;
    text-align: right;
    padding: 10px 0;
    margin-top: 10px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin-left: 5px;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
    text-decoration: none;
    border-radius: 3px;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination a.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}


/*========== PAGINATION STOCKMOVEMENT PRODUCT PAGE ==========*/

/*========== BACK TO DASHBOARD BUTTON ==========*/


.btn-back {
    width: auto !important;
    max-width: none !important;
    display: inline-block !important;
    padding: 8px 16px !important;
    background-color: #333 !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
}


/*========== BACK TO DASHBOARD BUTTON ==========*/


/*========== PRODUCT PAGE OR TOGGLE MENU ==========*/

/* Override Navbar Styles for product.php */
.dashboard-navbar {
  color: #fff !important; /* Force the text color to white */
  font-size: 1.0em !important; /* Adjust size if needed */
  padding: 0 !important;
  margin: 0 !important;
  background: #454545 !important;
  padding: 10px 20px !important;
}
.dashboard-navbar .my-navbar-menu li a {
    font-size: 12px !important; /* Adjust size as needed */
    line-height: 1.2;
}
.my-navbar-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
}
.navbar-brand {
  font-size: 1.2em !important;
  font-weight: bold !important;
}
.my-navbar-menu {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.my-navbar-menu li {
  margin-left: 20px !important;
}
.my-navbar-menu li a {
  color: #fff !important;
  text-decoration: none !important;
  padding: 8px 12px !important;
  transition: background 0.3s !important;
}
.my-navbar-menu li a:hover {
  background: #444 !important;
  border-radius: 4px !important;
}
.my-navbar-toggle {
  display: none !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
}
.my-navbar-toggle-icon {
  display: block !important;
  width: 25px !important;
  height: 3px !important;
  margin: 4px 0 !important;
  background-color: #fff !important;
}

/* Responsive Styles for screens 768px and below */
@media (max-width: 768px) {
  .my-navbar-container {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .my-navbar-toggle {
    display: block !important;
    align-self: flex-end !important;
  }
  .my-navbar-menu {
    flex-direction: column !important;
    width: 100% !important;
    display: none !important;  /* Hide menu by default */
    background: #333 !important;
    margin-top: 10px !important;
  }
  .my-navbar-menu.active {
    display: flex !important;  /* Show menu when active */
  }
  .my-navbar-menu li {
    margin: 0 !important;
    border-top: 1px solid #444 !important;
    width: 100% !important;
  }
  .my-navbar-menu li a {
    display: block !important;
    width: 100% !important;
    padding: 10px !important;
  }
}

/*========== PRODUCT PAGE OR TOGGLE MENU ==========*/


/*========== INVENTORY PAGE ==========*/

.inventory-table th {
    background-color: #333 !important;
    color: #fff !important;
}


/*========== INVENTORY PAGE ==========*/

/*========== pagination under movment table at index page ==========*/


.sticky-pagination {
  position: sticky;
  bottom: 0;
  background-color: #fff; /* Prevent underlying content from showing through */
  padding: 10px 0;
  text-align: center;
  z-index: 100;
}


/*========== pagination under movment table at index page ==========*/


/*========== LOW stock table at index.php ==========*/

.low-stock-alerts {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  padding: 10px;
}

.low-stock-alerts h2 {
  color: #d9534f;
  margin-bottom: 20px;
}

.low-stock-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.low-stock-table th,
.low-stock-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.low-stock-table th {
  background-color: #d9534f; /* Red header for alert */
  color: #fff;
}

.low-stock-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.low-stock-table tr:hover {
  background-color: #f2dede;
}

.sufficient-stock {
  color: #5cb85c;
  font-weight: bold;
  margin-top: 20px;
}

/*========== LOW stock table at index.php ==========*/


