/* General Body and Font Styling */

/* Utility class to hide sidebar and expand content */

  
 
  
  
.hidden {
  display: none;
}

  
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f2f4f8;
  color: #333;
}

.login-body {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */
  min-height: 100vh; /* Ensures full height */
  margin: 0; /* Remove default margin */
  background-color: #f0f0f0; /* Optional: Background color */
}

 






/* Container for the input field and label */
.row-group {
display: flex;
align-items: center;
justify-content: flex-start;
margin-bottom: 15px;
padding: 5px 5px;
border: 1px solid rgb(234, 232, 228);
}


/* Styling for the label next to the input field */
#stock-value-label {
font-size: 14px;
font-weight: bold;
color: #333;
white-space: nowrap; /* Prevents text wrapping in the label */
}

/* Responsive Design: Adjust for smaller screens */
@media (max-width: 768px) {
.row-group {
  flex-direction: column;
  align-items: flex-start;
}

#search-input {
  width: 100%; /* Full-width input on smaller screens */
  margin-bottom: 10px;
}

#stock-value-label {
  margin-bottom: 5px; /* Add space between input and label on mobile */
}
}











/* Main content styling */
/* Main Content Styling */
.main-content { 
 
  margin-top: 90px; /* Top margin for spacing from the top navigation, bottom margin for spacing */
 margin-right: 10px;
  padding: 10px auto;; /* Top padding increased for better spacing, uniform padding on other sides */
  background-color: #ffffff; /* White background for clarity */
  border-radius: 8px; /* Rounded corners for a polished look */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
  min-height: calc(100vh - 120px); /* Adjusted min-height to fit viewport */

  transition: margin 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  margin-left: 260px; /* Space for sidebar */
  transition: margin-left 0.4s ease; /* Smooth transition */
}


/* When sidebar is hidden */
.main-content.collapsed {
  margin-left: 0; /* Remove sidebar space */
}


/* Container for two-column layout */
.container {
  display: flex;
  gap: 20px;
  min-height: 100vh;
  align-items: stretch;
}
.tr-container {
  display: flex;
width: 80%;
  min-height: 100vh;
  align-items: stretch;
  margin: 0 auto;
}



/* Left column styling (Item Search and Selection) */
.left-column {
  flex: 1;

  padding: 0px;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  height: auto;
}

/* Item List (No Scroll) */
.item-list-container1 {
  flex-grow: 1;
  height: auto;
  overflow: visible;
 
  padding: 0px;
  overflow-x: auto;
 
}








/* Right column styling (Cart and Transaction Details) */
.right-column {
  flex: 1;
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #ddd;
  height: 100%;
  overflow-y: auto;
}

/* Input fields, buttons, and form elements */
input, select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #ffffff;
}

/* Button styling */
button {
  background-color: #3498db; /* Soft Blue for buttons */
  color: white;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  font-size: 14px; /* Reduced button font size */
  margin-top: 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2980b9; /* Darker blue on hover */
}

/* Add to Cart Button Smaller */
.add-item-btn {
  padding: 10px 15px;
  font-size: 12px;
  background-color: #2ecc71; /* Green for 'Add to Cart' */
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-item-btn:hover {
  background-color: #27ae60; /* Darker Green on hover */
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}


table th {
  background-color: #f1f1f1;
  font-weight: bold;
}


.cart-header h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
  color: #2e4053; /* Match sidebar */
}

.remove-item-btn {
  background-color: #e74c3c; /* Red for remove buttons */
  color: white;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}

.remove-item-btn:hover {
  background-color: #c0392b; /* Darker red on hover */
}

/* Form styling for transaction details */
.form-group {
  margin-bottom: 20px;
}

label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  display: inline-block;
  color: #333;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #ffffff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

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

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



.transactions-filter {
  display: flex;
 
  align-items: center;
  gap: 20px; /* Space between filters */
  padding: 15px;
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

.transactions-filter label {
  font-weight: bold;
  font-size: 14px;
  margin-right: 10px; /* Space between label and input */
  color: #333;
}

.transactions-filter input[type="date"], 
.transactions-filter select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: #ffffff;
}

.transactions-filter select {
  width: 150px; /* Set a fixed width for the dropdown */
}

.transactions-filter input[type="date"] {
  width: 180px; /* Set a fixed width for date inputs */
}

/* Adjust padding for better spacing */
.transactions-filter input, .transactions-filter select {
  padding: 8px 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .transactions-filter {
    flex-direction: column;
    gap: 10px; /* Less space between filters */
    display: block; /* Switch to block for mobile */
    text-align: left; /* Ensure content aligns left */
    margin: 0 auto; /* Center horizontally */
  }

  .transactions-filter label {
    margin-bottom: 5px; /* Space between label and input for small screens */
  }

  .transactions-filter input[type="date"],
  .transactions-filter select {
    width: 100%; /* Make inputs full-width on small screens */
  }
}











#show-modal {
  width: 50px;
  position: fixed; /* Fix the position of the button */
  bottom: 20px;    /* Distance from the bottom of the page */
  right: 20px;     /* Distance from the right of the page */
  padding: 10px 20px; /* Add some padding to the button */
  background-color: #007bff; /* Button background color */
  color: white;    /* Button text color */
  border: none;    /* Remove the default border */
  border-radius: 5px; /* Add rounded corners */
  cursor: pointer; /* Change the cursor to pointer on hover */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

#show-modal:hover {
  background-color: #0056b3; /* Darker background on hover */
}















