body {
    font-family: sans-serif;
    margin: 0;
}
.main-container {
    margin-left: 250px; /* Same as sidebar width */
    padding: 20px;
    transition: margin-left 0.5s;
}

.content-layout {
    max-width: 1200px;
    margin: auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Controls (Search and Dropdown) */
.controls-container {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.search-container {
    position: relative;
}
.search-container input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.dropdown-container {
    width: 200px;
}

#categoryFilter {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#productsTable {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 0.75rem;
    margin: 0;
    font-size: 14px;
    text-align: left;
}

#productsTable th {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

#productsTable th, #productsTable td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

#productsTable td {
    color: #4b5563; /* Gray-600 */
    white-space: nowrap;
}

#productsTable thead {
    background-color: #e5e7eb;
    color: #fff;
    text-transform: uppercase;
}

#productsTable tbody tr{
    transition: background-color 0.2s ease-in-out;
}

#productsTable tbody tr:hover {
    background-color: #f9fafb;
}

/* Actions Column */
.actions-cell {
    display: flex;
    gap: 10px;
}

.actions-cell button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.edit-btn {
    background-color: #4CAF50;
    color: white;
}

.edit-btn:hover {
    background-color: #45a049;
}

.delete-btn {
    background-color: #dc2626;
    color: white;
}

.delete-btn:hover {
    background-color: #cc0000;
}

/* Calendar popup for availability */
.availability-container {
    position: relative;
    display: inline-block;
}

.availability-display {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f0f0f0;
}

.availability-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: none;
    flex-direction: column;
    padding: 10px;
    gap: 5px;
    min-width: 180px;
}

.availability-calendar.show {
    display: flex;
}

.availability-calendar label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Modal styling (for edit and delete) */
.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-actions .save {
    background-color: #4CAF50;
    color: white;
}

.modal-actions .save:hover {
    background-color: #45a049;
}

.modal-actions .delete {
    background-color: #dc2626;
    color: white;
}

.modal-actions .delete:hover {
    background-color: #cc0000;
}

.modal-actions .cancel {
    background-color: #ccc;
    color: #333;
}

.modal-actions .cancel:hover {
    background-color: #b0b0b0;
}