#category-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1050;
    display: none;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

#category-modal.active {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.modal-backdrop.active {
    display: block;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.bulk-actions-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bulk-select {
    min-width: 180px;
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: end;
    flex-wrap: wrap;
}

.table-action-btn {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1060;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.selected-count-badge {
    background-color: #0d6efd;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    #category-modal {
        width: 95%;
        padding: 15px;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-actions-container {
        width: 100%;
        justify-content: space-between;
    }

    .bulk-select {
        min-width: 150px;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .table-action-btn {
        width: 100%;
    }
}

.status-badge {
    font-size: 0.875em;
    padding: 0.35em 0.65em;
}