/* Summary Section */
.summary {
  display: flex;
  justify-content: space-around;
  background-color: #ffffff;
  padding: 20px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

.metric {
  font-size: 1.5rem;
  color: #333;
}

.metric span {
  font-weight: bold;
}

/* Table Styling */
table {
  width: 90%;
  margin: 0 auto;
  border-collapse: collapse;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 12px;
  text-align: left;
}

th {
  background-color: #f4f4f4;
  font-size: 1rem;
  font-weight: bold;
}

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

/* Responsive layout */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left-column, .right-column {
    flex: none;
    width: 100%;
  }
}



#search-input {
  display: block; /* Makes it behave as a block element so margin auto works */
  width: 90%;
  height: 50px;
  padding: 10px 15px;
  margin: 10px auto; /* Centers the element horizontally */
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}


#search-input:focus {
  border-color: #3498db; /* Blue border on focus */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Stronger shadow on focus */
}




  /* Responsive layout */
  @media (max-width: 768px) {
    .cart-search-input {
      margin-left: 50px; /* Left margin of 50px */
      margin-bottom: 20px; /* Space below the input */
      display: flex; /* Align items in a horizontal line */
    }
 
  }



/* Toggle Button Styling */
#toggle-fields-btn {
  width: 100%;
  background-color: #3498db;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  margin-bottom: 20px;
  position: relative;
  top: -10px;
}

#toggle-fields-btn:hover {
  background-color: #2980b9;
}

input[type="date"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #ffffff;
}





/* Modal Styles added for transactions.html but can be used for others page */
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Dark background */
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #ddd;
  width: 60%; /* Set width to be narrower */
  max-width: 600px; /* Limit max width */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow */
  font-size: 14px; /* Smaller font size */
}

.modal-content h3 {
  margin-top: 0;
  text-align: center;
}

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

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

/* Table Styling for Transaction and Details */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th, table td {
  padding: 0px 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f1f1f1;
  font-weight: bold;
}

/* Buttons for actions */
button.view-details-btn, button.edit-item-btn, button.delete-item-btn {
  padding: 5px 10px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  margin: 0 5px;
}

button.view-details-btn {
  background-color: #3498db; /* Blue */
  color: white;
}

button.view-details-btn:hover {
  background-color: #2980b9;
}

button.edit-item-btn {
  background-color: #2ecc71; /* Green */
  color: white;
}

button.edit-item-btn:hover {
  background-color: #27ae60;
}

button.delete-item-btn {
  background-color: #e74c3c; /* Red */
  color: white;
}

button.delete-item-btn:hover {
  background-color: #c0392b;
}

/* Filter Container */
.filter-container {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* Transaction Details Table */
.transaction-details-container {
  margin-top: 20px;
}

#filter-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}


/* Summary Container Styling */


.summary-container {
  max-width: 75%; /* Allow container to grow up to 90% of screen */
  min-width: 65%; /* Set a minimum width for the container */
  margin: 0 auto; /* Center the container */
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 8px;
}

/* Table Styling */
#summary-table {
  width: auto; /* Allow table to grow based on content */
  min-width: 90%;
  max-width: 100%; /* Ensure it doesn't overflow the container */
  table-layout: auto; /* Make the table columns auto-sized */
  border-collapse: collapse; /* Remove gaps between cells */
  margin: 0 auto; /* Center the table within the container */
}


/* Header Styling */
#summary-table th {
  background-color: #3498db; /* Better header color */
  color: #ffffff;
  padding: 12px;
  text-align: center;
  font-weight: bold;
}

/* Table Row Styling */
#summary-table td {
  padding: 10px;
  text-align: center; /* Center align text in cells */
  border: 1px solid #ddd;
  white-space: nowrap; /* Prevent text wrapping for narrower cells */
}

/* Filters Styling */
.filters {
  display: flex;
  gap: 30px; /* Add space between filter groups */
  margin-bottom: 20px;
  flex-wrap: wrap; /* Ensure responsiveness */
  justify-content: space-between; /* Align filters neatly */
}

/* Filter Group Styling */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Space between label and input */
  margin-bottom: 10px; /* Space between groups */
}

.filters label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
}

.filters input, .filters select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 250px; /* Wider input fields */
}

/* Responsive Table Styling */
@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    gap: 20px;
  }

  #summary-table {
    font-size: 12px; /* Smaller font size for mobile */
  }

  .summary-container {
    padding: 10px; /* Adjust padding for smaller screens */
  }
}

/* Status Field Styling */
/* Status Field Styling */
.status-container {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  max-width: 400px; /* Medium size container */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-container input[type="radio"] {
  display: none; /* Hide default radio button */
}

.status-container label {
  cursor: pointer;
  font-weight: 500;
  color: #555;
  padding: 10px 20px;
  border: 2px solid #3498db; /* Border color */
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: white;
}

.status-container input[type="radio"]:checked + label {
  background-color: #3498db; /* Blue for active status */
  color: white;
}

.status-container label:hover {
  background-color: #eaf2f8; /* Lighter blue shade on hover */
}


/* Tabs Styling */




/* Tabs Wrapper Container */
.tabs-wrapper {
  background-color: #3498db; /* Blue background for container */
  padding: 10px;
  margin: 0 auto; /* Center the container */
  max-width: 600px; /* Match the width of the register-item container */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a soft shadow */
}

/* Tabs Container */
.tabs {
  display: flex;
  justify-content: center; /* Center the tabs */
  margin-bottom: 20px;
}

/* Tab Button Styling */
.tab-btn {
  background-color: #ffffff; /* White background to contrast blue */
  color: #333;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background-color 0.3s ease;
  margin-right: 10px;
  font-weight: bold;
  border-radius: 4px; /* Rounded corners */
}

.tab-btn.active {
  background-color: #ffffff; /* Keep active tab button white */
  color: #3498db; /* Match the text color with container background */
}

.tab-btn:hover {
  background-color: #f1f1f1; /* Light hover effect */
  color: #333;
}





/* Tab Content Styling */
.tab-content {
  display: none; /* Hidden by default */
  padding: 20px;
  border: 1px solid #ddd;
  background-color: #ffffff;
  border-radius: 4px;
}





.tab-container {
  display: flex;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}
.tab {
  padding: 10px;
  margin-right: 5px;
}
.tab.active {
  border-bottom: 2px solid blue;
  font-weight: bold;
}
.tab-content {
  display: none;
  padding: 20px;
}
.tab-content.active {
  display: block;
}







/* Item Registration Container */
#register-item {
  max-width: 600px; /* Medium size */
  margin: 20px auto; /* Center the container */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

/* Form Elements Styling */
#register-item input[type="text"], 
#register-item input[type="number"], 
#register-item input[type="date"], 
#register-item select {
  width: 100%;
  padding: 12px;
  font-size: 16px; /* Medium font size */
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Submit Button Styling */
#register-item button[type="submit"] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #3498db; /* Blue color */
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

#register-item button[type="submit"]:hover {
  background-color: #2980b9; /* Darker blue on hover */
}

