h2 {
    margin-bottom: 20px;
}
.head-pages {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.add-button {
    background-color: #38c172;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.add-button:hover,
.add-button:focus,
.btn-SubService:hover,
.btn-SubService:focus {
    color: white;
}

th,
td {
    padding: 12px 15px;
    text-align: center !important;
    border-bottom: 0.5px solid #cccccc47 !important;
}

.action-btns {
    display: flex;
    gap: 5px;
    justify-content: center;
}
th {
    background-color: #eaf0f8;
}

.btn-edit,
.btn-edit-sub,
.btn-delete,
.btn-delete-sub,
.btn-SubService {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.btn-edit, .btn-edit-sub {
    background-color: #001f3f;
}

.btn-delete, .btn-delete-sub {
    background-color: #e74c3c;
}
.btn-SubService {
    background-color: #38c172;
    color: #fff;
}
.fullEdit-button {
    font-size: 12px;
    padding: 6px 10px;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    background-color: #00c0ef;
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 60% !important;
    border-radius: 10px;
    position: relative;
}
.new-modal {
    margin: 0 auto;
}
.main-content input {
    width: 75%;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-footer {
    text-align: right;
}

.save-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.image-gallery img {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    margin: 5px;
    cursor: pointer;
}
.image-gallery img:hover {
    border: 2px solid #007bff;
}
#imagePreview {
    max-width: 200px;
    max-height: 200px;
    display: none;
    margin-top: 10px;
}
#selectedImageDisplay {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    margin-left: 10px;
    border: 1px solid #ccc;
}
.model-image {
    width: 100% !important;
}
.page-det {
    width: 35%;
}
.page-details {
    display: flex;
    flex-direction: row-reverse;
    gap: 2%;
}
.page-details .main-info {
    width: 23%;
}
.page-details #gjs {
    width: 75% !important;
    margin-top: 25px !important;
}
.btn-edit,
.btn-edit-sub,
.btn-delete,
.btn-delete-sub{
    padding: 10px;
    font-size: 12px;
}

.btn-edit svg,
.btn-edit-sub svg,
.btn-delete svg,
.btn-delete-sub svg,
.add-button svg,
.fullEdit-button svg {
    width: 15px;
    height: 15px;
    fill: #fff;
}

/* Style for table headers and cells */

.main-table th {
    background-color: #e8f0fe; /* Light blue header background like in the screenshot */
    font-weight: bold;
}

.main-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f8f9fa;
    margin-top: 60px;
}

/* Style for the table headers */
.main-table th {
    background-color: #e8f0fe; /* Light blue header background */
    font-weight: bold;
}

.subcategory-row {
    background-color: #f1f1f1;
}

.subcategory-title {
    padding-left: 20px;
}
.btn-subcategories {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-subcategories:hover {
    background-color: #0056b3;
}
@media (max-width: 768px) {
    #gjs {
        margin-top: 50px;
    }
    :root {
        --gjs-left-width: 35% !important;
    }
    .page-details {
        display: flex;
        flex-direction: column;
        gap: 2%;
    }
    .page-details .main-info,
    .page-details #gjs {
        width: 100% !important;
    }
    .main-table {
        /* display: block; */
        overflow-x: auto;
        white-space: nowrap;
        margin-top: 30px;
    }

    /* Reduce padding for mobile */
    .main-table th,
    .main-table td {
        padding: 5px;
    }

    /* Reduce button size for mobile */
    .btn-edit,
    .btn-edit-sub,
    .btn-delete,
    .btn-delete-sub,
    .add-button {
        padding: 3px;
    }

    .btn-edit svg,
    .btn-edit-sub svg,
    .btn-delete svg,
    .btn-delete-sub svg,
    .add-button svg {
        width: 14px;
        height: 14px;
    }

    .btn-subcategories {
        padding: 3px 6px;
        font-size: 14px;
    }
    td:last-child {
        border-bottom: none;
    }
    .btn-SubService {
        font-size: 10px;
        padding: 3px;
    }
}

.tab-content > .active {
    display: flex !important;
    flex-direction: column;
}
.tab-content button {
    align-self: flex-end;
    color: #fff;
}
.tab-content button:hover {
    color: #fff !important;
}
.delete-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.delete-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-confirm {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-confirm:hover {
    background-color: #c0392b;
}

.btn-cancel {
    background-color: #ecf0f1;
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancel:hover {
    background-color: #bdc3c7;
}
.form-group label {
    display: block;

    font-weight: 700;
    color: #333;
}
