#checklist-suggestions li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee; /* Add a subtle line between items */
}

#checklist-suggestions li:hover {
    background-color: #f0f0f0; /* Highlight item on hover */
}

#checklist-suggestions li:last-child {
    border-bottom: none; /* Remove border for the last item */
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Arial", sans-serif;
    background-color: #f4f7fa;
}

/* Main search container */
#checklist-search {
    width: 70%; /* Search bar takes 70% of screen */
    max-width: 800px; /* Max width to avoid being too wide */
    margin: 30px auto; /* Center the container with space at the top */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search input styling */
#checklist-input {
    width: 100%;
    padding: 12px 18px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    outline: none;
}

/* Change border color on focus */
#checklist-input:focus {
    border-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Suggestions dropdown */
#checklist-suggestions {
    position: absolute;
    top: 100%; /* Position the dropdown below the search bar */
    left: 0;
    width: 100%; /* Full width of the search container */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0; /* Add some space above the dropdown */
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

/* Individual list item */
#checklist-suggestions li {
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, padding-left 0.2s ease;
}

/* Hover effect for list items */
#checklist-suggestions li:hover {
    background-color: #f0f0f0;
    padding-left: 10px; /* Slight indentation for hover effect */
}

/* Styling for read more links */
#checklist-suggestions a {
    color: #4caf50;
    text-decoration: none;
    font-weight: bold;
}

#checklist-suggestions a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    #checklist-search {
        width: 90%; /* Adjust width for smaller devices */
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    #checklist-search {
        width: 100%; /* Full width on very small screens */
        padding: 10px;
    }
}

/* Styling for recent checklist cards */
.recent-checklists {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 20px; /* Space between cards */
    margin: 20px 0; /* Margin for the grid */
}

.checklist-card {
    background-color: #fff; /* White background for each card */
    border: 1px solid #ddd; /* Light gray border for each card */
    padding: 20px; /* Padding inside the card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow around the card */
    border-radius: 8px; /* Rounded corners for the cards */
    transition: transform 0.3s ease; /* Smooth hover effect */
    display: flex;
    flex-direction: column;
}

.checklist-card:hover {
    transform: translateY(-5px); /* Lift effect when hovered */
}

.checklist-card-header {
    margin-bottom: 10px; /* Space between the header and content */
}

.checklist-card-header .checklist-date {
    font-size: 0.9rem;
    color: #888;
}

.checklist-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
}

.checklist-card-content p {
    font-size: 0.95rem;
    color: #555;
}

.checklist-card-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #0073e6; /* Blue background for the button */
    color: #fff; /* White text for the button */
    text-decoration: none;
    border-radius: 5px; /* Rounded corners for the button */
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.checklist-card-link:hover {
    background-color: #005bb5; /* Darker blue on hover */
}

/* Responsive layout */
@media (max-width: 768px) {
    .recent-checklists {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row for medium screens */
    }
}

@media (max-width: 480px) {
    .recent-checklists {
        grid-template-columns: 1fr; /* 1 card per row for small screens */
    }
}

body .checklist-grid {
    display: grid !important;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px; /* Space between items */
    margin: 20px 0;
}

.checklist-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.checklist-card:hover {
    transform: translateY(-5px);
}

.checklist-card-header {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.checklist-card-title a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
}

.checklist-card-content p {
    font-size: 0.95rem;
    color: #555;
    margin-top: 10px;
}

/* Responsive layout */
@media (max-width: 768px) {
    .checklist-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }
}

@media (max-width: 480px) {
    .checklist-grid {
        grid-template-columns: 1fr; /* 1 column for small screens */
    }
}