/* Status Field Styling in Registration */
#register-item .status-container {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  max-width: 100%; /* Keep it responsive */
  justify-content: center; /* Center align radio buttons */
}

/* Item List Container */
#items-list {
  max-width: 600px; /* Medium size for list */
  margin: 20px auto; /* Center the container */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
}

/* Table Styling for Item List */
#items-list.table-container table {
  background-color: #27ae60;
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
#items-list tbody{width: 100%;}

#items-list th, #items-list td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  font-size: 16px; /* Medium font size */
}

/* Header Styling */
#items-list th {
  background-color: #3498db; /* Blue for header */
  color: #ffffff;
  font-weight: bold;
}

/* Table Row Hover Effect */
#items-list tr:hover {
  background-color: #f1f1f1; /* Light gray on hover */
}

/* Action Buttons Styling in Item List */
#items-list button {
  padding: 8px 12px;
  font-size: 14px; /* Medium font size */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Specific Styling for Action Buttons */
#items-list .edit-btn {
  background-color: #2ecc71; /* Green for Edit */
  color: white;
}

#items-list .edit-btn:hover {
  background-color: #27ae60; /* Darker green on hover */
}

#items-list .delete-btn {
  background-color: #e74c3c; /* Red for Delete */
  color: white;
}

#items-list .delete-btn:hover {
  background-color: #c0392b; /* Darker red on hover */
}

/* Responsive Table for Smaller Screens */
@media (max-width: 768px) {
  #items-list {
    padding: 15px; /* Adjust padding */
  }

  #items-list th, #items-list td {
    font-size: 14px; /* Smaller font for mobile */
    padding: 10px;
  }
}


/* Style for Item Details Modal */
#item-details-modal {
  display: none;
  position: fixed;
  top: 10%; /* Start near the top of the screen */
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px; /* Set maximum width */
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

  overflow: hidden; /* Ensure overflow is hidden */
  z-index: 1000;
  margin: auto;
}

/* Close Button */
#item-details-modal .close {
  float: right;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

#item-details-modal .close:hover {
  color: #e74c3c; /* Red color on hover */
}

/* Header of Modal */
#item-details-modal h3 {
  margin-top: 0;
  font-weight: bold;
  text-align: center;
}

/* Scrollable Table within Modal */
#item-details-modal table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

#item-details-modal th, #item-details-modal td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
}

/* Table Header Styling */
#item-details-modal th {
  background-color: #3498db; /* Use a consistent color */
  color: #ffffff;
  font-weight: bold;
}

/* Set max-height for scrollability */
#item-details-modal .table-container {
  max-height: 300px; /* Set a max-height for table */
  overflow-y: auto; /* Scroll vertically */
  margin-top: 10px;
}

/* Even rows different color */
#item-details-modal tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Make close button hover color */
#item-details-modal .close:hover {
  color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
  #item-details-modal {
    width: 95%; /* Adjust width for small screens */
  }
}



.form-group-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 15px;
}

.form-group-container .form-group {
  flex: 1;
  margin-right: 10px;
}

#item-name,
#item-quantity {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
}











#filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#filter-section label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

#filter-section select, 
#filter-section input[type="date"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  max-width: 300px; /* Adjust the width as needed */
  margin-bottom: 10px;
  font-size: 14px;
}

#filter-section select {
  background-color: #fff;
}

#filter-section input[type="date"] {
  background-color: #fff;
}

#filter-section select:focus, 
#filter-section input[type="date"]:focus {
  border-color: #3498db; /* Light blue border on focus */
  outline: none;
}

@media (min-width: 600px) {
  #filter-section {
    flex-direction: row;
    gap: 20px;
    align-items: center;
  }
}


#customer-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#customer-form input,
#customer-form select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#customer-form button {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#customer-form button:hover {
  background-color: #2980b9;
}


#customer-list {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  list-style-type: none;
}

#customer-list li {
  padding: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

#customer-list button {
  padding: 8px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
  transition: background-color 0.3s ease;
}

#customer-list .edit-btn {
  background-color: #2ecc71;
  color: white;
}

#customer-list .edit-btn:hover {
  background-color: #27ae60;
}

#customer-list .delete-btn {
  background-color: #e74c3c;
  color: white;
}

#customer-list .delete-btn:hover {
  background-color: #c0392b;
}


#customers-container h2 {
  text-align: center;
  color: #2e4053;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}



/* Cart Summary Styling */
#cart-summary {
  max-width: 450px; /* Set a max width for the container */
  margin: 30px auto; /* Center the cart summary */
  padding: 25px; /* Add padding inside the container */
  border-radius: 12px; /* Smooth, rounded corners */
  background: linear-gradient(135deg, #ffffff, #f7f9fc); /* Subtle gradient background */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); /* Deeper shadow for a card-like feel */
  text-align: center; /* Center-align content */
  border: 1px solid #d1d9e6; /* Light gray-blue border */
}

