/* Custom CSS styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #000; /* Changed color to black */
    margin: 0;
    padding: 0;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-right {
    display: flex;
    align-items: center;
}
.header-right #recipe-count {
    font-size: 18px;
    font-weight: bold;
}
h1, h2 {
    color: #000; /* Changed color to black */
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}
th {
    background-color: #000; /* Changed color to black */
    color: #fff;
}
th:first-child, td:first-child {
    border-left: none;
}
th:last-child, td:last-child {
    border-right: none;
}
.btn {
    background-color: #000; /* Changed color to black */
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover {
    background-color: #333; /* Darker shade on hover */
}
.form-group {
    margin-bottom: 20px;
}
label {
    font-weight: bold;
}
input[type="text"], textarea, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 4px;
}
input[type="checkbox"] {
    margin-top: 8px;
}
.dataTables_wrapper .dataTables_filter {
    text-align: left; /* Align search box to left */
    width: 400px; /* Increased width of search box */
    margin-top: 20px; /* Moved search box up */
}
.dataTables_wrapper .dataTables_filter input {
    width: 100%;
}
img.lettuce-icon {
    display: block;
    margin: 0 auto; /* Center lettuce icon */
}

/* New CSS styles */
.dataTables_length {
    display: none; /* Hide "Show X entries" dropdown */
}

.dataTables_filter {
    float: right;
    margin-top: -40px; /* Adjust this value as needed */
}

.container {
    position: relative;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: center;
        margin-top: 10px;
        width: 100%;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: auto;
        display: inline-block;
    }
    .container {
        padding: 10px;
    }
    table, th, td {
        display: block;
        width: 100%;
    }
    th, td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    th::before, td::before {
        content: attr(data-title);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
    }
}
