﻿#categoryName {
    font-size: 1.6rem;
    color: black;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
    font-weight: 500;
}

/* Style for the entire category tree container */
#category-tree {
    padding: 10px;
    background-color: #ffffff; /* Light background */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Style for parent categories */
.category-parent {
    color: #2b6cb0; /* Deep blue */
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    display: inline-block; /* Ensure text remains inline */
    border-radius: 5px;
    margin: 0; /* Remove margin for better alignment */
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

    /* Hover effect for parent categories */
    .category-parent:hover {
        transform: scale(1.02); /* Slight zoom effect */
        background-color: #e3f2fd; /* Light blue background on hover */
    }

/* Style for child categories */
.category-child {
    color: #4a5568; /* Gray for child categories */
    font-size: 17px;
    padding: 5px 15px; /* Indent to distinguish child nodes */
    display: inline-block; /* Ensure text remains inline */
    margin: 0; /* Remove margin for better alignment */
    cursor: pointer;
    transition: background-color 0.2s;
}

    /* Hover effect for child categories */
    .category-child:hover {
        transform: scale(1.02); /* Slight zoom effect */
        background-color: #f7fafc; /* Light gray background on hover */
    }

/* Add spacing and ensure alignment for rows */
.jstree-wholerow {
    border-radius: 5px; /* Round the row edges */
    margin-bottom: 5px;
    height: auto; /* Ensure it adjusts to content height */
    padding: 5px 10px; /* Add padding for better spacing */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

/* Ensure alignment for tree items */
.jstree-anchor {
    display: inline-block; /* Make anchor inline-block for proper alignment */
    vertical-align: middle; /* Center align text vertically */
    width: 100%; /* Ensure it spans the entire row */
    padding: 5px 10px; /* Add consistent padding */
    box-sizing: border-box; /* Include padding in dimensions */
}

#category-tree .jstree-clicked > .jstree-icon {
    color: white; /* Change icon color to white */
}

/* Table style */
.dataTable {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
}
    /* Table header styling */
    .dataTable thead th {
        background-color: #4b465c;
        color: white !important;
        font-weight: bold;
        text-align: center !important;
    }
    /* Table row hover effect */
    .dataTable tbody tr:hover {
        background-color: #f1f1f1;
    }
/* Pagination button style */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    background-color: #4b465c14;
    color: #5d596c !important;
    border-radius: 4px;
    CURSOR: POINTER;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background-color: #4B465C29 !important;
    }
    /* Style for the active pagination button */
    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #7367f0 !important;
        color: #fff !important;
    }
/* Search input styling */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 5px;
    padding: 5px;
    border: 1px solid #ccc;
}
/* Center align pagination and adjust its spacing */
.dataTables_wrapper .dataTables_paginate {
    text-align: center;
    margin-top: 10px;
}
/* Adjust length dropdown and search label alignment */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 10px;
}
/* Basic styling for the checkbox */
.select-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #4B465C; /* Custom border color */
    border-radius: 4px; /* Slightly rounded corners */
    background-color: rgba(75, 70, 92, 0.08); /* Subtle background */
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center; /* Center content horizontally */
}

    .select-checkbox:checked {
        background-color: #4B465C; /* Fill color when checked */
        border-color: #4B465C; /* Border matches when checked */
    }

        .select-checkbox:checked::after {
            content: "✔"; /* Checkmark icon */
            color: white;
            font-size: 14px;
            text-align: center;
            position: relative;
            top: 0; /* Centered checkmark */
            left: 0;
        }

    .select-checkbox:hover {
        border-color: #4B465C29; /* Lighter border on hover */
        background-color: rgba(75, 70, 92, 0.16); /* Darker background on hover */
    }

.dataTable tbody td:first-child {
    text-align: center; /* Horizontal centering */
    vertical-align: middle; /* Vertical centering */
}

.badge {
    font-size: 0.875rem;
    padding: 0.5em 0.75em;
    border-radius: 0.5rem;
}