/* Cart Summary Title */
#cart-summary h3 {
  margin-top: 0; /* Remove top margin */
  font-size: 1.8em; /* Slightly larger font size */
  color: #2c3e50; /* Deep blue-gray for title */
  font-weight: 700; /* Bold weight */
  margin-bottom: 20px; /* Space below the title */
  border-bottom: 2px solid #d1d9e6; /* Bottom border for visual separation */
  padding-bottom: 10px; /* Add padding below the title */
  letter-spacing: 0.5px; /* Slightly spaced letters for elegance */
}

/* Total Items and Subtotal */
#cart-summary span {
  display: block; /* Display spans as blocks to stack vertically */
  font-size: 1.3em; /* Medium-large font size */
  margin: 15px 0; /* Space between items */
  font-weight: 500; /* Medium font weight */
}

/* Styling the Count and Subtotal */
#cart-total-items strong,
#cart-subtotal strong {
  font-size: 1.4em; /* Larger font for emphasis */
  font-weight: 700; /* Bold */
}

/* Total Items Styling */
#cart-total-items {
  color: #1e90ff; /* Bright blue for total items */
}

/* Subtotal Styling */
#cart-subtotal {
  color: #ff6f61; /* Coral for subtotal */
}

/* Subtle Underline Animation */
#cart-total-items strong,
#cart-subtotal strong {
  position: relative;
  cursor: default;
}

#cart-total-items strong::after,
#cart-subtotal strong::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: currentColor;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease-in-out;
}

#cart-total-items strong:hover::after,
#cart-subtotal strong:hover::after {
  width: 100%; /* Underline on hover */
}

/* Responsive Design */
@media (max-width: 600px) {
  #cart-summary {
    width: 90%; /* Reduce width on small screens */
    padding: 20px; /* Adjust padding */
  }

  #cart-summary h3 {
    font-size: 1.5em; /* Slightly smaller title font */
  }

  #cart-summary span {
    font-size: 1.1em; /* Adjust font size for spans */
  }
}


.transactions-container {
  width: 100%;
  margin: 0 auto;
  padding: 15px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}



#transactions-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  table-layout: fixed;
  background-color: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* Table Header Styling */
#transactions-table thead th {
  background-color: #1396ee;
  color: #ffffff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 13px;
  padding: 20px 10px;
  border-bottom: 3px solid #0c6ca1;
  letter-spacing: 1px;
}

/* Table Row and Cell Styling */
#transactions-table th, 
#transactions-table td {
  padding: 15px 20px;
  text-align: center;
  border: 1px solid #ddd;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Table Body Rows */
#transactions-table tbody tr {
  background-color: #f7f7f7;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Alternate Row Colors */
#transactions-table tbody tr:nth-child(even) {
  background-color: #ebf4f9;
}

/* Hover Effect */
#transactions-table tbody tr:hover {
  background-color: #d4eaf7; /* Light blue hover effect */
  transform: translateY(-2px); /* Slight lift effect */
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cell Text Styling */
#transactions-table td {
  color: #444;
  font-weight: 500;
  padding: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Hide the 3rd column */
 
  /* Adjust column width for smaller screens */
  #transactions-table td:nth-child(2),
  #transactions-table th:nth-child(2) {
    width: 20%;
    text-align: left;
  }
}





/* Action Buttons Styling */
#transactions-table .action-btn {
  padding: 6px 10px; /* Smaller padding for compact buttons */
  font-size: 12px; /* Smaller button text */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* View and Delete Buttons */
#transactions-table .view-details-btn {
  background-color: #1396ee;
  color: white;
}

#transactions-table .view-details-btn:hover {
  background-color: #1396ee;
}

#transactions-table .delete-btn {
  background-color: #e74c3c; /* Red */
  color: white;
}

#transactions-table .delete-btn:hover {
  background-color: #c0392b;
}

/* Narrow Row Heights */
#transactions-table th,
#transactions-table td {
  padding: 0px 10px; /* Reduced padding for narrower rows */
  line-height: 1.3; /* Reduced line height */
}

/* Responsive Table Styling */
@media (max-width: 768px) {
  .transactions-container {
    padding: 10px;
  }

  #transactions-table {
    font-size: 12px;
  }

  #transactions-table th,
  #transactions-table td {
    padding: 8px 6px;
    overflow: hidden;
  }

  

  #transactions-table .action-btn {
    background-color: #006aff;
    padding: 1px 1px; /* Smaller padding for compact buttons */
    font-size: 12px; /* Smaller button text */
    border: none;
    border-radius: 4px;
    height: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

}




/* Standardized and Professional Top Navigation Styling */
.top-nav {
  width: 100%;
  background-color: #007bff; /* Standardized blue color */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

.nav-container {
  max-width: 1200px; /* Standard container size */
  margin: 0 auto;
  padding: 0 20px;
}

.top-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around; /* Evenly space items */
  align-items: center;
}

.top-nav ul li {
  padding: 15px 0;
  text-align: center;
}

