/* styles.css */

.hr {
    border-bottom: 1px solid #ccc;
    max-width: 60%;
    margin: 5 auto;
}

html, body {
    height: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}


body {
    font-family: Arial, sans-serif;
}
.separator {
    max-width: 100%;
    border: 1px solid #ccc;
}
.table-container {
    margin: 0 auto;
    /*padding-top: 1in;  Adjust top space to approximately 1 inch */
    width: 60%; /* Adjust the width as needed */
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 12px; /* Increase padding for larger cells */
    border: 1px solid #ddd;
    text-align: left;
}
th {
    background-color: #333;
    color: #fff;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
/* Flexbox container for controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
/* Styling for the select label */
.controls label {
    display: flex;
    align-items: center;
}
.controls select {
    margin-left: 5px;
}
/* Styling for the search box */
.search-box {
    display: flex;
    align-items: center;
}
.search-box input {
    padding: 5px;
    font-size: 14px;
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.pagination label {
    display: flex;
    align-items: center;
}
/* Styling for the select label */

/* Styling for the search box */
.search-box {
    display: flex;
    align-items: center;
}
.search-box input {
    padding: 5px;
    font-size: 14px;
}
.title {
    text-align: center;
    font-size: 40px; /* Adjust font size as needed */
    margin-bottom: 20px; /* Add margin bottom to separate the title from the table */
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black overlay */
    z-index: 9999; /* Ensure modal is on top of other content */
}
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px; /* Increased padding for better appearance */
    border-radius: 10px; /* Make border edges slightly rounded */
    z-index: 9999; /* Ensure modal is on top of overlay */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
    width: 60%; /* Adjust width to make the modal wider */
    max-width: 500px; /* Set a max-width to limit the size */
    max-height: 80vh; /* Set max-height to 80% of the viewport height */
    overflow-y: auto; /* Enable vertical scrolling */
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 3px;
    font-size: 24px; /* Increase font size for header */
    text-align: center; /* Center the header text */
}
.modal h4 {
    margin-top: 0;
    margin-bottom: 3px;
    font-size: 18px; /* Increase font size for header */
    text-align: center; /* Center the header text */
}
.modal input[type="text"], .modal input[type="number"], .modal input[type="file"] {
    width: calc(100% - 24px); /* Adjust width to account for padding */
    padding: 9px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.modal input[type="submit"] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition on hover */
}
.modal input[type="submit"]:hover {
    background-color: #45a049;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}
/* Style for the add button */
#addBtn, #redirectBtn {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease; /* Smooth transition on hover */
    margin-right: 10px; /* Add margin between buttons */
}
#addBtn:hover, #redirectBtn:hover {
    background-color: #45a049;
}

.sold-btn {
    background-color: #f44336;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
.sold-btn:hover {
    background-color: #d32f2f;
}
.d-input {
    display: inline-block;
}

.resize {
    overflow: hidden;
    display: inline-block;
}


.resize input {
    box-sizing: border-box;
}

input[type=submit] {
    vertical-align: top;
}

/*form add product form*/
.form-container {
        max-width: 600px;
        margin: 20px auto;
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.form-field {
    flex: 1;
    margin-right: 20px;
}

.form-field:last-child {
    margin-right: 0;
}

.full-width {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: light;
    margin-bottom: 5px;
    font-size: 14px;
}

input[type="text"], select, textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 5px;
}

textarea {
    resize: vertical;
}

input[type="number"] {
border-radius: 0 4px 4px 0;
}

input[type="submit"] {
    padding: 10px 20px;
    background-color: #28a745;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

input[type="submit"]:hover {
    background-color: #218838;
}

.input-peso {
    position: relative;
}
.input-peso.left input {
    padding-left:18px;
}
.input-peso.right input {
    padding-right:18px;
    text-align:end; 
}

.input-peso:before {
    position: absolute;
    top: 0;
    content:"₱";
}
.input-peso.left:before {
    left: 5px;
}
.input-peso.right:before {
    right: 5px;
}
.upload_image {
border: 1px solid #e5e5e5;
border-radius: 10px;
padding: 5px 10px;
font-family: 'Helvetica', sans-serif;
transition: .5s;
}

.upload_image:hover {
background-color: #eee;
}

.search-inputs th input {
    width: 90%;
    padding: 5px;
    box-sizing: border-box;
}




.password-cell {
    position: relative;
}
.show-password-checkbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5px;
}
/* Style for the apply button */
.apply-btn {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
.apply-btn:hover {
    background-color: #0056b3;
}

        

/* Show the dropdown menu when clicked */
.show {
display: block;
}

.product-details {
    margin-top: 20px;
}
.product-details table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.product-details th, .product-details td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}
.product-details th {
    background-color: #f2f2f2;
}
.product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.product-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
    padding: 5px;
    background-color: #fff;
}
.qr-codeprimary {
    text-align: center;
    margin-top: 20px;
}
.qr-code img {
    width: 150px;
    height: 150px;
}
.btn-group {
    text-align: center;
    margin-top: 20px;
}

.btn-warning {
    color: #212529;
    background-color: #ffc107;
}
.btn-warning:disabled {
    background-color: #d4d4d4;
    color: #fff;
}
.btn-success {
    background-color: #28a745;
    color: #fff;
}
.btn-success:disabled {
    background-color: #d4d4d4;
    color: #fff;
}
.btn-danger {
    background-color: #dc3545;
    color: #fff;
}
.btn-danger:disabled {
    background-color: #d4d4d4;
    color: #fff;
}
.btn-primary {
    background-color: #007bff;
    color: #fff;
}
.btn-primary:disabled {
    background-color: #d4d4d4;
    color: #fff;
}
.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

/*sort data ascending and descending. */


