/* ===================== Reset and Base Styles ===================== */
#productionTimestampWrapper {
    box-sizing: border-box;
}

/* ===================== Spinner for loading ===================== */
#productionTimestampWrapper .spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================== Form Styling ===================== */
#productionTimestampWrapper #productionTimeStampForm {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Label styling for form */
#productionTimestampWrapper #productionTimeStampForm label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* General input field styling */
#productionTimestampWrapper #productionTimeStampForm input[type="text"],
#productionTimestampWrapper #productionTimeStampForm input[type="date"],
#productionTimestampWrapper #productionTimeStampForm input[type="file"] {
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
    background: #fff;
}

/* Lot & Quantity Row Styling */
#productionTimestampWrapper #productionTimeStampForm .lot-qty-row {
    display: flex;
    gap: 16px; /* Space between inputs */
    flex-wrap: wrap; /* Allow wrapping if necessary */
    justify-content: space-between; /* Ensure space is evenly distributed */
}

/* Lot # and Quantity Inputs */
#productionTimestampWrapper #productionTimeStampForm .lot-qty-row .lot-qty-container {
    flex: 1; /* Each container takes up equal space */
    min-width: 120px;
}

/* Styling for input fields within lot and quantity row */
#productionTimestampWrapper #productionTimeStampForm .lot-qty-row input {
    width: 100%; /* Ensure inputs fill container */
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Stack inputs on smaller screens */
@media (max-width: 768px) {
    #productionTimestampWrapper #productionTimeStampForm .lot-qty-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* Button Styling for Form (Submit, etc.) */
#productionTimestampWrapper #productionTimeStampForm button {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease-in-out, transform 0.2s ease;
}

/* Hover effect for buttons */
#productionTimestampWrapper #productionTimeStampForm button:hover {
    background-color: #005b8e;
    transform: scale(1.05);
}

/* Disabled button state */
#productionTimestampWrapper #productionTimeStampForm button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* ===================== Button Hover Effect ===================== */
#productionTimestampWrapper #productionTimeStampForm button:hover {
    background-color: #005b8e;
    transform: scale(1.05);
}

/* Disabled Button */
#productionTimestampWrapper #productionTimeStampForm button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Lot & Quantity Row Styling */
#productionTimestampWrapper #productionTimeStampForm .lot-qty-row {
    display: flex;
    gap: 12px; /* Space between the fields */
    align-items: center; /* Vertically align all items (inputs and button) */
    flex-wrap: wrap;
}

/* Remove Button Styling */
#productionTimestampWrapper .removeRow {
    padding: 10px 16px;
    font-size: 14px;
    height: 40px;
    line-height: 18px;
    text-align: center;
    background-color: red;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#productionTimestampWrapper .removeRow:hover {
    background-color: #d13b3b;
}



/* =============== First half ends here  ======================*/

/* ===================== Name Highlight ===================== */
#productionTimestampWrapper .prod-name-highlight {
    font-size: 20px;
    font-weight: bold;
    margin-top: 6px;
    color: #1a1a1a;
    background-color: #e9f5ff;
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===================== Animations ===================== */
@keyframes fadeIn {
    from { background: rgba(0,0,0,0); }
    to { background: rgba(0,0,0,0.7); }
}

@keyframes zoomIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================== Filter Form Styling ===================== */
#productionTimestampWrapper .prod-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
}

#productionTimestampWrapper .prod-filter-form label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
    display: block;
}

#productionTimestampWrapper .prod-filter-form input[type="date"],
#productionTimestampWrapper .prod-filter-form input[type="submit"],
#productionTimestampWrapper .prod-filter-form button {
    font-size: 18px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#productionTimestampWrapper .prod-filter-form input[type="submit"],
#productionTimestampWrapper .prod-filter-form button {
    background-color: #0073aa;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#productionTimestampWrapper .prod-filter-form input[type="submit"]:hover,
#productionTimestampWrapper .prod-filter-form button:hover {
    background-color: #005b8e;
}