.top-nav ul li a {
  color: #ffffff; /* White text for contrast */
  padding: 10px 15px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px; /* Rounded corners */
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.top-nav ul li a:hover {
  background-color: #0056b3; /* Darker blue on hover */
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

.top-nav ul li a.active {
  background-color: #0056b3; /* Same as hover for active */
  color: #f8f9fa; /* Slightly lighter white */
}


/* Responsive Styling */
@media (max-width: 768px) {
  .top-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 10px 0; /* Additional padding for vertical layout */
  }
  
  .top-nav ul li {
    padding: 8px 0;
  }

  .top-nav ul li a {
    padding: 12px 20px; /* Increase padding for touch targets */
    width: 100%;
    text-align: center; /* Center-align the text */
  }
}

/* Responsive Design for Larger Screens */
@media (min-width: 1200px) {
  .nav-container {
    padding: 0 30px; /* Adjusted padding for larger screens */
  }
}


/* Styles for Filter Buttons */
.filter-btn {
  background-color: #3498db;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  margin-left: 10px; /* Space between button and dropdown */
  transition: background-color 0.3s ease;
}

.filter-btn:hover {
  background-color: #2980b9;
}


/* Container for all filters in a single row */
.summary-filter {
  display: flex;
  align-items: center;
  gap: 10px; /* Gap between elements */
  padding: 8px;
  background-color: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px; /* Space below filters */
  overflow-x: auto; /* Allow horizontal scroll if content overflows */
  white-space: nowrap; /* Keep elements on a single row */
}

/* Styling for each filter group */
.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 5px; /* Small gap between label and input */
}

/* Label styling */
.filter-group label {
  font-weight: 500;
  font-size: 12px; /* Smaller font size */
  color: #333;
  white-space: nowrap; /* Prevent label from wrapping */
  margin-right: 5px; /* Space between label and input */
}

/* Input and select styling */
.filter-group input[type="text"],
.filter-group input[type="date"],
.filter-group select {
  padding: 5px 8px; /* Compact padding */
  font-size: 12px; /* Smaller font size */
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100px; /* Smaller width for compact layout */
  outline: none;
  transition: border-color 0.2s ease;
}

/* Input and select focus effect */
.filter-group input[type="text"]:focus,
.filter-group input[type="date"]:focus,
.filter-group select:focus {
  border-color: #3498db; /* Blue border on focus */
}

/* Ensuring horizontal scrolling on smaller screens */
@media (max-width: 768px) {
  .summary-filter {
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow-x: auto; /* Allow horizontal scroll */
  }

  .filter-group {
    margin-right: 10px; /* Space between groups */
  }
}


/* Container for the summary section */
.details-summary {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  margin: 20px auto;
  background-color: #f2f4f8;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 1200px; /* Set a max width */
}

/* Styling for each summary box */
.details-summary .summary-box {
  flex: 1;
  padding: 10px; /* Reduce padding */
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 0 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100px; /* Set a smaller height */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
}

/* Heading styling */
.details-summary .summary-box h2 {
  font-size: 16px; /* Smaller font size */
  font-weight: 600;
  margin-bottom: 5px; /* Reduce margin */
  color: #3498db; /* Blue color for headings */
}

/* Paragraph styling */
.details-summary .summary-box p {
  font-size: 20px; /* Smaller font size */
  font-weight: bold;
  color: #333; /* Dark text color */
  margin: 0; /* Remove default paragraph margin */
}

/* Adjustments for responsive design */
@media (max-width: 768px) {
  .details-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .details-summary .summary-box {
    margin: 10px 0;
    width: 100%; /* Make the boxes full width on smaller screens */
  }
}




.filter-buttons {
  padding-left: 60px;
  display: flex;
  justify-content: flex-end; /* Align buttons to the right */
  gap: 15px; /* Add spacing between buttons */
  width: 20%; /* Make sure the container takes up the full width */
  
}
.filter-buttons button {
  padding: 8px 12px; /* Adjust button padding */
  font-size: 14px; /* Adjust font size */
  width: 50px;
  cursor: pointer;
  border-radius: 5px; /* Optional: make rounded corners */
  color: white; /* Button text color */
  border: none; /* Remove border */
  transition: background-color 0.3s ease; /* Smooth hover effect */
}

/* Unique colors for each button */
#today-btn {
  background-color: #28a745; /* Green */
}

#yesterday-btn {
  background-color: #f98305; /* Yellow */
}

#week-btn {
  background-color: #17a2b8; /* Teal */
}

/* Hover effect */
.filter-buttons button:hover {
  opacity: 0.8; /* Make buttons slightly transparent on hover */
}









.login-container {
  max-width: 400px;
  width: 100%;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 0 auto;
}

.login-container h2 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #007BFF;
}

button[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #007BFF;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}
.login-title {
  margin-bottom: 5px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #007BFF;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 2px solid #007BFF;
  display: inline-block;
  padding-bottom: 5px;
}


#cart-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: #fff;
  padding: 15px 20px;
  border-radius: 50px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 16px;
  z-index: 1000;
}

#cart-floating-btn:hover {
  background-color: #0056b3;
}

#cart-count {
  font-weight: bold;
}


/* Container for Tabs */
.tr-tabs {
display: flex;
justify-content: center;
margin-bottom: 20px;
border-bottom: 2px solid #ddd;
}

/* Tab Buttons */
.tr-tab-button {
padding: 12px 24px;
cursor: pointer;
border: none;
outline: none;
background-color: #f9f9f9;
color: #333;
font-weight: 500;
font-size: 16px;
transition: all 0.3s ease;
margin: 0 10px;
border-radius: 5px 5px 0 0;
border-bottom: 3px solid transparent;
}

.tr-tab-button.active {
background-color: #007bff;
color: #fff;
border-bottom-color: #007bff;
}

.tr-tab-button:hover {
background-color: #e7f1ff;
color: #007bff;
}

/* Main Container for Center Alignment */
.tr-container {
display: flex;
justify-content: space-around;
align-items: flex-start;
max-width: 1800px;
margin: 0 auto;
padding: 20px;

}

.column {
background-color: #fff;
padding: 0px;

border-radius: 8px;
width: 95%;

}

.tab-content {
display: none;
}

