html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.main {
    padding-bottom: 72px;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 72px;
    background-color: #f5f5f5;
}

#searchInput {
    width: 40%;
    height: auto;
}

#comment {
    width: 100%;
    height: auto;
}

/* CSS for negative action buttons like "Cancel", "Reset" */
.btn-negative {
    background-color: #6c757d; /* Grey background */
    color: white; /* White text */
    border: none; /* Remove border */
    padding: 10px 20px; /* Add padding for better spacing */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth transition for hover */
}

.btn-negative:hover {
    background-color: #5a6268; /* Darker grey on hover */
}

/* CSS for positive action buttons like "Search", "Save", "Proceed" */
.btn-positive {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    border: none; /* Remove border */
    padding: 10px 20px; /* Add padding for better spacing */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth transition for hover */
}

.btn-positive:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Optional: if you want to disable focus outline */
button:focus {
    outline: none;
}

.clickable-row {
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dee2e6;
}

.clickable-row:hover {
    background-color: #e9ecef;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.category-header {
    font-size: 1.2rem;
    color: #495057;
}

.collapse-content {
    display: none;
}

 /* Category Row */
 .clickable-row {
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dee2e6;
}

.clickable-row:hover {
    background-color: #e9ecef;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.category-header {
    font-size: 1.2rem;
    color: #495057;
}

/* Collapsible Content */
.collapse-content {
    display: none;
}

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

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

th {
    background-color: #f1f3f5;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

td {
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

tr:last-child td {
    border-bottom: none; /* Remove border on the last row */
}

/* Buttons Styling */
.btn-search, .btn-reset,.btn-save {
    margin-top: 10px;
}

#loader {
    position: fixed;
    z-index: 999;
    height: 2em;
    width: 2em;
    overflow: visible;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

#loader:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Spinner Styles */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loader:after {
    content: '';
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
    width: 50px;
    height: 50px;
    border-style: solid;
    border-color: black;
    border-top-color: transparent;
    border-width: 4px;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Container for styling and positioning */
.deadline-container {
    padding: 15px;
    margin: 20px 0;
    border: 2px solid #f57c00; /* Orange border */
    border-radius: 8px;
    background-color: #fff3e0; /* Light orange background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for emphasis */
    text-align: center;
}

/* Styling for Deadline text */
.deadline-text {
    font-size: 1.25em;
    font-weight: 600;
    color: #e65100; /* Darker orange */
    margin: 10px 0;
}

/* Styling for Days until text */
.days-until-text {
    font-size: 1.25em;
    font-weight: 600;
    color: #d32f2f; /* Red color for urgency */
    margin: 10px 0;
}

/* Styling for Collection Place text */
.collection-place-text {
    font-size: 1.25em;
    font-weight: 600;
    margin: 10px 0;
}

/* Strong tags for emphasis */
.deadline-container strong {
    font-size: 1.5em;
}

.loader {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #3498db;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    animation: spin 2s linear infinite;
    display: none;
    position: relative;
    left: 50%;
    top: 50%;
  }
  
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

#loadingSpinner {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 8000;
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.collapse {
  transition: height 0.15s ease;  /* faster than default (~0.35s) */
}

.collapse:not(.show) {
  display: none;  /* helps prevent flicker */
}