/* ===================== Modern Design for Date Inputs ===================== */
#productionTimestampWrapper .prod-filter-form input[type="date"] {
    font-size: 18px;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    background-color: #f9f9f9;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Arial', sans-serif; /* Modern sans-serif font */
}

/* Hover and Focus State for Date Inputs */
#productionTimestampWrapper .prod-filter-form input[type="date"]:hover {
    border-color: #0073aa; /* Subtle hover effect */
}

#productionTimestampWrapper .prod-filter-form input[type="date"]:focus {
    outline: none;
    border-color: #005b8e; /* Darker border on focus */
    box-shadow: 0 0 8px rgba(0, 91, 142, 0.3); /* Soft focus effect */
}

/* ===================== Responsive Filter ===================== */
@media (max-width: 768px) {
    #productionTimestampWrapper .prod-filter-form {
        grid-template-columns: 1fr; /* Stack the fields vertically on small screens */
    }
}

/* ===================== Placeholder Styling ===================== */
#productionTimestampWrapper .prod-filter-form input[type="date"]::placeholder {
    color: #999; /* Light grey placeholder text */
    font-size: 14px;
    opacity: 1; /* Ensure placeholder text is visible */
}

/* Make the placeholder more visible when the user hasn't interacted */
#productionTimestampWrapper .prod-filter-form input[type="date"]:not(:focus)::placeholder {
    opacity: 0.7;
}

/* ===================== Submit Button Styling (For consistency) ===================== */
#productionTimestampWrapper .prod-filter-form input[type="submit"],
#productionTimestampWrapper .prod-filter-form button {
    font-size: 18px;
    padding: 12px 16px;
    border: 1px solid #0073aa;
    border-radius: 6px;
    background-color: #0073aa;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Hover effect for buttons */
#productionTimestampWrapper .prod-filter-form input[type="submit"]:hover,
#productionTimestampWrapper .prod-filter-form button:hover {
    background-color: #005b8e;
    transform: translateY(-2px); /* Subtle button elevation */
}

/* ===================== Mobile Responsiveness ===================== */
@media (max-width: 768px) {
    #productionTimestampWrapper .prod-filter-form {
        grid-template-columns: 1fr;
    }
    #productionTimestampWrapper .prod-filter-form input[type="date"],
    #productionTimestampWrapper .prod-filter-form input[type="submit"],
    #productionTimestampWrapper .prod-filter-form button {
        font-size: 16px;
    }
}

/* ===================== Pagination Layout ===================== */
.prod-pagination {
    margin-top: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.prod-pagination a {
    margin: 0 5px;
    padding: 6px 12px;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.prod-pagination a:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

.prod-pagination .active {
    background-color: #4CAF50;
    color: white;
    border-color: #3e8e41;
}

/* Fix the next/prev arrows */
.prod-pagination a.arrow {
    font-weight: bold;
    padding: 6px 10px;
    font-size: 16px;
}

.prod-pagination a.arrow:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

/* Fix spacing for last page links */
.prod-pagination a:last-child {
    margin-right: 0;
}

/*======================New STYLES ===============================*/
.submission-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid #ccc;
  gap: 20px;
}

.submission-info {
  flex: 1;
  padding-right: 20px;
}

.submission-date,
.submission-name {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 500;
}

.submission-actions {
  font-size: 17px;
  margin-top: 10px;
}

.submission-actions a {
  text-decoration: none;
  color: #333;
  margin-right: 10px;
}

.submission-actions a:hover {
  text-decoration: underline;
}

.delete_submission {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 6px 14px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 5px;
}

.submission-image img {
  max-width: 160px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .submission-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .submission-image {
    margin-top: 15px;
  }
}
 /* // Get the start and end date filters*/
 .prod-filter-form-modern {
  margin-bottom: 30px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 15px;
  margin-bottom: 6px;
  color: #333;
}

.filter-group input[type="date"] {
  padding: 8px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 200px;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.filter-actions button,
.filter-actions .clear-btn {
  padding: 10px 16px;
  font-size: 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.filter-actions button {
  background-color: #4CAF50;
  color: white;
}

.filter-actions .clear-btn {
  background-color: #f44336;
  color: white;
}