.tab-content.active {
display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
.tr-container {
  flex-direction: column;
  align-items: flex-start; /* Align items to the top */
  justify-content: flex-start; /* Ensure content starts from the top */
  width: 100%;
  padding: 0;
  background-color: #ffffff;
}

.column {
  background-color: #fff;
  padding: 1px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

.tab-content {
  display: none; /* Hidden by default */
  padding: 2px;
  border: 1px solid #ddd;
 
  border-radius: 4px;
}


}



/* Top Navigation Bar Styles */


ul.nav-links {

display: none;
margin: 0;
padding: 0;
}

@media (max-width: 768px) {
ul.nav-links {
  display: none; /* Ensure it's hidden on mobile */
}
}





.nav-links li {
margin: 0 15px;
}

.nav-links a {
color: #fff;
text-decoration: none;
}





/* Responsive Styles */
@media (max-width: 768px) {


.nav-links {
  display: none; /* Hide the links initially on mobile */
  flex-direction: column;
  background-color: #333;
  position: absolute;
  top: 50px; /* Adjust based on your header height */
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-links.open {
  display: flex; /* Show the links when open */
}

.nav-links li {
  margin: 10px 0;
  text-align: center;
}

.nav-links a {
  padding: 10px;
  display: block;
}
}


.export-csv {
margin-top: 20px; /* Add some space above */
text-align: center; /* Center the button */
}

#export-csv-btn {
display: inline-block; /* Make sure it's visible */
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}


/* Modal styling */
#stock-details-modal {
display: none; /* Hidden by default */
position: fixed;
z-index: 1000; /* Ensure it appears on top */
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
justify-content: center;
align-items: center;
}

.stock-modal-content {
background-color: #ffffff;
margin: auto;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 700px;
width: 90%;
position: relative;
}

/* Close button */
.stock-modal-content .close {
position: absolute;
top: 10px;
right: 15px;
font-size: 24px;
font-weight: bold;
color: #333;
cursor: pointer;
}

.stock-modal-content .close:hover {
color: #d9534f; /* Red color on hover */
}

/* Filter Section */
#filter-section1 {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
padding: 15px;
background-color: #f7f7f7; /* Light grey background */
border-radius: 8px;
margin-bottom: 20px;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#filter-section1 label {
flex: 1;
margin-right: 10px;
font-weight: bold;
color: #333;
}

#filter-section1 input[type="date"],
#filter-section1 select {
flex: 2;
padding: 8px;
font-size: 14px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: #fff;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#filter-section1 input[type="date"]:focus,
#filter-section1 select:focus {
border-color: #007bff; /* Blue border on focus */
outline: none;
}

/* Responsive design */
@media (max-width: 768px) {
#filter-section1 {
    flex-direction: column;
}

#filter-section1 label,
#filter-section1 input,
#filter-section1 select {
    width: 100%;
    margin-bottom: 10px;
}
}


#common-modal {
 
   width: 100%;
  height: 100%;
 
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
 
}


/* Modal content styling */
.common-modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}
/* Modal styling */
@media (max-width: 768px) {
#common-modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000; /* Ensure it appears on top */

  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  background-color: rgba(108, 178, 244, 0.5); /* Semi-transparent background */
}
/* Modal content styling */
.common-modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px; /* Limit the modal width */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

}


/* Close Button Styling */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #ff0505;
  cursor: pointer;
  transition: color 0.3s ease;
}




/* Container div styling */
.label-container {
display: flex;
justify-content: space-between; /* Evenly space labels */
align-items: center;
background-color: #f9f9f9; /* Light background for the container */
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
margin: 20px 0; /* Add margin to separate from other elements */
max-width: 800px; /* Optional max-width */

}

/* General label styling */
.label-container label {
font-size: 16px;
font-weight: bold;
color: #333; /* Dark text for good contrast */
padding: 8px 16px;
border-radius: 5px;
}

/* Specific label color schemes */
#item-name-label {
background-color: #ffefd5; /* Light peach for item name */
color: #d2691e; /* Darker brown text */
}

#available-qty-label {
background-color: #e6f7ff; /* Light blue for available quantity */
color: #0056b3; /* Darker blue text */
}

#type-label {
background-color: #f0fff0; /* Light green for transaction type */
color: #228b22; /* Dark green text */
}



/* General container for centering content */
.general-container {
max-width: 800px;
margin: 50px auto;
padding: 20px;
background-color: #f9f9f9;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 10px;
font-family: Arial, sans-serif;
}

/* Title styles */
.general-container h1 {
text-align: center;
color: #333;
font-size: 24px;
margin-bottom: 30px;
}

/* Form group styling */
.general-form-group {
margin-bottom: 20px;
display: flex;
flex-direction: column;
align-items: flex-start;
}

.general-form-group label {
font-size: 16px;
margin-bottom: 8px;
color: #555;
}

/* Dropdown styling */
#company-select {
width: 100%;
padding: 8px;
font-size: 16px;
border-radius: 5px;
border: 1px solid #ccc;
}

/* Collection list styling */
#collections-list {
max-height: 200px;
overflow-y: auto;
border: 1px solid #ccc;
padding: 10px;
background-color: #fff;
border-radius: 5px;
width: 100%;
}

.general-collections-list {
display: flex;
flex-wrap: wrap;
gap: 15px;
padding: 10px;
background-color: #f1f1f1;
border-radius: 8px;
}

/* Styling for each checkbox item */
.checkbox-item {
display: flex;
align-items: center;
background-color: #fff;
border: 1px solid #ddd;
padding: 8px 12px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styling for the checkbox labels */
.checkbox-item label {
margin-left: 8px;
font-size: 14px;
color: #333;
}





/* Checkbox styling */
.general-checkbox-item {
margin-bottom: 10px;
}

.general-checkbox-item input[type="checkbox"] {
margin-right: 10px;
}

.general-checkbox-item label {
font-size: 16px;
color: #555;
}

/* Button styling */
button {
display: inline-block;
padding: 10px 20px;
font-size: 16px;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 5px;
cursor: pointer;
margin-right: 10px;
}

button:hover {
background-color: #0056b3;
}

/* Success and Error Message */
.alert {
margin-top: 20px;
padding: 10px;
border-radius: 5px;
font-size: 16px;
}

.alert-success {
background-color: #d4edda;
color: #155724;
}

.alert-danger {
background-color: #f8d7da;
color: #721c24;
}

/* Button container */
.general-button-group {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 20px;
}




/* Updated styles for stock-wrapper */

.stock-wrapper {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
background-color: #f9f9f9;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stock-wrapper .form-group {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}

.stock-wrapper input[type="text"] {
padding: 10px;
width: 300px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}

#stock-value-label {
font-size: 18px;
color: #007bff; /* Blue color for the label */
font-weight: bold;
}










/* CSS for Item Image */
.item-image {
  width: 50px;   /* Width for the image */
  height: 50px;  /* Height for the image */
  object-fit: cover;  /* Ensure the image fits within the given dimensions without distortion */
  border-radius: 5px; /* Optional: Add rounded corners for a smoother look */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
  margin-right: 10px; /* Add spacing to the right of the image if needed */
}

/* Adjust image size for mobile */
@media (max-width: 768px) {
  .item-image {
    width: 40px;  /* Slightly smaller width for mobile devices */
    height: 40px; /* Slightly smaller height for mobile devices */
  }
}






    /* Fullscreen Button */
    #fullscreen-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      padding: 15px 30px;
      font-size: 18px;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* Hide the button when active */
    #fullscreen-btn.hidden {
      display: none;
    }









/* Company Logo Container */
.company-logo-container {

width: 180px;
text-align: center;
border-bottom: #71757a solid 1px;
}

.company-logo {
width: 50%;
height: auto;
border-radius: 50%;
border: 3px solid #fff;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}











/* Cart Container Styling */
#cart-container {
width: 100%;
max-width: 1200px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
overflow-x: auto; /* Ensures scrollable content on smaller screens */
}

/* Cart Table Styling */
#cart-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed; /* Ensures even column width distribution */
}

#cart-table th, #cart-table td {
padding: 15px;
text-align: left;
border-bottom: 1px solid #ddd;
font-size: 16px;
word-wrap: break-word;
white-space: normal; /* Allows the text to wrap inside the table cells */
}




/* Header Styling */
#cart-table thead th {
background-color: #007bff;
color: white;
font-weight: bold;
text-align: center;
white-space: nowrap; /* Prevent text wrapping in header */
}

/* Aligning text to the center */
#cart-table tbody td {
text-align: center;
white-space: nowrap; /* Prevent text wrapping in table rows */
}

/* Ensure enough space for price fields */
#cart-table td:nth-child(3), /* Price */
#cart-table td:nth-child(4) { /* Total */
width: 120px; /* Set fixed width for price and total columns */
white-space: nowrap; /* Prevent text wrapping */
}

/* Button styling inside table */
#cart-table .action-btn {
background-color: #e74c3c;
color: white;
padding: 8px 12px;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}

#cart-table .action-btn:hover {
background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {


#cart-container {
  width: 100%;
  
  margin: 0px auto;
  padding: 0px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow-x: auto; /* Ensures scrollable content on smaller screens */
}


#cart-table th, #cart-table td {
  padding: 5px;
  font-size: 14px;
}

/* Adjust table layout for smaller screens */
#cart-table td {
  white-space: nowrap; /* Prevent text from wrapping */
  overflow: hidden;
}

#cart-table th:nth-child(3), #cart-table th:nth-child(4),
#cart-table td:nth-child(3), #cart-table td:nth-child(4) {
  width: 80px; /* Narrow down the width for mobile devices */
}
}


/* General button styling */
button {
padding: 12px 20px;
font-size: 16px;
font-weight: 600;
color: #fff;
background-color: #3498db; /* Primary blue color */
border: none;
border-radius: 5px;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
transition: background-color 0.3s ease, transform 0.2s ease;
width: 100%; /* Full-width on smaller screens */
max-width: 300px; /* Limit button width */
margin: 10px auto;
display: block; /* Centers the button */
}

/* Hover and active states */
button:hover {
background-color: #2980b9; /* Darker blue on hover */
}

button:active {
transform: scale(0.98); /* Slightly shrink button on click */
}



/* Responsive design for smaller devices */
@media (max-width: 768px) {
button {
  width: 100%;
  max-width: 100%; /* Ensure buttons span the full width on mobile */
  font-size: 14px;
}
}


/* Position the toggle button at the bottom right */
#toggle-fields-btn {
position: absolute;
bottom: 20px;
right: 20px;
height: 40px;
width: 50px;
background-color: #2ecc71; /* Green for secondary action */
padding: 10px 15px;
font-size: 14px;
font-weight: 600;
border: none;
border-radius: 5px;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover and active states for the toggle button */
#toggle-fields-btn:hover {
background-color: #27ae60; /* Darker green on hover */
}

#toggle-fields-btn:active {
transform: scale(0.98); /* Slight shrink effect on click */
}

/* General button styling for the Submit Transaction button */
#submit-transaction {
display: block;
width: 100%; /* Full width by default */
max-width: 300px;
margin: 0 auto;
background-color: #3498db; /* Primary blue color */
padding: 12px 20px;
font-size: 16px;
font-weight: 600;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}

#submit-transaction:hover {
background-color: #2980b9; /* Darker blue on hover */
}

#submit-transaction:active {
transform: scale(0.98); /* Slight shrink effect on click */
}

/* Ensure the form-group is relatively positioned to allow absolute positioning */
.form-group {
position: relative;
}

/* Responsive design to ensure button placement adapts */
@media (max-width: 768px) {
#toggle-fields-btn {
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  padding: 8px 12px;
}

#submit-transaction {
  font-size: 14px;
}
}




.sales-form-container {
  background-color: #f9f9f9;
  padding: 20px;
  margin: auto;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#sales-form input[type="number"],
#sales-form input[type="date"],
#sales-form select {
  width: 100%;
}

#sales-form button {
  margin-top: 15px;
}

/* Today's Sales List */
#today-sales-list {
  margin-top: 30px;
}

#today-sales-list table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#today-sales-list th, #today-sales-list td {
  padding: 12px 20px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
}

#today-sales-list th {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

#today-sales-list tr:nth-child(even) {
  background-color: #f9f9f9;
}

#today-sales-list td {
  color: #555;
}

#message {
  margin-top: 20px;
  padding: 10px;
  background-color: #dff0d8;
  color: #3c763d;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
  .main-content, .sales-form-container {
    padding: 15px;
  }

  button {
    font-size: 14px;
  }

  #today-sales-list th, #today-sales-list td {
    font-size: 12px;
    padding: 8px 10px;
  }
}







/* Container Styling */
.item-list-container {
  width: 90%;
  max-width: 1200px;
  margin: 5px auto;
  padding: 0px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  transition: all 0.3s ease-in-out;
}

.item-list-container:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Table Styling */
#item-list {
  width: 100%;
  border-collapse: collapse; /* Ensure cells don't have separate borders */
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #333;
}

#item-list thead {
  background-color: transparent;
  color: #007bff;
}

#item-list th {
  padding: 15px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #ffa500; /* Orange bottom border on header */
}

/* Column Widths */
#item-list th:nth-child(1), #item-list td:nth-child(1) {
  width: 10%; /* Image */
}

#item-list th:nth-child(2), #item-list td:nth-child(2) {
  width: 25%; /* Item Name */
}

#item-list th:nth-child(3), #item-list td:nth-child(3) {
  width: 15%; /* Item Code */
}

#item-list th:nth-child(4), #item-list td:nth-child(4) {
  width: 15%; /* Price */
}

#item-list th:nth-child(5), #item-list td:nth-child(5) {
  width: 15%; /* Quantity */
}

#item-list th:nth-child(6), #item-list td:nth-child(6) {
  width: 20%; /* Action */
}

#item-list tbody tr {
  background-color: #ffffff;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border-bottom: 1px solid #ff8800; /* Orange bottom border for rows */
}

#item-list tbody tr:hover {
  background-color: #fafafa;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#item-list td {
  padding: 5px 10px;
  text-align: center;
  border: none; /* Remove all borders except the bottom */
}

#item-list td img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 238, 255, 0.15);
  transition: transform 0.3s ease;
}








/* Action Button Styling */
#item-list td .action-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

#item-list td .action-btn:hover {
  background-color: #218838;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Advanced Hover Effects */
#item-list tbody tr:nth-child(odd) {
  background-color: #f8f9fa;
}

#item-list tbody td {
  position: relative;
}



#item-list tbody tr:hover td:before {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
  #item-list th, #item-list td {
    padding: 10px 12px;
    font-size: 14px;
  }

  #item-list td img {
    width: 50px;
    height: 50px;
  }

  .item-list-container {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  #item-list {
    font-size: 14px;
  }

  #item-list td img {
    width: 40px;
    height: 40px;
  }

  #item-list td .action-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}


/* Form and Button Styling */
.form-container {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  text-align: center;
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-control {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.row-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

#stock-value-label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-right: 10px;
  flex-shrink: 0;
}

button.add-item-btn {
  background-color: #3498db;
  color: white;
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  width: 100%;
  border-radius: 5px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

button.add-item-btn:hover {
  background-color: #2980b9;
}

/* Table Styling */
.item-list-container {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.item-list-container h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

#bankAccountTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#bankAccountTable th, #bankAccountTable td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

#bankAccountTable th {
  background-color: #3498db;
  color: white;
  font-weight: bold;
}

#bankAccountTable td {
  color: #333;
}

#bankAccountTable tbody tr:hover {
  background-color: #f1f1f1;
}

button.edit-btn, button.delete-btn {
  background-color: #3498db;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

button.delete-btn {
  background-color: #e74c3c;
}

button.edit-btn:hover {
  background-color: #2980b9;
}

button.delete-btn:hover {
  background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-container {
      width: 100%;
      padding: 15px;
  }

  #bankAccountTable th, #bankAccountTable td {
      padding: 10px;
      font-size: 14px;
  }

  button.add-item-btn {
      font-size: 14px;
      padding: 8px;
  }
}

/* Container for the summary */
.summary-container {
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 600px;
  margin: 50px auto;
  text-align: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Title styling */
h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Summary items container */
.daily-summary {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Styling each summary item */
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  color: #555;
  transition: background-color 0.3s ease;
}

.summary-item:hover {
  background-color: #f1f1f1;
}

/* Styling for the labels */
.summary-item span:first-child {
  font-weight: 500;
  color: #444;
}

/* Styling for the values */
.summary-item span:last-child {
  font-weight: 600;
  color: #007bff;
}

/* Loading div styling */
.loading {
  margin-top: 20px;
  font-size: 16px;
  color: #888;
  font-style: italic;
}



/* Responsive design for smaller screens */
@media (max-width: 600px) {
  .summary-container {
    padding: 20px;
  }

  .summary-item {
    font-size: 14px;
  }

  h1 {
    font-size: 22px;
  }
}
